]> git.pld-linux.org Git - packages/mailgraph.git/blame - mailgraph-paths.patch
- update mailgraph-paths.patch to change paths in mailgraph.pl
[packages/mailgraph.git] / mailgraph-paths.patch
CommitLineData
2358e57b
GS
1diff -urN mailgraph-0.20/mailgraph.cgi mailgraph-0.20.dzikus/mailgraph.cgi
2--- mailgraph-0.20/mailgraph.cgi Tue Jul 2 11:14:49 2002
f7668553 3+++ mailgraph-0.20.dzikus/mailgraph.cgi Tue Jul 30 14:12:48 2002
2358e57b 4@@ -14,8 +14,8 @@
f85deac0 5 my $xpoints = 540;
6 my $ypoints = 150;
ab939c55 7 my $ypoints_err = 80;
f85deac0 8-my $rrd = 'mailgraph.rrd'; # path to where the RRD database is
2358e57b 9-my $rrd_virus = 'mailgraph_virus.rrd'; # path to where the Virus RRD database is
f85deac0 10+my $rrd = '/var/lib/mailgraph/mailgraph.rrd'; # path to where the RRD database is
2358e57b 11+my $rrd_virus = '/var/lib/mailgraph/mailgraph_virus.rrd'; # path to where the Virus RRD database is
f85deac0 12 my $tmp_dir = '/tmp/mailgraph'; # temporary directory where to store the images
ab939c55 13
f85deac0 14 my @graphs = (
2358e57b
GS
15diff -urN mailgraph-0.20/mailgraph.pl mailgraph-0.20.dzikus/mailgraph.pl
16--- mailgraph-0.20/mailgraph.pl Tue Jul 2 09:31:11 2002
f7668553
GS
17+++ mailgraph-0.20.dzikus/mailgraph.pl Tue Jul 30 14:12:11 2002
18@@ -195,8 +195,8 @@
19
20 # global variables
21 my $logfile;
22-my $rrd = "mailgraph.rrd";
23-my $rrd_virus = "mailgraph_virus.rrd";
24+my $rrd = "/var/lib/mailgraph/mailgraph.rrd";
25+my $rrd_virus = "/var/lib/mailgraph/mailgraph_virus.rrd";
26 my $year;
27 my $this_minute;
28 my %sum = ( sent => 0, received => 0, bounced => 0, rejected => 0, virus => 0, spam => 0 );
2358e57b 29@@ -217,7 +217,7 @@
ab939c55
GS
30 {
31 print "usage: mailgraph [*options*]\n\n";
32 print " -c, --cat causes the logfile to be only read and not monitored\n";
33- print " -l, --logfile f monitor logfile f instead of /var/log/syslog\n";
34+ print " -l, --logfile f monitor logfile f instead of /var/log/maillog\n";
35 print " -h, --help display this help and exit\n";
36 print " -v, --version output version information and exit\n";
2358e57b
GS
37 print " -y, --year starting year of the log file (default: current year)\n";
38@@ -237,7 +237,7 @@
ab939c55
GS
39 exit;
40 }
41
42- my $logfile = defined $opt{logfile} ? $opt{logfile} : '/var/log/syslog';
43+ my $logfile = defined $opt{logfile} ? $opt{logfile} : '/var/log/maillog';
44 my $file;
45 if($opt{cat}) {
46 $file = $logfile;
This page took 0.182176 seconds and 4 git commands to generate.