From 2507ecb4d6433f8f22ba586b105f153266c96c1cc9db3d318068413810be2b2e Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 15 Dec 2008 13:55:18 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/logrotate?expand=0&rev=11 --- logrotate-3.7.7-conf.patch | 33 ++++++++++++++++++--------------- logrotate.changes | 5 +++++ logrotate.spec | 12 +++++++----- 3 files changed, 30 insertions(+), 20 deletions(-) diff --git a/logrotate-3.7.7-conf.patch b/logrotate-3.7.7-conf.patch index 346196f..4ced6ab 100644 --- a/logrotate-3.7.7-conf.patch +++ b/logrotate-3.7.7-conf.patch @@ -1,16 +1,9 @@ ---- ./examples/logrotate-default.orig 2007-08-29 09:19:36.000000000 +0200 -+++ ./examples/logrotate-default 2008-08-22 16:10:24.000000000 +0200 -@@ -17,19 +17,27 @@ - # RPM packages drop log rotation information into this directory - include /etc/logrotate.d +--- examples/logrotate-default ++++ examples/logrotate-default +@@ -14,22 +14,30 @@ dateext + # uncomment this if you want your log files compressed + #compress --# no packages own wtmp and btmp -- we'll rotate them here --/var/log/wtmp { -- monthly -- create 0664 root utmp -- minsize 1M -- rotate 1 --} +# comment these to switch compression to use gzip or another +# compression scheme +compresscmd /usr/bin/bzip2 @@ -18,14 +11,24 @@ + +# former versions had to have the compressext set accordingly +#compressext .bz2 ++ + # RPM packages drop log rotation information into this directory + include /etc/logrotate.d + # no packages own wtmp and btmp -- we'll rotate them here +-/var/log/wtmp { +- monthly +- create 0664 root utmp +- minsize 1M +- rotate 1 +-} +- -/var/log/btmp { - missingok - monthly - create 0600 root utmp - rotate 1 -} -+# no packages own wtmp and btmp -- we'll rotate them here +#/var/log/wtmp { +# monthly +# create 0664 root utmp @@ -41,8 +44,8 @@ +#} # system-specific logs may be also be configured here. ---- ./examples/logrotate.wtmp.orig 2008-08-22 16:15:57.000000000 +0200 -+++ ./examples/logrotate.wtmp 2008-08-22 16:01:12.000000000 +0200 +--- examples/logrotate.wtmp ++++ examples/logrotate.wtmp @@ -0,0 +1,11 @@ +/var/log/wtmp { + compress diff --git a/logrotate.changes b/logrotate.changes index 3a9c7a1..24487bf 100644 --- a/logrotate.changes +++ b/logrotate.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 10 19:48:49 CET 2008 - schwab@suse.de + +- Fix compresscmd default. + ------------------------------------------------------------------- Tue Oct 21 15:16:03 CEST 2008 - puzel@suse.cz diff --git a/logrotate.spec b/logrotate.spec index 448fd8a..46bba20 100644 --- a/logrotate.spec +++ b/logrotate.spec @@ -24,7 +24,7 @@ BuildRequires: popt-devel BuildRequires: libselinux-devel Summary: Rotate, Compress, Remove, and Mail System Log Files Version: 3.7.7 -Release: 9 +Release: 10 License: GPL v2 or later Group: System/Base Source: %{name}-%{version}.tar.bz2 @@ -99,6 +99,8 @@ rm -rf $RPM_BUILD_ROOT %config(noreplace)/etc/logrotate.d/wtmp %changelog +* Wed Dec 10 2008 schwab@suse.de +- Fix compresscmd default. * Tue Oct 21 2008 puzel@suse.cz - logrotate-3.7.7-hashes.patch (bnc#415072) * Tue Sep 30 2008 puzel@suse.cz @@ -161,7 +163,7 @@ rm -rf $RPM_BUILD_ROOT - fix else case in maxage patch (thanks to pvrabec) * Tue Jul 26 2005 ro@suse.de - added noTMPDIR and selinux patches -* Fri May 20 2005 ro@suse.de +* Thu May 19 2005 ro@suse.de - update to 3.7.1 * Wed Apr 20 2005 ro@suse.de - cron-script: give some more details when things fail @@ -210,7 +212,7 @@ rm -rf $RPM_BUILD_ROOT - dropped insserv from prereq (not used) * Mon Aug 05 2002 kukuk@suse.de - Add rm and mv to PreRequires -* Wed Jul 31 2002 ro@suse.de +* Tue Jul 30 2002 ro@suse.de - fixed typo in specfile - added comment in config-file about bzip2 usage * Mon Jul 29 2002 ro@suse.de @@ -226,9 +228,9 @@ rm -rf $RPM_BUILD_ROOT - Fix post-install script for the case that there is no rc.config * Mon Jun 24 2002 ro@suse.de - fixed squid log paths (#16557) -* Thu May 09 2002 ro@suse.de +* Wed May 08 2002 ro@suse.de - uucp-logfiles are handled by own config -* Tue Mar 19 2002 ro@suse.de +* Mon Mar 18 2002 ro@suse.de - don't rotate any file for /var/log/news.* * Fri Mar 01 2002 ro@suse.de - don't overwrite logfiles with dateext if run more than once