- fix exim script

This commit is contained in:
Ivana Varekova 2008-11-13 11:46:00 +00:00
parent 51c5190693
commit 9da9a408f8
2 changed files with 28 additions and 1 deletions

22
logwatch-7.3.6-exim.patch Normal file
View File

@ -0,0 +1,22 @@
diff -up logwatch-7.3.6/scripts/services/exim.pom logwatch-7.3.6/scripts/services/exim
--- logwatch-7.3.6/scripts/services/exim.pom 2007-02-11 02:50:47.000000000 +0100
+++ logwatch-7.3.6/scripts/services/exim 2008-11-13 12:33:35.000000000 +0100
@@ -275,11 +275,13 @@ if ($Detail >= $LvlRestart) {
}
if ($Detail >= $LvlRestart) {
- print "\n--- Queue Runners ---\n";
- # Start Queue
- $StartQueue and print " Start queue run: $StartQueue Time(s)\n";
- # End Queue
- $EndQueue and print " End queue run: $EndQueue Time(s)\n";
+ if (($StartQueue >0 ) or ($EndQueue > 0)) {
+ print "\n--- Queue Runners ---\n";
+ # Start Queue
+ $StartQueue and print " Start queue run: $StartQueue Time(s)\n";
+ # End Queue
+ $EndQueue and print " End queue run: $EndQueue Time(s)\n";
+ }
}
if ($Detail >= $LvlVerify) {

View File

@ -1,7 +1,7 @@
Summary: A log file analysis program
Name: logwatch
Version: 7.3.6
Release: 34%{?dist}
Release: 35%{?dist}
License: MIT
Group: Applications/System
URL: http://www.logwatch.org/
@ -44,6 +44,7 @@ Patch40: logwatch-7.3.6-cron5.patch
Patch41: logwatch-7.3.6-logrotate.patch
Patch45: logwatch-7.3.6-init2.patch
Patch46: logwatch-7.3.6-secure2.patch
Patch47: logwatch-7.3.6-exim.patch
Requires: textutils sh-utils grep mailx
Requires: perl(Date::Manip)
@ -96,6 +97,7 @@ of the package on many systems.
%patch41 -p1
%patch45 -p1
%patch46 -p1
%patch47 -p1
rm -f scripts/services/*.orig
%build
@ -207,6 +209,9 @@ rm -rf %{buildroot}
%doc License project/CHANGES
%changelog
* Thu Nov 13 2008 Ivana Varekova <varekova@redhat.com> 7.3.6-35
- fix exim script
* Tue Nov 11 2008 Ivana Varekova <varekova@redhat.com> 7.3.6-34
- fix pam-unix script patches