]> git.pld-linux.org Git - packages/atm.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:
    atm.spec -> 1.19

atm.spec

index a488356c81d47251d4ca373067926a3da29acdb4..a951d77d3138cd0b104a2dfd2f845714f589c6e5 100644 (file)
--- a/atm.spec
+++ b/atm.spec
@@ -1,4 +1,4 @@
-# $Revision: 1.18 $ $Date: 2001-07-18 03:42:42 $
+# $Revision: 1.19 $ $Date: 2001-07-25 16:30:41 $
 Summary:       ATM on Linux
 Summary(pl):   ObsĀ³uga sieci ATM w Linuxie
 Name:          atm
@@ -94,18 +94,10 @@ gzip -9nf doc/usage.txt BUGS CREDITS CHANGES README config/pld/README.PLD
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/chkconfig --add atm
-if [ -f /var/lock/subsys/atm ]; then
-       /etc/rc.d/init.d/atm restart 1>&2
-fi
+%chkconfig_post
 
 %preun
-if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/atm ]; then
-               /etc/rc.d/init.d/atm stop 1>&2
-       fi
-       /sbin/chkconfig --del atm
-fi
+%chkconfig_preun
 
 %files
 %defattr(644,root,root,755)
This page took 0.062418 seconds and 4 git commands to generate.