diff --git a/logwatch-pam_unix.patch b/logwatch-pam_unix.patch new file mode 100644 index 0000000..3c14076 --- /dev/null +++ b/logwatch-pam_unix.patch @@ -0,0 +1,12 @@ +diff -up logwatch-20110113/scripts/services/pam_unix.orig logwatch-20110113/scripts/services/pam_unix +--- logwatch-20110113/scripts/services/pam_unix.orig 2011-01-06 23:16:39.000000000 +0100 ++++ logwatch-20110113/scripts/services/pam_unix 2011-01-17 19:02:29.218968788 +0100 +@@ -218,7 +218,7 @@ while ($line = ) { + if ($line =~ s/^password changed for (.+)/$1/) { + ($Detail >= 5) && $data{$service}{'Password changed'}{$line}++; + } +- } elsif (($service eq 'gdm') || ($service eq 'kdm') || ($service eq 'kcheckpass') || ($service eq 'xdm') || ($service eq 'imap') || ($service eq 'dovecot') || ($service eq 'cups')) { ++ } elsif (grep $_ eq $service, qw/gdm gdm-password kdm kcheckpass xdm imap dovecot cups/) { + if ($line =~ s/^session opened for user (.+) by \(uid=\d+\)/$1/) { + ($Detail >= 5) && $data{$service}{'Sessions Opened'}{$line}++; + } elsif ($line =~ s/^authentication failure;.* user=(.+)$/$1/) { diff --git a/logwatch.spec b/logwatch.spec index 4398abe..904e0c4 100644 --- a/logwatch.spec +++ b/logwatch.spec @@ -1,7 +1,7 @@ Summary: A log file analysis program Name: logwatch Version: 7.3.6 -Release: 59.20110113svn22%{?dist} +Release: 60.20110113svn22%{?dist} License: MIT Group: Applications/System URL: http://www.logwatch.org/ @@ -19,12 +19,19 @@ Patch1: logwatch-oldfiles.patch # older version by upstream due to licensing issues. Some parts are # solved by upstream. Patch2: logwatch-postfix.patch +# Sent to upstream. Patch3: logwatch-automount.patch +# Sent to upstream. Patch4: logwatch-dhcpd.patch +# Sent to upstream. Patch5: logwatch-dovecot.patch +# Sent to upstream. Patch6: logwatch-smartd.patch +# Sent to upstream. Patch7: logwatch-xntpd.patch +# Sent to upstream. Patch8: logwatch-dovecot2.patch +Patch9: logwatch-pam_unix.patch Requires: textutils sh-utils grep mailx Requires: perl(Date::Manip) BuildArchitectures: noarch @@ -46,6 +53,7 @@ of the package on many systems. %patch6 -p1 %patch7 -p1 %patch8 -p1 +%patch9 -p1 rm -f scripts/services/*.orig %build @@ -140,6 +148,9 @@ echo "# Configuration overrides for specific logfiles/services may be placed her #%doc License project/CHANGES %changelog +* Mon Jan 17 2011 Karel Klíč - 7.3.6-60.20110113svn22 +- Added logwatch-pam_unix.patch by Frank Crawford (rhbz#666586), modified + * Thu Jan 13 2011 Karel Klíč - 7.3.6-59.20110113svn22 - Correct date in the release number