]> git.pld-linux.org Git - packages/arpwatch.git/commitdiff
- use macros in %{pre,post}{,un}
authorsaq <saq@pld-linux.org>
Wed, 25 Jul 2001 16:30:41 +0000 (16:30 +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:
    arpwatch.spec -> 1.35

arpwatch.spec

index 11e313f91ad25a67b214e9a93d06cf9678d02da6..f9bbb143a3d02f3e4a618807e8dc0d1b3151827a 100644 (file)
@@ -53,21 +53,10 @@ install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/arpwatch
 gzip -9nf README CHANGES
 
 %post
-/sbin/chkconfig --add arpwatch
-if [ -f /var/lock/subsys/arpwatch ]; then
-       /etc/rc.d/init.d/arpwatch restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/arpwatch start\" to start arpwatch daemon."
-fi
+DESC="arpwatch daemon"; %chkconfig_post
 
 %preun
-/sbin/chkconfig --del arpwatch
-if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/arpwatch ]; then
-               /etc/rc.d/init.d/arpwatch stop 1>&2
-       fi
-       /sbin/chkconfig --del arpwatch
-fi
+%chkconfig_preun
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.059663 seconds and 4 git commands to generate.