2007-01-16 00:24:09 +01:00
|
|
|
#
|
2007-08-16 18:19:25 +02:00
|
|
|
# spec file for package logrotate (Version 3.7.5)
|
2007-01-16 00:24:09 +01:00
|
|
|
#
|
2008-02-01 00:45:45 +01:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:24:09 +01:00
|
|
|
#
|
2008-08-15 00:58:09 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:24:09 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-08-15 00:58:09 +02:00
|
|
|
Url: https://fedorahosted.org/releases/l/o/logrotate
|
|
|
|
|
2007-01-16 00:24:09 +01:00
|
|
|
Name: logrotate
|
|
|
|
BuildRequires: popt-devel
|
2008-08-26 02:14:45 +02:00
|
|
|
BuildRequires: libselinux-devel
|
2007-01-16 00:24:09 +01:00
|
|
|
Summary: Rotate, Compress, Remove, and Mail System Log Files
|
2007-08-16 18:19:25 +02:00
|
|
|
Version: 3.7.5
|
2008-08-26 02:14:45 +02:00
|
|
|
Release: 70
|
2007-08-16 18:19:25 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:24:09 +01:00
|
|
|
Group: System/Base
|
|
|
|
Source: ftp://people.redhat.com/sopwith/logrotate-%{version}.tar.bz2
|
|
|
|
Patch: logrotate-suse.dif
|
|
|
|
Patch1: logrotate-conf.dif
|
|
|
|
Patch2: logrotate-autoext.dif
|
|
|
|
Patch3: logrotate-addextension.dif
|
2008-02-01 00:45:45 +01:00
|
|
|
Patch4: logrotate-mess_err.dif
|
2007-08-16 18:19:25 +02:00
|
|
|
Patch11: logrotate-3.7.5-errorHandling.patch
|
|
|
|
Patch12: logrotate-3.7.5-shred.patch
|
|
|
|
Patch13: logrotate-3.7.5-cfengine.patch
|
|
|
|
Patch14: logrotate-3.7.5-date.patch
|
|
|
|
Patch15: logrotate-3.7.5-logfn.patch
|
2008-08-22 00:41:47 +02:00
|
|
|
Patch16: logrotate-3.7.5-cron-check-for-another-instance.patch
|
2007-01-16 00:24:09 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
PreReq: %fillup_prereq /bin/rm /bin/mv
|
2008-08-15 00:58:09 +02:00
|
|
|
Requires: bzip2 cron
|
2007-01-16 00:24:09 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The logrotate utility is designed to simplify the administration of log
|
|
|
|
files on a system that generates a lot of log files. Logrotate allows
|
2007-08-16 18:19:25 +02:00
|
|
|
the automatic rotation, compression, removal, and mailing of log files.
|
|
|
|
Logrotate can be set to handle a log file daily, weekly, monthly, or
|
|
|
|
when the log file reaches a certain size. Normally, logrotate runs as a
|
|
|
|
daily cron job.
|
2007-01-16 00:24:09 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Erik Troan <ewt@redhat.com>
|
|
|
|
Matt Wilson <msw@redhat.com>
|
|
|
|
Preston Brown <pbrown@redhat.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch
|
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
2008-02-01 00:45:45 +01:00
|
|
|
%patch4
|
2007-08-16 18:19:25 +02:00
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
|
|
|
%patch14 -p1
|
|
|
|
%patch15 -p1
|
2008-08-22 00:41:47 +02:00
|
|
|
%patch16
|
2007-01-16 00:24:09 +01:00
|
|
|
|
|
|
|
%build
|
2008-08-26 02:14:45 +02:00
|
|
|
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" WITH_SELINUX=yes
|
2008-08-15 00:58:09 +02:00
|
|
|
|
|
|
|
%check
|
2007-01-16 00:24:09 +01:00
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
make PREFIX=$RPM_BUILD_ROOT install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,cron.daily}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/sbin
|
|
|
|
install -m 644 examples/logrotate-default $RPM_BUILD_ROOT/etc/logrotate.conf
|
|
|
|
install -m 755 examples/logrotate.cron $RPM_BUILD_ROOT/etc/cron.daily/logrotate
|
|
|
|
install -m 644 examples/logrotate.wtmp $RPM_BUILD_ROOT/etc/logrotate.d/wtmp
|
|
|
|
|
|
|
|
%post
|
|
|
|
%{remove_and_set MAX_DAYS_FOR_LOG_FILES}
|
|
|
|
if [ -f /etc/logrotate.d/aaa_base ] ; then
|
|
|
|
echo "Saving old logrotate system confguration"
|
|
|
|
mv -v /etc/logrotate.d/aaa_base /etc/logrotate.d.aaa_base.save
|
|
|
|
fi
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc CHANGES
|
|
|
|
/usr/sbin/logrotate
|
|
|
|
%{_mandir}/man8/logrotate.8*
|
|
|
|
/etc/cron.daily/logrotate
|
|
|
|
%config /etc/logrotate.conf
|
|
|
|
%config(noreplace)/etc/logrotate.d/wtmp
|
2008-02-01 00:45:45 +01:00
|
|
|
|
2007-08-16 18:19:25 +02:00
|
|
|
%changelog
|
2008-08-26 02:14:45 +02:00
|
|
|
* Mon Aug 25 2008 prusnak@suse.cz
|
|
|
|
- enabled SELinux support [Fate#303662]
|
2008-08-22 00:41:47 +02:00
|
|
|
* Wed Aug 20 2008 puzel@suse.cz
|
|
|
|
- added logrotate-3.7.5-cron-check-for-another-instance.patch
|
|
|
|
- cronjob exits immediately if there is another logrotate instance
|
|
|
|
running
|
|
|
|
- fixes (bnc#415072)
|
2008-08-15 00:58:09 +02:00
|
|
|
* Thu Aug 14 2008 puzel@suse.cz
|
|
|
|
- fix rpmlint warnings:
|
|
|
|
- make test moved to %%check section
|
|
|
|
- require cron
|
2008-02-01 00:45:45 +01:00
|
|
|
* Thu Jan 31 2008 ro@suse.de
|
|
|
|
- log error if target file already exists
|
|
|
|
(upgrade from MESS_DEBUG to MESS_ERROR)
|
|
|
|
* Wed Oct 31 2007 ro@suse.de
|
2007-10-31 18:34:21 +01:00
|
|
|
- added bzip2 as dependency since it's used as default compressor
|
|
|
|
(#334555)
|
2008-02-01 00:45:45 +01:00
|
|
|
* Thu Aug 16 2007 ro@suse.de
|
2007-08-16 18:19:25 +02:00
|
|
|
- update to 3.7.5 with some bugfixes containing:
|
|
|
|
- 251040 config option size not handled correctly
|
|
|
|
- added the current fedora patchkit which adds shred support
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Aug 07 2006 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- try adding new option "addextension" which provides what
|
|
|
|
some users expected the old "extension" keyword to do
|
2008-02-01 00:45:45 +01:00
|
|
|
* Wed Jun 21 2006 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- update to 3.7.4
|
2007-08-16 18:19:25 +02:00
|
|
|
- adds the "minsize" option
|
2007-01-16 00:24:09 +01:00
|
|
|
- clean up comments in sample logrotate.conf (#183440)
|
2008-02-01 00:45:45 +01:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-02-01 00:45:45 +01:00
|
|
|
* Wed Jan 11 2006 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- fixed segfault in autoext patch (#142021)
|
2008-02-01 00:45:45 +01:00
|
|
|
* Fri Dec 09 2005 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- updated to 3.7.3
|
|
|
|
- removed upstreamed patches
|
|
|
|
- added autoext patch for determining file extension
|
|
|
|
from used compression program
|
2008-02-01 00:45:45 +01:00
|
|
|
* Tue Oct 18 2005 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- update to upstream patchkit
|
2008-02-01 00:45:45 +01:00
|
|
|
* Tue Oct 11 2005 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- update to 3.7.2 and some upstream patches
|
2008-02-01 00:45:45 +01:00
|
|
|
* Tue Oct 11 2005 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- fix else case in maxage patch (thanks to pvrabec)
|
2008-02-01 00:45:45 +01:00
|
|
|
* Tue Jul 26 2005 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- added noTMPDIR and selinux patches
|
2008-02-01 00:45:45 +01:00
|
|
|
* Fri May 20 2005 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- update to 3.7.1
|
2008-02-01 00:45:45 +01:00
|
|
|
* Wed Apr 20 2005 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- cron-script: give some more details when things fail
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Sep 06 2004 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- changed patch sequence, simple ones first
|
|
|
|
- added one-liner fix from cvs
|
|
|
|
- fix mail call
|
|
|
|
- fix uninitialized variable when mailing out first rotation
|
|
|
|
- fix number of logs kept with dateext
|
2008-02-01 00:45:45 +01:00
|
|
|
* Thu Mar 25 2004 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- adapted logger path (#36947)
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Feb 23 2004 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- update to version 3.7
|
2008-02-01 00:45:45 +01:00
|
|
|
* Fri Oct 17 2003 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- don't build as root
|
|
|
|
- use defattr
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Oct 13 2003 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- updated to 3.6.10 and ported patches
|
2008-02-01 00:45:45 +01:00
|
|
|
* Thu Jun 12 2003 kukuk@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- /etc/logrotate.d is part of filesystem
|
2008-02-01 00:45:45 +01:00
|
|
|
* Thu Jan 23 2003 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- update to 3.6.6 (some tmpfile fixes, new options supported)
|
|
|
|
- remove system-config /etc/logrotate.d/aaa_base and all code
|
|
|
|
messing with it (all logrotate configs have been moved to
|
|
|
|
their respective packages)
|
|
|
|
- add /etc/logrotate.d/wtmp
|
2008-02-01 00:45:45 +01:00
|
|
|
* Thu Jan 23 2003 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- remove mgetty logfiles
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Jan 20 2003 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- remove i4l logfiles
|
2008-02-01 00:45:45 +01:00
|
|
|
* Thu Jan 16 2003 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- removed xdm logfile from main config (in XFree86 now)
|
2008-02-01 00:45:45 +01:00
|
|
|
* Wed Jan 15 2003 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- removed more files from main config and moved to their packages
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Nov 11 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- fix deprecated multiline string literals
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Oct 14 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- remove postgresql logfile from config on update (#20860)
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Oct 14 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- moved syslog logrotation config to syslogd package
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Sep 23 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- mark logrotate.del as missingok
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Sep 09 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- remove handling of /var/account/pacct (moved to acct package)
|
2008-02-01 00:45:45 +01:00
|
|
|
* Fri Aug 16 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- dropped insserv from prereq (not used)
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Aug 05 2002 kukuk@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- Add rm and mv to PreRequires
|
2008-02-01 00:45:45 +01:00
|
|
|
* Wed Jul 31 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- fixed typo in specfile
|
|
|
|
- added comment in config-file about bzip2 usage
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Jul 29 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- removed fetchmail logrotate entry (#17279)
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Jul 29 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- removed apache,smail,perforce,abuild components
|
|
|
|
- remove old entries also from logrotate.d/aaa_base on update
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Jul 29 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- squid components removed (done in squid package now) (#17278)
|
2008-02-01 00:45:45 +01:00
|
|
|
* Fri Jul 19 2002 gd@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- fixed samba log paths
|
2008-02-01 00:45:45 +01:00
|
|
|
* Fri Jul 12 2002 kukuk@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- Fix post-install script for the case that there is no rc.config
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Jun 24 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- fixed squid log paths (#16557)
|
2008-02-01 00:45:45 +01:00
|
|
|
* Thu May 09 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- uucp-logfiles are handled by own config
|
2008-02-01 00:45:45 +01:00
|
|
|
* Tue Mar 19 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- don't rotate any file for /var/log/news.*
|
2008-02-01 00:45:45 +01:00
|
|
|
* Fri Mar 01 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- don't overwrite logfiles with dateext if run more than once
|
|
|
|
a day (partial solution for #13202)
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Feb 25 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- install etc_logfiles as 644
|
2008-02-01 00:45:45 +01:00
|
|
|
* Tue Feb 19 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- removed yast from logrotate.d
|
2008-02-01 00:45:45 +01:00
|
|
|
* Sat Feb 16 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- removed postgresql logfile (handled by package)
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Jan 07 2002 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- take wtmp out of default config
|
2008-02-01 00:45:45 +01:00
|
|
|
* Fri Dec 14 2001 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- really remove old variable from rc.config
|
2008-02-01 00:45:45 +01:00
|
|
|
* Wed Dec 12 2001 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- mark files in /etc/logrotate.d as noreplace
|
2008-02-01 00:45:45 +01:00
|
|
|
* Tue Dec 11 2001 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- implement maxage if dateext is not used
|
|
|
|
- uncompress log for mail if maillast is used
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Dec 10 2001 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- added etc_logfiles as reminder to sources
|
|
|
|
- moved convert script into postinstall and try to find
|
|
|
|
old etc/logfiles and use etc_logfiles as fallback
|
|
|
|
- added yast and syslog to /etc/logrotate.d as config files
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Dec 10 2001 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- added maxage extension
|
2008-02-01 00:45:45 +01:00
|
|
|
* Thu Dec 06 2001 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- split patches for purpose
|
2008-02-01 00:45:45 +01:00
|
|
|
* Tue Dec 04 2001 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- archiving option changed to "dateext" and
|
|
|
|
works completely transparent otherwise
|
2008-02-01 00:45:45 +01:00
|
|
|
* Tue Nov 27 2001 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- added multiple rotation criteria can be selected at one time
|
|
|
|
- added/completed implementation for days (max days)
|
2008-02-01 00:45:45 +01:00
|
|
|
* Mon Nov 26 2001 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- added archiving option
|
|
|
|
- added script to convert /etc/logfiles
|
2008-02-01 00:45:45 +01:00
|
|
|
* Tue Nov 13 2001 ro@suse.de
|
2007-01-16 00:24:09 +01:00
|
|
|
- initial package for SuSE Linux (version 3.5.9)
|