rpms/rsyslog/devel rsyslog.spec,1.4,1.5
Peter Vrabec (pvrabec)
fedora-extras-commits at redhat.com
Tue Jul 24 15:05:13 UTC 2007
Author: pvrabec
Update of /cvs/extras/rpms/rsyslog/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18022
Modified Files:
rsyslog.spec
Log Message:
take care of sysklogd configuration files in %%post
Index: rsyslog.spec
===================================================================
RCS file: /cvs/extras/rpms/rsyslog/devel/rsyslog.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- rsyslog.spec 24 Jul 2007 11:39:10 -0000 1.4
+++ rsyslog.spec 24 Jul 2007 15:04:41 -0000 1.5
@@ -1,10 +1,10 @@
-%define with_db 0
+%define with_db 0
%define sbindir /sbin
Summary: Enhanced system logging and kernel message trapping daemons
Name: rsyslog
Version: 1.17.2
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPL
Group: System Environment/Daemons
URL: http://www.rsyslog.com/
@@ -24,7 +24,7 @@
Requires(postun): /sbin/service
Provides: syslog
Provides: sysklogd = 1.4.2.11
-Obsoletes: sysklogd <= 1.4.2-10
+Obsoletes: sysklogd < 1.4.2-11
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
@@ -59,11 +59,6 @@
%clean
rm -rf $RPM_BUILD_ROOT
-%pretrans
-#use sysklogd configuration file
-[ -f /etc/syslog.conf ] && cp -a /etc/syslog.conf /etc/rsyslog.conf >/dev/null 2>&1 ||:
-[ -f /etc/sysconfig/syslog ] && cp -a /etc/sysconfig/syslog /etc/sysconfig/rsyslog >/dev/null 2>&1 ||:
-
%post
if [ $1 = 1 ]; then
/sbin/chkconfig --add rsyslog
@@ -73,6 +68,15 @@
[ -f $n ] && continue
umask 066 && touch $n
done
+#use sysklogd configuration files
+if [ -f /etc/syslog.conf ]; then
+ mv -f /etc/rsyslog.conf /etc/rsyslog.conf.rpmnew
+ mv -f /etc/syslog.conf /etc/rsyslog.conf
+fi
+if [ -f /etc/sysconfig/syslog ]; then
+ mv -f /etc/sysconfig/rsyslog /etc/sysconfig/rsyslog.rpmnew
+ mv -f /etc/sysconfig/syslog /etc/sysconfig/rsyslog
+fi
%preun
if [ $1 = 0 ]; then
@@ -98,6 +102,9 @@
%{_mandir}/*/*
%changelog
+* Tue Jul 24 2007 Peter Vrabec <pvrabec at redhat.com> 1.17.2-3
+- take care of sysklogd configuration files in %%post
+
* Tue Jul 24 2007 Peter Vrabec <pvrabec at redhat.com> 1.17.2-2
- use EVR in provides/obsoletes sysklogd
More information about the scm-commits
mailing list