From fa2996bcdc68d288f6b0bec7a1efd23c946ee201 Mon Sep 17 00:00:00 2001 From: Jan Synacek Date: Mon, 19 Dec 2011 15:13:11 +0100 Subject: [PATCH] Fix typo in sendmail service script (rhbz#708183) --- logwatch-sendmail-typo.patch | 11 +++++++++++ logwatch.spec | 8 +++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 logwatch-sendmail-typo.patch diff --git a/logwatch-sendmail-typo.patch b/logwatch-sendmail-typo.patch new file mode 100644 index 0000000..7df6045 --- /dev/null +++ b/logwatch-sendmail-typo.patch @@ -0,0 +1,11 @@ +--- logwatch-svn50/scripts/services/sendmail.old 2011-12-19 14:54:16.497290559 +0100 ++++ logwatch-svn50/scripts/services/sendmail 2011-12-19 14:54:26.331285099 +0100 +@@ -1758,7 +1758,7 @@ if (keys %Abuse) { + print "\n Total per host: $TotalAbuse" if ($Detail >= 5); + $TotalError[$ErrorIndex] += $TotalAbuse; + } +- print "\n\tTota: l $TotalError[$ErrorIndex]" if ($Detail >= 3); ++ print "\n\tTotal: $TotalError[$ErrorIndex]" if ($Detail >= 3); + } + $TotalError[++$ErrorIndex] = 0; + diff --git a/logwatch.spec b/logwatch.spec index 0837d95..73b9995 100644 --- a/logwatch.spec +++ b/logwatch.spec @@ -1,7 +1,7 @@ Summary: A log file analysis program Name: logwatch Version: 7.4.0 -Release: 5.20110328svn50%{?dist} +Release: 6.20110328svn50%{?dist} License: MIT Group: Applications/System URL: http://www.logwatch.org/ @@ -25,6 +25,8 @@ Patch5: logwatch-xntpd.patch Patch6: logwatch-smartd.patch Patch7: logwatch-dovecot.patch Patch8: logwatch-sshd.patch +# Fixes typo in sendmail script output, not yet in upstream +Patch9: logwatch-sendmail-typo.patch Requires: textutils sh-utils grep mailx Requires: perl(Date::Manip) BuildArchitectures: noarch @@ -46,6 +48,7 @@ of the package on many systems. %patch6 -p1 %patch7 -p1 %patch8 -p1 +%patch9 -p1 rm -f scripts/services/*.orig %build @@ -137,6 +140,9 @@ echo "# Configuration overrides for specific logfiles/services may be placed her %{_mandir}/man*/* %changelog +* Mon Dec 19 2011 Jan Synáček - 7.4.0-6.20110328svn50 +- Added -sendmail-typo patch (rhbz#708183) + * Sat Apr 30 2011 Frank Crawford - 7.4.0-5.20110328svn50 - Added -sshd patch to match more pam_systemd messages (rhbz#699558) - Updated logwatch.spec to create empty files in /etc/logwatch/conf