[logcheck/el5] From Ticket 705822: please also ignore files like "*~", "*, ", "*.swp", und "*.cfsaved", because they

Matthias Runge mrunge at fedoraproject.org
Fri Aug 26 13:54:51 UTC 2011


commit 83059b68b40c31ec6a2af75563953d34c748a6d4
Author: Matthias Runge <mrunge at matthias-runge.de>
Date:   Fri Aug 26 15:53:34 2011 +0200

    From Ticket 705822: please also
    ignore files like "*~", "*,", "*.swp", und "*.cfsaved", because
    they are ignored by run-parts on Fedora 15, too.

 logcheck.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/logcheck.spec b/logcheck.spec
index f3c3090..0834505 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,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 \$(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
@@ -102,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 run-parts-call
 


More information about the scm-commits mailing list