openbsd-ports/net/munin/patches/patch-plugins_node_d_mailscanner_in
william 2d7fd6010b Add dependency on logtail and enable the amavis, courier, mailscanner,
and perdition plugins.  The dependency can be satisfied by either the
logtail or logsentry ports (thanks to sthen for realizing this!)

ok sthen
2012-07-11 03:46:42 +00:00

29 lines
977 B
Plaintext

$OpenBSD: patch-plugins_node_d_mailscanner_in,v 1.1 2012/07/11 03:46:42 william Exp $
--- plugins/node.d/mailscanner.in.orig Sat Mar 3 23:31:30 2012
+++ plugins/node.d/mailscanner.in Sat Mar 3 23:32:04 2012
@@ -15,11 +15,11 @@ The following environment variables are used by this p
=item logfile
The file where MailScanner logs its action (Default:
-/var/log/mail.log)
+/var/log/maillog)
=item logtail
-The location of the logtail command (Default: /usr/sbin/logtail)
+The location of the logtail command (Default: /usr/local/bin/logtail)
=item offsetfile
@@ -41,8 +41,8 @@ Requires the logtail command somewhere in path
use strict;
-my $logfile = '/var/log/mail.log';
-my $logtail = '/usr/sbin/logtail';
+my $logfile = '/var/log/maillog';
+my $logtail = '/usr/local/bin/logtail';
my $offsetfile = "@@PLUGSTATE@@/munin-mailscanner.offset";
my ($clean, $viruses, $spams, $others, $total) = (0, 0, 0, 0, 0);
my $cmd = (defined($ARGV[0])) ? $ARGV[0] : '';