rpms/powerman/devel powerman.init.patch, NONE, 1.1 powerman.spec, 1.19, 1.20
Steven M. Parrish
tuxbrewr at fedoraproject.org
Thu Feb 12 12:30:27 UTC 2009
Author: tuxbrewr
Update of /cvs/pkgs/rpms/powerman/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13404
Modified Files:
powerman.spec
Added Files:
powerman.init.patch
Log Message:
Updated post and postun with ldconfig
added init script patch to default to autostart no
powerman.init.patch:
--- NEW FILE powerman.init.patch ---
diff -up powerman-2.3.4/scripts/powerman.init.in.initfix powerman-2.3.4/scripts/powerman.init.in
--- powerman-2.3.4/scripts/powerman.init.in.initfix 2009-01-20 20:52:15.000000000 +0100
+++ powerman-2.3.4/scripts/powerman.init.in 2009-02-11 14:32:19.006732642 +0100
@@ -7,17 +7,18 @@
# Copyright (C) 2001-2007 The Regents of the University of California.
# UCRL-CODE-2002-009.
###############################################################################
-# chkconfig: 2345 95 5
+# chkconfig: - 95 5
# Description: Start/Stop the PowerMan (remote power manager) daemon.
###############################################################################
### BEGIN INIT INFO
# Provides: powerman
+# Description: Start/Stop the PowerMan (remote power manager) daemon.
# Required-Start: $local_fs $named $network
# Required-Stop: $local_fs $named $network
# Should-Start: $remote_fs $syslog $time
# Should-Stop: $remote_fs $syslog $time
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
+# Default-Start:
+# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Start/Stop the PowerMan (remote power manager) daemon.
### END INIT INFO
###############################################################################
Index: powerman.spec
===================================================================
RCS file: /cvs/pkgs/rpms/powerman/devel/powerman.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- powerman.spec 10 Feb 2009 22:55:21 -0000 1.19
+++ powerman.spec 12 Feb 2009 12:29:56 -0000 1.20
@@ -1,12 +1,13 @@
Name: powerman
Version: 2.3.4
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: PowerMan - Power to the Cluster
Group: Applications/System
License: GPLv2+
Url: http://sourceforge.net/projects/powerman
Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
+Patch0: powerman.init.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: flex bison readline-devel
@@ -24,11 +25,14 @@
Group: Applications/System
Requires: powerman = %{version}-%{release}
Requires: pkgconfig
-%description devel
-%{Summary}
+%description devel
+Development files for Powerman
+
%prep
-%setup -q
+%setup -q -n %{name}-%{version}
+
+%patch0 -p1 -b .initpatch
%build
@@ -49,14 +53,15 @@
# $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
# get rid of execute bit on powerman script files to fix rpmlint errror
chmod -x $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/*
-# Don't turn on by default
-%{__perl} -pi -e 's|chkconfig:.*95 5|chkconfig: - 95 5|g' \
- $RPM_BUILD_ROOT%{_sysconfdir}/init.d/%{name}
+# Don't turn on by default - disabled this script in favor of the initscript patch
+#%{__perl} -pi -e 's|chkconfig:.*95 5|chkconfig: - 95 5|g' \
+# $RPM_BUILD_ROOT%{_sysconfdir}/init.d/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
+/sbin/ldconfig
/sbin/chkconfig --add powerman
%preun
@@ -71,6 +76,8 @@
/sbin/chkconfig --del powerman
fi
+%postun -p /sbin/ldconfig
+
%files
%defattr(-,root,root,-)
%doc ChangeLog DISCLAIMER COPYING NEWS TODO
@@ -97,6 +104,10 @@
%{_libdir}/libpowerman.so
%changelog
+* Wed Feb 11 2009 Steven M. Parrish <tuxbrewr at fedoraproject.org> 2.3.4-4
+- Updated post and postun with ldconfig
+- added init script patch to default to autostart no
+
* Tue Feb 10 2009 Steven M. Parrish <tuxbrewr at fedoraproject.org> 2.3.4-3
- Fix errors in files lists
More information about the fedora-extras-commits
mailing list