SOURCES: munin-plugins.patch - fix tempfile problems in amavis plugin

baggins baggins at pld-linux.org
Mon Mar 16 16:37:45 CET 2009


Author: baggins                      Date: Mon Mar 16 15:37:45 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix tempfile problems in amavis plugin

---- Files affected:
SOURCES:
   munin-plugins.patch (1.24 -> 1.25) 

---- Diffs:

================================================================
Index: SOURCES/munin-plugins.patch
diff -u SOURCES/munin-plugins.patch:1.24 SOURCES/munin-plugins.patch:1.25
--- SOURCES/munin-plugins.patch:1.24	Wed Dec  3 23:51:24 2008
+++ SOURCES/munin-plugins.patch	Mon Mar 16 16:37:39 2009
@@ -912,3 +912,32 @@
 -die "Error running iptables. Dying\n" if $?;
 +die "Error running /usr/sbin/iptables. Dying\n" if $?;
  # vim:syntax=perl
+--- munin-1.3.4/node/node.d/amavis.in~	2008-03-08 02:42:39.000000000 +0100
++++ munin-1.3.4/node/node.d/amavis.in	2009-03-16 16:30:48.000000000 +0100
+@@ -59,7 +59,7 @@
+ 
+ 
+ mktempfile () {
+-    $MUNIN_MKTEMP
++    mktemp -p /tmp/ $1
+ }
+ 
+ AMAVIS_LOG=${amavislog:-/var/log/mail/mail.info}
+@@ -87,7 +87,7 @@
+ 
+ if [ "$1" = "config" ]; then
+ 	echo 'graph_title Amavis filter statistics'
+-	echo 'graph_vlabel #'
++	echo 'graph_vlabel mails'
+ 	echo 'graph_category antivirus'
+ 	echo 'virus.label virus'
+ 	echo 'virus.info Number of viruses caught in email'
+@@ -105,7 +105,7 @@
+ spamm=U
+ spams=U
+ 
+-TEMP_FILE=$(mktempfile munin-amavis.XXXXXX)
++TEMP_FILE=$(mktempfile munin-amavis.XXXXXXXXXX)
+ 
+ if [ -n "$TEMP_FILE" -a -f "$TEMP_FILE" ]
+ then
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/munin-plugins.patch?r1=1.24&r2=1.25&f=u



More information about the pld-cvs-commit mailing list