2004-09-09 07:59:26 +00:00
|
|
|
Summary: Rotates, compresses, removes and mails system log files.
|
|
|
|
Name: logrotate
|
2006-05-17 15:08:08 +00:00
|
|
|
Version: 3.7.4
|
2006-08-10 00:50:09 +00:00
|
|
|
Release: 5
|
2004-09-09 08:00:41 +00:00
|
|
|
License: GPL
|
2004-09-09 07:59:26 +00:00
|
|
|
Group: System Environment/Base
|
2004-09-09 08:00:41 +00:00
|
|
|
Source: logrotate-%{PACKAGE_VERSION}.tar.gz
|
2006-08-10 00:50:09 +00:00
|
|
|
Patch: logrotate-selinux.patch
|
|
|
|
|
2004-09-09 08:00:41 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}.root
|
2006-08-10 00:50:09 +00:00
|
|
|
BuildRequires: libselinux-devel
|
2004-09-09 07:59:26 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The logrotate utility is designed to simplify the administration of
|
2004-09-09 08:01:11 +00:00
|
|
|
log files on a system which generates a lot of log files. Logrotate
|
|
|
|
allows for 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 gets to a certain size. Normally,
|
2004-09-09 07:59:26 +00:00
|
|
|
logrotate runs as a daily cron job.
|
|
|
|
|
2004-09-09 08:01:11 +00:00
|
|
|
Install the logrotate package if you need a utility to deal with the
|
|
|
|
log files on your system.
|
|
|
|
|
2004-09-09 07:59:26 +00:00
|
|
|
%prep
|
|
|
|
%setup
|
2006-08-10 00:50:09 +00:00
|
|
|
%patch -p1 -b .rhat
|
2004-09-09 07:59:26 +00:00
|
|
|
|
|
|
|
%build
|
2004-12-09 08:29:16 +00:00
|
|
|
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -g" \
|
2004-09-09 08:03:16 +00:00
|
|
|
WITH_SELINUX=yes
|
2004-09-09 07:59:26 +00:00
|
|
|
|
|
|
|
%install
|
2004-09-09 08:01:02 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-09-09 07:59:26 +00:00
|
|
|
make PREFIX=$RPM_BUILD_ROOT MANDIR=%{_mandir} install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/cron.daily
|
2004-09-09 08:01:02 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib
|
2004-09-09 07:59:26 +00:00
|
|
|
|
|
|
|
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
|
2004-09-09 08:01:02 +00:00
|
|
|
touch $RPM_BUILD_ROOT/var/lib/logrotate.status
|
2004-09-09 07:59:26 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
2004-09-09 07:59:32 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc CHANGES
|
2004-09-09 07:59:26 +00:00
|
|
|
%attr(0755, root, root) /usr/sbin/logrotate
|
|
|
|
%attr(0644, root, root) %{_mandir}/man8/logrotate.8*
|
|
|
|
%attr(0755, root, root) /etc/cron.daily/logrotate
|
2004-09-09 08:01:02 +00:00
|
|
|
%attr(0644, root, root) %config(noreplace) /etc/logrotate.conf
|
2004-09-09 07:59:26 +00:00
|
|
|
%attr(0755, root, root) %dir /etc/logrotate.d
|
2004-09-09 08:01:02 +00:00
|
|
|
%attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) /var/lib/logrotate.status
|
2004-09-09 07:59:26 +00:00
|
|
|
|
|
|
|
%changelog
|
2006-08-10 00:50:09 +00:00
|
|
|
* Wed Aug 9 2006 Dan Walsh <dwalsh@redhat.com> 3.7.4-5
|
|
|
|
- Use selinux raw functions
|
|
|
|
|
2006-07-24 12:18:42 +00:00
|
|
|
* Mon Jul 24 2006 Peter Vrabec <pvrabec@redhat.com> 3.7.4-4
|
|
|
|
- make error message, about ignoring certain config files,
|
|
|
|
a debug message instead (#196052)
|
|
|
|
|
2006-07-12 07:14:36 +00:00
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.7.4-3.1
|
|
|
|
- rebuild
|
|
|
|
|
2006-06-13 12:56:30 +00:00
|
|
|
* Tue Jun 13 2006 Peter Vrabec <pvrabec@redhat.com> 3.7.4-3
|
|
|
|
- rename ENOSUP to ENOTSUP
|
|
|
|
|
|
|
|
* Tue Jun 13 2006 Peter Vrabec <pvrabec@redhat.com> 3.7.4-2
|
|
|
|
- clean up a couple of SELinux problems. Patch from Daniel J. Walsh.
|
|
|
|
|
2006-05-17 15:08:08 +00:00
|
|
|
* Wed May 17 2006 Peter Vrabec <pvrabec@redhat.com> 3.7.4-1
|
|
|
|
- add new "minsize" option (#173088)
|
|
|
|
|
2006-03-29 09:41:37 +00:00
|
|
|
* Tue Mar 28 2006 Peter Vrabec <pvrabec@redhat.com> 3.7.3-3
|
|
|
|
- correct man page "extension" option description (#185318)
|
|
|
|
|
2006-02-11 04:25:09 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.7.3-2.2.1
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-02-07 12:52:55 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.7.3-2.2
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2005-12-09 22:41:49 +00:00
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-11-13 13:36:38 +00:00
|
|
|
* Sun Nov 13 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.3-2
|
|
|
|
- fix_free_segfaults (#172918)
|
|
|
|
|
2005-11-12 19:19:16 +00:00
|
|
|
* Sat Nov 12 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.3-1
|
|
|
|
- new upstream release
|
|
|
|
- indent sources
|
|
|
|
|
2005-11-11 15:18:21 +00:00
|
|
|
* Fri Nov 11 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-12
|
|
|
|
- fix_free_segfaults (#172918)
|
|
|
|
|
2005-11-12 19:19:16 +00:00
|
|
|
* Mon Nov 07 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-11
|
|
|
|
- man description for "nodateext" option (#171577)
|
|
|
|
- remove not working "pattern" option (#171577)
|
|
|
|
|
2005-10-25 12:07:16 +00:00
|
|
|
* Tue Oct 25 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-10
|
|
|
|
- some more clean up (#171587)
|
|
|
|
|
2005-10-21 08:18:24 +00:00
|
|
|
* Thu Oct 20 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-9
|
|
|
|
- fix_free_segfaults (#171093)
|
|
|
|
|
2005-10-18 14:14:51 +00:00
|
|
|
* Tue Oct 18 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-8
|
|
|
|
- fix leaks of tabooExts
|
|
|
|
|
2005-10-15 12:27:04 +00:00
|
|
|
* Sat Oct 15 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-7
|
|
|
|
- fix_free_segfaults (#170904)
|
|
|
|
|
2005-10-12 12:23:34 +00:00
|
|
|
* Wed Oct 12 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-6
|
|
|
|
- code clean up (#169885)
|
|
|
|
|
2005-10-10 12:18:18 +00:00
|
|
|
* Mon Oct 10 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-5
|
|
|
|
- fix bug introduced in logrotate 3.7.2-3(#169858)
|
|
|
|
- fix some memory leaks (#169888)
|
|
|
|
|
2005-09-28 11:47:36 +00:00
|
|
|
* Fri Sep 23 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-4
|
|
|
|
- do not run compression program in debug mode (#166912)
|
|
|
|
|
2005-09-07 15:30:53 +00:00
|
|
|
* Wed Sep 07 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-3
|
|
|
|
- even when sharedscript option used, do postrotate
|
|
|
|
script before compress (#167575)
|
|
|
|
|
2005-08-17 14:23:45 +00:00
|
|
|
* Wed Aug 17 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-2
|
|
|
|
- allow yearly rotations(#134612)
|
|
|
|
|
2005-08-01 12:22:18 +00:00
|
|
|
* Mon Aug 01 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-1
|
|
|
|
- new upstream release
|
|
|
|
|
2005-07-26 14:42:07 +00:00
|
|
|
* Tue Jul 26 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.1-14
|
|
|
|
- fix some "error running script" messages
|
|
|
|
|
2005-07-26 13:47:08 +00:00
|
|
|
* Tue Jul 26 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.1-13
|
|
|
|
- fix man page (#163458,#163366)
|
|
|
|
|
|
|
|
* Wed Jun 22 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.1-12
|
2005-06-22 13:31:33 +00:00
|
|
|
- enhance logrotate with "dateext", "maxage"
|
|
|
|
|
2005-03-31 19:53:25 +00:00
|
|
|
* Thu Mar 31 2005 Dan Walsh <dwalsh@redhat.com> 3.7.1-10
|
|
|
|
- use security_getenforce() instead of selinux_getenforcemode
|
|
|
|
|
2005-03-17 22:39:50 +00:00
|
|
|
* Thu Mar 17 2005 Dan Walsh <dwalsh@redhat.com> 3.7.1-9
|
|
|
|
- Add selinux_getenforce() calls to work when not in enforcing mode
|
|
|
|
|
2005-03-17 13:54:02 +00:00
|
|
|
* Thu Mar 17 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.1-8
|
|
|
|
- rebuild
|
|
|
|
|
2005-02-22 13:08:44 +00:00
|
|
|
* Tue Feb 22 2005 Peter Vrabec <pvrabec@redhat.com>
|
|
|
|
- do not use tmpfile to run script anymore (#149270)
|
|
|
|
|
2005-02-18 09:30:11 +00:00
|
|
|
* Fri Feb 18 2005 Peter Vrabec <pvrabec@redhat.com>
|
|
|
|
- remove logrotate-3.7.1-share.patch, it doesn't solve (#140353)
|
|
|
|
|
2004-12-13 12:30:28 +00:00
|
|
|
* Mon Dec 13 2004 Peter Vrabec <pvrabec@redhat.com> - 3.7.1-5
|
|
|
|
- Add section to logrotate.conf for "/var/log/btmp" (#117844)
|
|
|
|
|
|
|
|
* Mon Dec 13 2004 Peter Vrabec <pvrabec@redhat.com> - 3.7.1-4
|
|
|
|
- Typo and missing information in man page (#139346)
|
|
|
|
|
|
|
|
* Mon Dec 06 2004 Peter Vrabec <pvrabec@redhat.com> - 3.7.1-3
|
2004-12-09 08:29:16 +00:00
|
|
|
- compressed logfiles and logrotate (#140353)
|
|
|
|
|
2004-10-19 21:55:48 +00:00
|
|
|
* Tue Oct 19 2004 Miloslav Trmac <mitr@redhat.com> - 3.7.1-2
|
|
|
|
- Fix sending mails (#131583)
|
|
|
|
- Preserve file attributes when compressing files (#121523, original patch by
|
|
|
|
Daniel Himler)
|
|
|
|
|
|
|
|
* Fri Jul 16 2004 Elliot Lee <sopwith@redhat.com> 3.7.1-1
|
|
|
|
- Fix #126490 typo
|
|
|
|
|
2004-09-09 08:04:16 +00:00
|
|
|
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 08:04:09 +00:00
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 08:03:28 +00:00
|
|
|
* Mon Jan 26 2004 Dan Walsh <dwalsh@redhat.com> 3.6.10-4
|
|
|
|
- fix is_selinux_enabled call
|
|
|
|
|
|
|
|
* Fri Sep 5 2003 Dan Walsh <dwalsh@redhat.com> 3.6.10-3
|
|
|
|
- Turn off selinux
|
|
|
|
|
2004-09-09 08:03:22 +00:00
|
|
|
* Fri Sep 5 2003 Dan Walsh <dwalsh@redhat.com> 3.6.10-2.sel
|
|
|
|
- Turn on selinux
|
|
|
|
|
|
|
|
* Wed Aug 06 2003 Erik Troan <ewt@redhat.com>
|
|
|
|
- always use compressext for the extension for compressed
|
|
|
|
files; before compresscmd and compressext had to agree
|
|
|
|
- moved all compression to one code block
|
|
|
|
- compression, scripts don't use system() anymore
|
|
|
|
- compress and maillast didn't work together properly
|
|
|
|
- delaycompress and mailfirst didn't work properly
|
|
|
|
- don't use system() for mailing (or uncompressing) logs anymore
|
|
|
|
- use "-s" for speciying the subjected of mailed logs
|
|
|
|
|
2004-09-09 08:03:16 +00:00
|
|
|
* Thu Jul 24 2003 Elliot Lee <sopwith@redhat.com> 3.6.10-1
|
|
|
|
- Fix #100546, change selinux port.
|
|
|
|
|
|
|
|
* Wed Jul 18 2003 Dan Walsh <dwalsh@redhat.com> 3.6.9-2
|
|
|
|
- Port to SELinux 2.5
|
|
|
|
|
|
|
|
* Wed Jul 09 2003 Elliot Lee <sopwith@redhat.com> 3.6.9-1
|
|
|
|
- Fix #90229, #90274, #89458, #91408
|
|
|
|
|
2004-09-09 08:01:54 +00:00
|
|
|
* Mon Jan 20 2003 Elliot Lee <sopwith@redhat.com> 3.6.8-1
|
|
|
|
- Old patch from pm@debian.org
|
|
|
|
|
|
|
|
* Tue Jan 14 2003 Elliot Lee <sopwith@redhat.com> 3.6.7-1
|
|
|
|
- Fixes from bugzilla
|
|
|
|
|
|
|
|
* Fri Nov 15 2002 Elliot Lee <sopwith@redhat.com> 3.6.6-1
|
|
|
|
- Commit patch from Fidelis Assis <fidelis@embratel.net.br>
|
2004-09-09 08:01:38 +00:00
|
|
|
|
2004-09-09 08:01:18 +00:00
|
|
|
* Thu Jun 20 2002 Elliot Lee <sopwith@redhat.com> 3.6.5-1
|
|
|
|
- Commit fix for #65299
|
|
|
|
|
2004-09-09 08:01:11 +00:00
|
|
|
* Mon Apr 15 2002 Elliot Lee <sopwith@redhat.com> 3.6.4-1
|
|
|
|
- Commit fix for #62560
|
|
|
|
|
2004-09-09 08:01:02 +00:00
|
|
|
* Wed Mar 13 2002 Elliot Lee <sopwith@redhat.com> 3.6.3-1
|
|
|
|
- Apply various bugfix patches from the openwall people
|
|
|
|
|
|
|
|
* Tue Jan 29 2002 Elliot Lee <sopwith@redhat.com> 3.6.2-1
|
|
|
|
- Fix bug #55809 (include logrotate.status in %files)
|
|
|
|
- Fix bug #58328 (incorrect error detection when reading state file)
|
|
|
|
- Allow 'G' size specifier from bug #57242
|
|
|
|
|
|
|
|
* Mon Dec 10 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
- noreplace config file
|
|
|
|
|
|
|
|
* Wed Nov 28 2001 Preston Brown <pbrown@redhat.com> 3.6-1
|
|
|
|
- patch from Alexander Kourakos <awk@awks.org> to stop the shared
|
|
|
|
postrotate/prerotate scripts from running if none of the log(s) need
|
|
|
|
rotating. All log files are now checked for rotation in one batch,
|
|
|
|
rather than sequentially.
|
|
|
|
- more fixes from Paul Martin <pm@debian.org>
|
|
|
|
|
|
|
|
* Thu Nov 8 2001 Preston Brown <pbrown@redhat.com> 3.5.10-1
|
|
|
|
- fix from paul martin <pm@debian.org> for zero-length state files
|
|
|
|
|
2004-09-09 08:00:41 +00:00
|
|
|
* Tue Sep 4 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
- fix segfault when logfile is in current directory.
|
|
|
|
|
|
|
|
* Tue Aug 21 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
- fix URL for source location
|
|
|
|
|
2004-09-09 08:00:38 +00:00
|
|
|
* Thu Aug 2 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
- man page cleanups, check for negative rotation counts
|
|
|
|
|
2004-09-09 07:59:50 +00:00
|
|
|
* Mon Jul 2 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
- more minor manpage updates (#45625)
|
|
|
|
|
|
|
|
* Thu Jun 21 2001 Preston Brown <pbrown@redhat.com> 3.5.6-1
|
|
|
|
- enable LFS support (debian bug #100810)
|
|
|
|
- quote filenames for running compress commands or pre/postrotate cmds (#21348)
|
|
|
|
- deprecate "errors" directive (see bug #16544 for explanation)
|
|
|
|
- update man page
|
|
|
|
- configurable compression command by Colm Buckley <colm@tuatha.org>
|
|
|
|
|
|
|
|
* Fri Jun 1 2001 Preston Brown <pbrown@redhat.com> 3.5.5-1
|
|
|
|
- be less strict about whitespace near filenames. Patch from Paul Martin <pm@debian.org>.
|
|
|
|
|
2004-09-09 07:59:32 +00:00
|
|
|
* Thu Jan 4 2001 Bill Nottingham <notting@redhat.com>
|
2004-09-09 07:59:50 +00:00
|
|
|
- %%defattr
|
2004-09-09 07:59:32 +00:00
|
|
|
|
|
|
|
* Wed Jan 03 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
- see CHANGES
|
|
|
|
|
2004-09-09 07:59:26 +00:00
|
|
|
* Tue Aug 15 2000 Erik Troan <ewt@redhat.com>
|
|
|
|
- see CHANGES
|
|
|
|
|
|
|
|
* Sun Jul 23 2000 Erik Troan <ewt@redhat.com>
|
|
|
|
- see CHANGES
|
|
|
|
|
|
|
|
* Tue Jul 11 2000 Erik Troan <ewt@redhat.com>
|
|
|
|
- support spaces in filenames
|
|
|
|
- added sharedscripts
|
|
|
|
|
|
|
|
* Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
|
|
|
|
- use %%{_mandir} for man pages
|
|
|
|
|
|
|
|
* Thu Feb 24 2000 Erik Troan <ewt@redhat.com>
|
|
|
|
- don't rotate lastlog
|
|
|
|
|
|
|
|
* Thu Feb 03 2000 Erik Troan <ewt@redhat.com>
|
|
|
|
- gzipped manpages
|