rpms/sysklogd/devel sysklogd.spec,1.34,1.35

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Thu Feb 23 17:46:41 UTC 2006


Author: jvdias

Update of /cvs/dist/rpms/sysklogd/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv19366

Modified Files:
	sysklogd.spec 
Log Message:
fix bug 182605


Index: sysklogd.spec
===================================================================
RCS file: /cvs/dist/rpms/sysklogd/devel/sysklogd.spec,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- sysklogd.spec	11 Feb 2006 05:46:18 -0000	1.34
+++ sysklogd.spec	23 Feb 2006 17:46:26 -0000	1.35
@@ -1,7 +1,7 @@
 Summary: System logging and kernel message trapping daemons.
 Name: sysklogd
 Version: 1.4.1
-Release: 34.2
+Release: 36
 License: GPL
 Group: System Environment/Daemons
 Source: sysklogd-%{version}rh.tar.gz
@@ -65,13 +65,9 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
-for n in /var/log/{messages,secure,maillog,spooler}
-do
-	[ -f $n ] && continue
-	touch $n
-	chmod 600 $n
-done
-/sbin/chkconfig --add syslog
+if [ "$1" -eq 1 ]; then
+   /sbin/chkconfig --add syslog
+fi
 
 %preun
 if [ $1 = 0 ]; then
@@ -81,8 +77,14 @@
 
 %postun
 if [ "$1" -ge "1" ]; then
-	service syslog condrestart > /dev/null 2>&1
-fi	
+   for n in /var/log/{messages,secure,maillog,spooler}
+   do
+	[ -f $n ] && continue
+	touch $n
+	chmod 600 $n
+   done
+   service syslog condrestart > /dev/null 2>&1
+fi
 
 %triggerpostun -- sysklogd < 1.3.31-17
 /sbin/chkconfig --add syslog
@@ -101,6 +103,9 @@
 %{_mandir}/*/*
 
 %changelog
+* Thu Feb 23 2006 Jason Vas Dias <jvdias at redhat.com> - 1.4.1-36
+- fix bug 182605: only chkconfig --add in %post if $1 -eq 1
+
 * Fri Feb 10 2006 Jesse Keating <jkeating at redhat.com> - 1.4.1-34.2
 - bump again for double-long bug on ppc(64)
 




More information about the fedora-cvs-commits mailing list