]> git.pld-linux.org Git - packages/whoson.git/commitdiff
- use macros in %{pre,post}{,un}
authorsaq <saq@pld-linux.org>
Wed, 25 Jul 2001 16:31:02 +0000 (16:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- need rebuilt rpm (with new macros.pld) to build these

Changed files:
    whoson.spec -> 1.38

whoson.spec

index 4c5ce59ce63adb7131ee0f2ed4941861ab9e8a21..9def887b7eff13c86d7e0239c20dd18bbb7ef24c 100644 (file)
@@ -89,20 +89,10 @@ gzip -9nf README whoson.txt
 
 %post
 /sbin/ldconfig
-/sbin/chkconfig --add whosond
-if [ -f /var/lock/subsys/whosond ]; then
-       /etc/rc.d/init.d/whosond restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/whosond start\" to start whosond daemon."
-fi
+NAME=whosond; DESC="whosond daemon"; %chkconfig_add
 
 %preun
-if [ "$1" = "0" ]; then
-       /sbin/chkconfig --del whosond
-       if [ -f /var/lock/subsys/whosond ]; then
-               /etc/rc.d/init.d/whosond stop >&2
-       fi
-fi
+NAME=whosond; %chkconfig_del
 
 %postun -p /sbin/ldconfig
 
This page took 0.512761 seconds and 4 git commands to generate.