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

apmd.spec

index 5de1253c856e1a93e61b64937d10652a90cef229..c7cdcbf49e8933dca638d80ddbe8c9cf46a934fd 100644 (file)
--- a/apmd.spec
+++ b/apmd.spec
@@ -98,20 +98,10 @@ gzip -9nf README README.transfer ChangeLog ANNOUNCE
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/chkconfig --add apmd
-if [ -f /var/lock/subsys/apmd ]; then
-       /etc/rc.d/init.d/apmd restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/apmd start\" to start apmd daemon."
-fi
+DESC="apmd daemon"; %chkconfig_post
 
 %preun
-if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/apmd ]; then
-               /etc/rc.d/init.d/apmd stop 1>&2
-       fi
-       /sbin/chkconfig --del apmd
-fi
+%chkconfig_preun
 
 %files
 %defattr(644,root,root,755)
This page took 0.080777 seconds and 4 git commands to generate.