rpms/pm-utils/devel pm-utils.spec,1.57,1.58

Peter Jones (pjones) fedora-extras-commits at redhat.com
Wed May 16 21:12:44 UTC 2007


Author: pjones

Update of /cvs/extras/rpms/pm-utils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22066

Modified Files:
	pm-utils.spec 
Log Message:
- create the logfile so selinux gets things right



Index: pm-utils.spec
===================================================================
RCS file: /cvs/extras/rpms/pm-utils/devel/pm-utils.spec,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- pm-utils.spec	26 Apr 2007 04:26:50 -0000	1.57
+++ pm-utils.spec	16 May 2007 21:12:09 -0000	1.58
@@ -2,7 +2,7 @@
 Summary: Power management utilities and scripts for Fedora Core
 License: GPL
 Version: 0.99.3
-Release: 2%{?dist}
+Release: 3%{?dist}
 Group: System Environment/Base
 ExclusiveArch: %{ix86} x86_64 ia64 ppc ppc64
 Requires: usermode kbd pciutils >= 2.2.1
@@ -149,6 +149,9 @@
 	mkdir -p /etc/pm/config.d
 	mv /etc/pm/config.rpmsave /etc/pm/config.d/02oldconfig
 fi
+if [ ! -a /var/log/pm-suspend.log ] ; then
+	install -m 600 /dev/null /var/log/pm-suspend.log
+fi
 
 %files
 %defattr(-,root,root)
@@ -163,8 +166,12 @@
 %{_bindir}/*
 %{_sbindir}/*
 %{_mandir}/man*/*
+%ghost %verify(not md5 size mtime) /var/log/pm-suspend.log
 
 %changelog
+* Wed May 16 2007 Peter Jones <pjones at redhat.com> - 0.99.3-3
+- Create logfile in %%post and %%gost it.
+
 * Wed Apr 25 2007 Peter Jones <pjones at redhat.com> - 0.99.3-2
 - Get rid of bogus redirect on "vbetool post"
 - add zlib linkage for vbetool and radeontool




More information about the fedora-extras-commits mailing list