]> git.pld-linux.org Git - packages/apcupsd.git/commitdiff
- umask in scripts, other fixes/cosmetics where needed
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 29 Dec 2002 01:44:28 +0000 (01:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apcupsd.spec -> 1.27

apcupsd.spec

index 4e242f712c0734e468d497d0815f37852ace4ba9..0f22049bda939cd36e6e5884fa7eb862f7c37ab8 100644 (file)
@@ -11,7 +11,8 @@ Patch1:               %{name}-pld.patch
 #Patch1:       apcups-makefile.patch
 #Patch2:       %{name}-Makefile-fix.patch
 URL:           http://www.sibbald.com/apcupsd/
-Prereq:                chkconfig
+Requires(post,preun);  /sbin/chkconfig
+Requires(post):        fileutils
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 #Icon:         apcupsd-logo.xpm
 
@@ -61,7 +62,6 @@ touch ${RPM_BUILD_ROOT}/var/lib/apcupsd/apcupsd.events
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/ldconfig
 /sbin/chkconfig --add apcupsd
 
 #if !(grep /sbin/powersc /etc/rc.d/init.d/halt > /dev/null); then
@@ -82,10 +82,11 @@ fi\
 ' >  /etc/rc.d/init.d/halt
 #' /etc/rc.d/init.d/halt.rpmorig > /etc/rc.d/init.d/halt
 #fi
+chmod 754 /etc/rc.d/init.d/halt
 
 %preun
 if [ "$1" = "0" ]; then
-       chkconfig --del apcupsd
+       /sbin/chkconfig --del apcupsd
 fi
 
 %files
This page took 0.031532 seconds and 4 git commands to generate.