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

anacron.spec

index b7f214f879c0ccca4565d930e3d92102117a3dc5..61b681b83315ff9e5118aee2b2635e4cdfaa0fef 100644 (file)
@@ -77,22 +77,10 @@ done
 gzip -9nf ChangeLog README TODO
 
 %post
 gzip -9nf ChangeLog README TODO
 
 %post
-/sbin/chkconfig --add anacron
-
-if [ -f /var/lock/subsys/anacron ]; then
-       /etc/rc.d/init.d/anacron restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/anacron start\" to start Anacron daemon."
-fi
+DESC="Anacron daemon"; %chkconfig_post
 
 %preun
 
 %preun
-/sbin/chkconfig --del anacron
-if [ "$1" = "0" ];then
-       if [ -f /var/lock/subsys/anacron ]; then
-               /etc/rc.d/init.d/anacron stop >&2
-       fi
-       /sbin/chkconfig --del anacron
-fi
+%chkconfig_preun
 
 %clean 
 rm -rf $RPM_BUILD_ROOT
 
 %clean 
 rm -rf $RPM_BUILD_ROOT
This page took 0.081694 seconds and 4 git commands to generate.