Index: /trunk/examples/logrotate.cron
=================================================================== --- a/examples/logrotate.cron (revision 268) +++ b/examples/logrotate.cron (revision 334) @@ -1,5 +1,5 @@ #!/bin/sh -/usr/sbin/logrotate /etc/logrotate.conf >/dev/null 2>&1 +/usr/sbin/logrotate /etc/logrotate.conf EXITVALUE=$? if [ $EXITVALUE != 0 ]; then
This commit is contained in:
parent
ae578d8228
commit
5d6d8a191b
11
logrotate-3.8.0-no-cron-redirection.patch
Normal file
11
logrotate-3.8.0-no-cron-redirection.patch
Normal file
@ -0,0 +1,11 @@
|
||||
Index: /trunk/examples/logrotate.cron
|
||||
===================================================================
|
||||
--- a/examples/logrotate.cron (revision 268)
|
||||
+++ b/examples/logrotate.cron (revision 334)
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
-/usr/sbin/logrotate /etc/logrotate.conf >/dev/null 2>&1
|
||||
+/usr/sbin/logrotate /etc/logrotate.conf
|
||||
EXITVALUE=$?
|
||||
if [ $EXITVALUE != 0 ]; then
|
@ -1,11 +1,12 @@
|
||||
Summary: Rotates, compresses, removes and mails system log files
|
||||
Name: logrotate
|
||||
Version: 3.8.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPL+
|
||||
Group: System Environment/Base
|
||||
Url: https://fedorahosted.org/logrotate/
|
||||
Source: https://fedorahosted.org/releases/l/o/logrotate/logrotate-%{version}.tar.gz
|
||||
Patch0: logrotate-3.8.0-no-cron-redirection.patch
|
||||
|
||||
Requires: coreutils >= 5.92 libsepol libselinux popt libacl
|
||||
BuildRequires: libselinux-devel popt-devel libacl-devel
|
||||
@ -25,6 +26,8 @@ log files on your system.
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" WITH_SELINUX=yes WITH_ACL=yes
|
||||
|
||||
@ -54,6 +57,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate.status
|
||||
|
||||
%changelog
|
||||
* Wed Jul 20 2011 Jan Kaluza <jkaluza@redhat.com> 3.8.0-2
|
||||
- fix #722825 - do not redirect logrotate output in cron script
|
||||
|
||||
* Tue Jun 21 2011 Jan Kaluza <jkaluza@redhat.com> 3.8.0-1
|
||||
- new upstream version 3.8.0
|
||||
- removed unused patches
|
||||
|
Loading…
Reference in New Issue
Block a user