[packages/logwatch] - release 2, recognize miliseconds parts in exim log

adamg adamg at pld-linux.org
Fri Apr 5 06:48:13 CEST 2019


commit ca85e05f626168d94edefb4ee759bae98f4912b1
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Fri Apr 5 06:48:05 2019 +0200

    - release 2, recognize miliseconds parts in exim log

 logwatch-exim.patch | 11 +++++++++++
 logwatch.spec       | 10 +++++-----
 2 files changed, 16 insertions(+), 5 deletions(-)
---
diff --git a/logwatch.spec b/logwatch.spec
index f78e8c0..a13fbc6 100644
--- a/logwatch.spec
+++ b/logwatch.spec
@@ -3,7 +3,7 @@ Summary:	Analyzes system logs
 Summary(pl.UTF-8):	Logwatch - analizator logów systemowych
 Name:		logwatch
 Version:	7.5.1
-Release:	1
+Release:	2
 License:	MIT
 Group:		Applications/System
 Source0:	http://downloads.sourceforge.net/logwatch/%{name}-%{version}.tar.gz
@@ -17,8 +17,8 @@ Source4:	%{name}.cron
 Source5:	%{name}.tmpwatch
 Patch0:		%{name}-log_conf.patch
 Patch1:		%{name}-archives.patch
-
-Patch9:		%{name}-vsftpd.patch
+Patch2:		%{name}-vsftpd.patch
+Patch3:		%{name}-exim.patch
 URL:		http://www.logwatch.org/
 BuildRequires:	rpm-perlprov
 Requires:	crondaemon
@@ -47,8 +47,8 @@ użyciu i może pracować na większości systemów.
 %setup -q -a1
 %patch0 -p1
 %patch1 -p1
-
-%patch9 -p1
+%patch2 -p1
+%patch3 -p1
 
 # cleanup backups after patching
 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
diff --git a/logwatch-exim.patch b/logwatch-exim.patch
new file mode 100644
index 0000000..d61f7ec
--- /dev/null
+++ b/logwatch-exim.patch
@@ -0,0 +1,11 @@
+--- logwatch-7.5.1/scripts/services/exim~	2019-01-19 00:10:41.000000000 +0100
++++ logwatch-7.5.1/scripts/services/exim	2019-04-04 13:20:02.025395061 +0200
+@@ -95,7 +95,7 @@
+       }
+       $BadFormat{$ThisLine}++;
+       next;
+-   } unless ($year1,$month1,$day1,$h1,$m1,$s1) = ($ThisLine =~ /^(\d+)\-(\d+)\-(\d+)\s(\d+):(\d+):(\d+)\s.+/);
++   } unless ($year1,$month1,$day1,$h1,$m1,$s1,$ms1) = ($ThisLine =~ /^(\d+)\-(\d+)\-(\d+)\s(\d+):(\d+):(\d+)(\.\d+)\s.+/);
+ 
+    unless ($ThisLine =~ /^$SearchDate /o) {
+       $MatchedDate = 0;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/logwatch.git/commitdiff/ca85e05f626168d94edefb4ee759bae98f4912b1



More information about the pld-cvs-commit mailing list