2004-09-09 07:59:26 +00:00
|
|
|
Summary: Rotates, compresses, removes and mails system log files.
|
|
|
|
Name: logrotate
|
2004-09-09 08:00:41 +00:00
|
|
|
Version: 3.5.9
|
2004-09-09 07:59:26 +00:00
|
|
|
Release: 1
|
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
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}.root
|
2004-09-09 07:59:26 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The logrotate utility is designed to simplify the administration of
|
2004-09-09 08:00:38 +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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
|
|
|
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
|
|
|
%install
|
|
|
|
make PREFIX=$RPM_BUILD_ROOT MANDIR=%{_mandir} install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/cron.daily
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
%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
|
|
|
|
%attr(0644, root, root) %config /etc/logrotate.conf
|
|
|
|
%attr(0755, root, root) %dir /etc/logrotate.d
|
|
|
|
|
|
|
|
%changelog
|
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
|