]> git.pld-linux.org Git - packages/apcupsd.git/blobdiff - apcupsd.spec
- use macros in %{pre,post}{,un}
[packages/apcupsd.git] / 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.085858 seconds and 4 git commands to generate.