[logcheck/el5] - finally fixed run-parts (substitute by find)
Matthias Runge
mrunge at fedoraproject.org
Wed Aug 17 11:56:45 UTC 2011
commit bbce6c8b51b0cef11660126df02c0bb7cb681f3e
Author: Matthias Runge <mrunge at matthias-runge.de>
Date: Wed Aug 17 13:55:21 2011 +0200
- finally fixed run-parts (substitute by find)
logcheck.spec | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/logcheck.spec b/logcheck.spec
index 14327e1..f3c3090 100644
--- a/logcheck.spec
+++ b/logcheck.spec
@@ -1,6 +1,6 @@
Name: logcheck
Version: 1.3.13
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Analyzes log files and sends noticeable events as email
License: GPLv2
@@ -32,7 +32,7 @@ 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 +102,9 @@ exit 0
%changelog
+* Wed Aug 17 2011 Matthias Runge <mrunge at matthias-runge.de> 1.3.13-4
+- fix run-parts-call
+
* Tue Sep 14 2010 Matthias Runge <mrunge at matthias-runge.de> 1.3.13-3
- escape " in sed-call
More information about the scm-commits
mailing list