diff --git a/proftpd.spec b/proftpd.spec index ae814b4..0dae3cb 100644 --- a/proftpd.spec +++ b/proftpd.spec @@ -20,7 +20,7 @@ Name: proftpd Version: 1.3.8b -Release: 1 +Release: 2 Summary: Flexible, stable and highly-configurable FTP server License: GPLv2+ URL: http://www.proftpd.org/ @@ -106,6 +106,8 @@ Requires(preun): chkconfig, initscripts Requires(postun): initscripts %endif +Requires: coreutils + Provides: ftpserver %description @@ -348,6 +350,10 @@ fi %endif %post +if [ ! -f /var/run/proftpd/proftpd.delay ]; then + touch /var/run/proftpd/proftpd.delay +fi +chcon -t user_home_t /var/run/proftpd/proftpd.delay %if %{use_systemd} systemctl daemon-reload &>/dev/null || : %endif @@ -371,6 +377,7 @@ fi %preun if [ $1 -eq 0 ]; then # Package removal, not upgrade + rm -rf /var/run/proftpd/proftpd.delay %if %{use_systemd} systemctl --no-reload disable proftpd.service &>/dev/null || : systemctl stop proftpd.service &>/dev/null || : @@ -521,6 +528,9 @@ fi %{_mandir}/man1/ftpwho.1* %changelog +* Fri Jan 05 2024 Ge Wang - 1.3.8b-2 +- Fix service error message due to selinux policy mismatch + * Tue Dec 26 2023 wangkai <13474090681@163.com> - 1.3.8b-1 - Update to 1.3.8b for fix CVE-2023-51713,CVE-2023-48795