From e5392293d12be7e9573409da092c278a7b81a491eb281f961461474694499ae4 Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Wed, 19 May 2010 07:21:48 +0000 Subject: [PATCH] Accepting request 40309 from hardware checked in (request 40309) OBS-URL: https://build.opensuse.org/request/show/40309 OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=16 --- powerman-piddir.patch | 24 ------------------------ powerman.changes | 6 ------ powerman.spec | 4 +--- 3 files changed, 1 insertion(+), 33 deletions(-) delete mode 100644 powerman-piddir.patch diff --git a/powerman-piddir.patch b/powerman-piddir.patch deleted file mode 100644 index e27070b..0000000 --- a/powerman-piddir.patch +++ /dev/null @@ -1,24 +0,0 @@ ---- scripts/powerman.init.in -+++ scripts/powerman.init.in -@@ -34,7 +34,8 @@ - DAEMON="$sbindir/powermand" - #DAEMON_ARGS= - CONFIG=$sysconfdir/powerman/powerman.conf --PIDFILE="$localstatedir/run/powerman/powermand.pid" -+PIDDIR="$localstatedir/run/powerman" -+PIDFILE="$PIDDIR/powermand.pid" - #NICE= - USER=@RUN_AS_USER@ - #SIGHUP_RELOAD= -@@ -53,7 +54,10 @@ - SCRIPT_NAME="`basename \"$0\" .init | sed 's/^[SK][0-9][0-9]*//'`" - SIGTERM_TIMEOUT="3" - STATUS=0 -- -+ if [ ! -d "$PIDDIR" ] ; then -+ mkdir "$PIDDIR" -+ chown $USER $PIDDIR -+ fi - # Read configuration defaults to override variables: - # $DAEMON_ARGS, $CONFIG, $PIDFILE, $USER, $NICE, $SIGHUP_RELOAD - ## diff --git a/powerman.changes b/powerman.changes index 021c66d..eddfd42 100644 --- a/powerman.changes +++ b/powerman.changes @@ -1,9 +1,3 @@ -------------------------------------------------------------------- -Wed May 19 02:38:24 CEST 2010 - ro@suse.de - -- keep /var/run/powerman only as ghost in filelist - and create it in initscript if missing - ------------------------------------------------------------------- Fri Aug 14 15:00:56 CEST 2009 - sbrabec@suse.cz diff --git a/powerman.spec b/powerman.spec index eae82c4..28221c4 100644 --- a/powerman.spec +++ b/powerman.spec @@ -25,7 +25,6 @@ License: GPL Group: Productivity/Clustering/HA Url: http://powerman.sourceforge.net/ Source: %{name}-%{version}.tar.bz2 -Patch0: powerman-piddir.patch Summary: Centralized Power Control for Clusters BuildRequires: curl-devel ncurses-devel tcpd-devel # For directory ownership: @@ -82,7 +81,6 @@ Authors: %prep %setup -q -%patch0 %build # --with-genders @@ -119,7 +117,7 @@ rm -rf $RPM_BUILD_ROOT %doc AUTHORS ChangeLog ChangeLog-1.0 DISCLAIMER COPYING NEWS README TODO %{_bindir}/* %{_libdir}/stonith/plugins/external/powerman -%dir %attr(0755,daemon,root) %ghost %{_localstatedir}/run/powerman +%dir %attr(0755,daemon,root) %config %{_localstatedir}/run/powerman %doc %{_mandir}/man?/*.* %exclude %doc %{_mandir}/man3/*.* %{_sbindir}/*