[logcheck/el6] fix for bz 705822

Matthias Runge mrunge at fedoraproject.org
Wed Aug 17 12:16:05 UTC 2011


commit f0154be9f9f185c8e19873d4912cd9648dccf9bd
Author: Matthias Runge <mrunge at matthias-runge.de>
Date:   Wed Aug 17 14:15:26 2011 +0200

    fix for bz 705822

 logcheck.spec |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/logcheck.spec b/logcheck.spec
index 861405b..5933046 100644
--- a/logcheck.spec
+++ b/logcheck.spec
@@ -1,6 +1,6 @@
 Name:           logcheck 
 Version:        1.3.13
-Release:        2%{?dist}
+Release:        4%{?dist}
 Summary:        Analyzes log files and sends noticeable events as email 
 
 License:        GPLv2
@@ -32,7 +32,8 @@ sed -i "s/syslog/messages/" etc/logcheck.logfiles
 sed -i "s/auth\.log/secure/" etc/logcheck.logfiles
 
 # use fedora run-parts (misses --list-option)
-sed -i "s/for rulefile in \$(run-parts --list \"\$dir\"); do/for rulefile in \$(run-parts \"\$dir\"); do/" src/logcheck
+sed -i "s/for rulefile in \$(run-parts --list \"\$dir\"); do/for rulefile in \$(find \"\$dir\" -maxdepth 1 -type f ! -name \"*.spec\" ! -name \"*.old\" ! -name \"*.rpmnew\" ! -name  \"*.rpmsave\"); do/" src/logcheck
+
 
 
 %build
@@ -102,6 +103,9 @@ exit 0
 
 
 %changelog
+* Wed Aug 17 2011 Matthias Runge <mrunge at matthias-runge.de> 1.3.13-4
+- fix for bz 705822 (run-parts needs the --list parameter (or logcheck needs a workaround))
+
 * Mon Sep 6 2010 Matthias Runge <mrunge at matthias-runge.de> 1.3.13-1
 - update to 1.3.13
 - make permissions fit to fedora-packaging guidelines


More information about the scm-commits mailing list