- Resolves: 236618 (add anacron setting of mailto accept) thanks Todd
Denniston
This commit is contained in:
parent
11079669c9
commit
5a5e9e66dc
16
logwatch-7.3.4-mailto.patch
Normal file
16
logwatch-7.3.4-mailto.patch
Normal file
@ -0,0 +1,16 @@
|
||||
--- logwatch-7.3.4/scripts/logwatch.pl.pom 2007-04-13 15:43:35.000000000 +0200
|
||||
+++ logwatch-7.3.4/scripts/logwatch.pl 2007-04-20 12:14:43.000000000 +0200
|
||||
@@ -312,6 +312,13 @@
|
||||
|
||||
CleanVars();
|
||||
|
||||
+#if MAILTO is set in the environment, grab it as we may be being used by
|
||||
+#cron or anacron, which do not set command line args.
|
||||
+if ($ENV{'MAILTO'})
|
||||
+ {
|
||||
+ $Config{'mailto'} = $ENV{'MAILTO'};
|
||||
+ }
|
||||
+
|
||||
if ($OldMailTo ne $Config{'mailto'}) {
|
||||
$Config{'print'} = 0;
|
||||
} elsif ($OldPrint ne $Config{'print'}) {
|
||||
@ -1,7 +1,7 @@
|
||||
Summary: A log file analysis program
|
||||
Name: logwatch
|
||||
Version: 7.3.4
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
License: MIT
|
||||
Group: Applications/System
|
||||
URL: http://www.logwatch.org/
|
||||
@ -13,6 +13,7 @@ Patch4: logwatch-7.3.4-secure.patch
|
||||
Patch5: logwatch-7.3.4-xntpd.patch
|
||||
Patch6: logwatch-7.3.4-sshd.patch
|
||||
Patch7: logwatch-7.3.4-xntpd2.patch
|
||||
Patch8: logwatch-7.3.4-mailto.patch
|
||||
|
||||
Requires: textutils sh-utils grep mailx
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
@ -33,6 +34,7 @@ of the package on many systems.
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
|
||||
%build
|
||||
|
||||
@ -98,7 +100,6 @@ echo "# Local configuration options go here (defaults are in %{_datadir}/logwatc
|
||||
echo "# Configuration overrides for specific logfiles/services may be placed here." > %{buildroot}%{_sysconfdir}/logwatch/conf/override.conf
|
||||
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
@ -146,6 +147,11 @@ rm -rf %{buildroot}
|
||||
%doc License project/CHANGES
|
||||
|
||||
%changelog
|
||||
* Fri Apr 20 2007 Ivana Varekova <varekova@redhat.com> 7.3.4-7
|
||||
- Resolves: 236618
|
||||
(add anacron setting of mailto accept)
|
||||
thanks Todd Denniston
|
||||
|
||||
* Fri Apr 13 2007 Ivana Varekova <varekova@redhat.com> 7.3.4-6
|
||||
- remove another xntpd service logs
|
||||
- add sshd logs with two spaces after the date tag
|
||||
|
||||
Loading…
Reference in New Issue
Block a user