diff --git a/.gitignore b/.gitignore index e52f560..b866010 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ rsyslog-4.6.3.tar.gz /rsyslog-5.6.2.tar.gz /rsyslog-5.7.9.tar.gz /rsyslog-5.7.10.tar.gz +/rsyslog-5.8.1.tar.gz diff --git a/rsyslog.spec b/rsyslog.spec index 8c63370..075161b 100644 --- a/rsyslog.spec +++ b/rsyslog.spec @@ -5,8 +5,8 @@ Summary: Enhanced system logging and kernel message trapping daemon Name: rsyslog -Version: 5.7.10 -Release: 2%{?dist} +Version: 5.8.1 +Release: 1%{?dist} License: GPLv3+ Group: System Environment/Daemons URL: http://www.rsyslog.com/ @@ -23,7 +23,7 @@ Requires: logrotate >= 3.5.2 Requires: bash >= 2.0 Requires(post): /sbin/chkconfig coreutils Requires(post): systemd-units >= 20 -Requires(preun): /sbin/chkconfig /sbin/service +Requires(preun): /sbin/service Requires(preun): systemd-units >= 20 Requires(postun): /sbin/service Requires(postun): systemd-units >= 20 @@ -179,7 +179,6 @@ rm $RPM_BUILD_ROOT/%{_libdir}/rsyslog/*.la rm -rf $RPM_BUILD_ROOT %post -/sbin/chkconfig --add rsyslog for n in /var/log/{messages,secure,maillog,spooler} do [ -f $n ] && continue @@ -193,7 +192,6 @@ fi %preun if [ $1 = 0 ]; then - /sbin/chkconfig --del rsyslog # On uninstall (not upgrade), disable and stop the units /bin/systemctl --no-reload disable rsyslog.service >/dev/null 2>&1 || : /bin/systemctl stop rsyslog.service >/dev/null 2>&1 || : @@ -209,9 +207,11 @@ if [ $1 -ge 1 ] ; then fi %triggerun -- rsyslog < 5.7.8-1 -if /sbin/chkconfig --level 3 rsyslog ; then - /bin/systemctl --no-reload enable rsyslog.service >/dev/null 2>&1 || : -fi +%{_bindir}/systemd-sysv-convert --save rsyslog >/dev/null 2>&1 || : +/bin/systemctl enable rsyslog.service >/dev/null 2>&1 || : +/sbin/chkconfig --del httpd >/dev/null 2>&1 || : +/bin/systemctl try-restart rsyslog.service >/dev/null 2>&1 || : + # previous versions used a different lock file, which would break condrestart [ -f /var/lock/subsys/rsyslogd ] || exit 0 mv /var/lock/subsys/rsyslogd /var/lock/subsys/rsyslog @@ -292,6 +292,10 @@ mv /var/lock/subsys/rsyslogd /var/lock/subsys/rsyslog %{_libdir}/rsyslog/omudpspoof.so %changelog +* Fri May 20 2011 Tomas Heinrich 5.8.1-1 +- upgrade to new upstream version +- correct systemd scriptlets (#705829) + * Mon May 16 2011 Bill Nottingham - 5.7.9-3 - combine triggers (as rpm will only execute one) - fixes upgrades (#699198) diff --git a/sources b/sources index c40394e..0a4e9a0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -d5c4f3ec749018c3ecd3fdd28cd0cd5e rsyslog-5.7.10.tar.gz +909d4d867450aeedd6b388c199d79222 rsyslog-5.8.1.tar.gz