]> git.pld-linux.org Git - packages/portsentry.git/commitdiff
- reverting last change: removing new macros from %p{re,ost}{,un}
authorsaq <saq@pld-linux.org>
Thu, 26 Jul 2001 05:42:22 +0000 (05:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    portsentry.spec -> 1.16

portsentry.spec

index 793a2a72115c4a0ece9a8fc1dcd3d575904c42a0..ed680cd76c12e53249fbdf4165a35af5e38c789c 100644 (file)
@@ -57,10 +57,22 @@ rm -rf $RPM_BUILD_ROOT
 
 %post -n portsentry
 %{_bindir}/ignore.sh
-DESC="portsentry daemon"; %chkconfig_add
+/sbin/chkconfig --add portsentry
+ls --color=none /var/lock/subsys/portsentry* >/dev/null 2>&1
+if [ $? -eq "0" ]; then
+       /etc/rc.d/init.d/portsentry restart >&2
+else
+       echo "Run \"/etc/rc.d/init.d/portsentry start\" to start portsentry daemon."
+fi
 
 %preun -n portsentry
-%chkconfig_del
+if [ "$1" = "0" ]; then
+       ls --color=none /var/lock/subsys/portsentry* >/dev/null 2>&1
+       if [ $? -eq "0" ]; then
+               /etc/rc.d/init.d/portsentry stop >&2
+       fi
+       /sbin/chkconfig --del portsentry
+fi
 
 %files
 %defattr(644,root,root,755)
This page took 0.115198 seconds and 4 git commands to generate.