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

apcupsd.spec

index 12c0df12adf103b66abccc2d2be82726ce9b4954..3fd0bba7b5b6ae358b61e0ffaba761399edb9ec0 100644 (file)
@@ -55,7 +55,7 @@ rm -rf ${RPM_BUILD_ROOT}
 
 %post
 /sbin/ldconfig
-/sbin/chkconfig --add apcupsd
+%chkconfig_post
 
 #if !(grep /sbin/powersc /etc/rc.d/init.d/halt > /dev/null); then
 cp -f /etc/rc.d/init.d/halt /etc/rc.d/init.d/halt.rpmorig
@@ -78,7 +78,7 @@ fi\
 
 
 %preun
-chkconfig --del apcupsd
+%chkconfig_preun
 
 %files
 %defattr(644,root,root,755)
This page took 0.030515 seconds and 4 git commands to generate.