diff --git a/proftpd.spec b/proftpd.spec index 294e4e1..c57f74b 100644 --- a/proftpd.spec +++ b/proftpd.spec @@ -22,7 +22,7 @@ Name: proftpd Version: 1.3.8b -Release: 2 +Release: 3 Summary: Flexible, stable and highly-configurable FTP server License: GPLv2+ URL: http://www.proftpd.org/ @@ -110,6 +110,8 @@ Requires(preun): chkconfig, initscripts Requires(postun): initscripts %endif +Requires: coreutils + Provides: ftpserver %description @@ -360,6 +362,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 @@ -383,6 +389,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 || : @@ -535,6 +542,9 @@ fi %{_mandir}/man1/ftpwho.1* %changelog +* Fri Jan 05 2024 Ge Wang - 1.3.8b-3 +- Fix service error message due to selinux policy mismatch + * Fri Dec 29 2023 wangkai <13474090681@163.com> - 1.3.8b-2 - Adjust patch number