[logcheck/el6] - even exclude "*~", "*, ", "*.swp", und "*.cfsaved" files
Matthias Runge
mrunge at fedoraproject.org
Fri Aug 26 14:06:15 UTC 2011
commit 2b4c9c757b3ab1d73fb7f3c3407a96b29a453143
Author: Matthias Runge <mrunge at herodot.berg.ol>
Date: Fri Aug 26 16:05:19 2011 +0200
- even exclude "*~", "*,", "*.swp", und "*.cfsaved" files
logcheck.spec | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/logcheck.spec b/logcheck.spec
index 5933046..fef675d 100644
--- a/logcheck.spec
+++ b/logcheck.spec
@@ -1,6 +1,6 @@
Name: logcheck
Version: 1.3.13
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Analyzes log files and sends noticeable events as email
License: GPLv2
@@ -32,8 +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 \$(find \"\$dir\" -maxdepth 1 -type f ! -name \"*.spec\" ! -name \"*.old\" ! -name \"*.rpmnew\" ! -name \"*.rpmsave\"); 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\" ! -name \"*~\" ! -name \"*,\" ! -name \"*.swp\" ! -name \"*.cfsaved\" ); do/" src/logcheck
%build
@@ -103,6 +102,9 @@ exit 0
%changelog
+* Fri Aug 26 2011 Matthias Runge <mrunge at matthias-runge.de> 1.3.13-5
+- even exclude "*~", "*,", "*.swp", und "*.cfsaved" files
+
* 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))
More information about the scm-commits
mailing list