From f84fc36e8e74b0807aa33aabba0e13b5f3423d9c Mon Sep 17 00:00:00 2001 From: saq Date: Wed, 25 Jul 2001 16:30:41 +0000 Subject: [PATCH] - use macros in %{pre,post}{,un} - need rebuilt rpm (with new macros.pld) to build these Changed files: apcupsd.spec -> 1.18 --- apcupsd.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apcupsd.spec b/apcupsd.spec index 12c0df1..3fd0bba 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -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) -- 2.43.0