SPECS: syslog-ng2.spec - rel 3; dont chkconfig --del service when switching...

arekm arekm at pld-linux.org
Thu Apr 9 10:56:18 CEST 2009


Author: arekm                        Date: Thu Apr  9 08:56:17 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rel 3; dont chkconfig --del service when switching from syslog-ng->syslog-ng2

---- Files affected:
SPECS:
   syslog-ng2.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SPECS/syslog-ng2.spec
diff -u SPECS/syslog-ng2.spec:1.5 SPECS/syslog-ng2.spec:1.6
--- SPECS/syslog-ng2.spec:1.5	Tue Mar 31 16:19:29 2009
+++ SPECS/syslog-ng2.spec	Thu Apr  9 10:56:12 2009
@@ -10,7 +10,7 @@
 Summary(pt_BR.UTF-8):	Daemon de log nova geração
 Name:		syslog-ng2
 Version:	2.0.10
-Release:	2
+Release:	3
 License:	GPL v2
 Group:		Daemons
 Source0:	http://www.balabit.com/downloads/files/syslog-ng/sources/2.0/src/syslog-ng-%{version}.tar.gz
@@ -113,6 +113,15 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%triggerun -- syslog-ng
+# Prevent preun from syslog-ng from working
+chmod a-x /etc/rc.d/init.d/syslog-ng
+
+%triggerpostun -- util-vserver-init
+# Restore what triggerun removed
+chmod 754 /etc/rc.d/init.d/syslog-ng
+/sbin/chkconfig --add syslog-ng
+
 %post
 for n in /var/log/{daemon,debug,iptables,kernel,lpr,maillog,messages,secure,spooler,syslog,user,xferlog}
 do
@@ -154,6 +163,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2009/04/09 08:56:12  arekm
+- rel 3; dont chkconfig --del service when switching from syslog-ng->syslog-ng2
+
 Revision 1.5  2009/03/31 14:19:29  gotar
 - don't R: logrotate just S it
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/syslog-ng2.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list