[logcheck/el5] fix for bug 706155 (logcheck-test uses mktemp --tempdir)

Matthias Runge mrunge at fedoraproject.org
Wed Sep 28 20:22:17 UTC 2011


commit b07e86407f227d8b3d0c401ef3c65badbf5282f2
Author: Matthias Runge <mrunge at matthias-runge.de>
Date:   Wed Sep 28 22:20:42 2011 +0200

    fix for bug 706155 (logcheck-test uses mktemp --tempdir)

 logcheck.spec |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/logcheck.spec b/logcheck.spec
index 0834505..e7925e2 100644
--- a/logcheck.spec
+++ b/logcheck.spec
@@ -1,6 +1,6 @@
 Name:           logcheck 
 Version:        1.3.13
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Analyzes log files and sends noticeable events as email 
 
 License:        GPLv2
@@ -31,9 +31,12 @@ expression files contain in the database.
 sed -i "s/syslog/messages/" etc/logcheck.logfiles
 sed -i "s/auth\.log/secure/" etc/logcheck.logfiles
 
-# use fedora run-parts (misses --list-option)
+# original package uses run-parts (with list-parameter)
+# this does not exist for fedora <14 and el5,6
 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
 
+# fix for bug 706155 logcheck-test uses mktemp --tempdir
+sed -i "s/mktemp --tmpdir/mktemp -t/" src/logcheck-test
 
 %build
 
@@ -102,6 +105,10 @@ exit 0
 
 
 %changelog
+* Wed Sep 28 2011 Matthias Runge <mrunge at matthias-runge.de> 1.3.13-6
+- revise comment about run-parts
+- substitute mktemp --tempdir in src/logcheck-test by mktemp -t
+
 * Fri Aug 26 2011 Matthias Runge <mrunge at matthias-runge.de> 1.3.13-5
 - even exclude "*~", "*,", "*.swp", und "*.cfsaved" files
 


More information about the scm-commits mailing list