diff options
author | Julien Valroff <julien@kirya.net> | 2010-10-23 14:11:22 +0200 |
---|---|---|
committer | Julien Valroff <julien@kirya.net> | 2011-03-13 18:30:14 +0100 |
commit | 6ae50dc1afce089ecf5595fdd13a088afe2886ca (patch) | |
tree | 3d3feb4f9c122b6542cb0ce8cc5750a19582a9e0 /debian/patches/102_mailgraph.cgi.diff | |
parent | 44962f21cbc5c9de2482c61b7b1cce1b81812eaa (diff) |
Imported Debian patch 1.14-1.4squeeze1debian/1.14-1.4squeeze1
Diffstat (limited to 'debian/patches/102_mailgraph.cgi.diff')
-rw-r--r-- | debian/patches/102_mailgraph.cgi.diff | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/patches/102_mailgraph.cgi.diff b/debian/patches/102_mailgraph.cgi.diff new file mode 100644 index 0000000..4409c58 --- /dev/null +++ b/debian/patches/102_mailgraph.cgi.diff @@ -0,0 +1,32 @@ +#! /bin/sh -e +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi +case "$1" in + -patch) patch -f --no-backup-if-mismatch -p1 < $0;; + -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +@DPATCH@ +diff -Nur mailgraph-1.12.orig/mailgraph.cgi mailgraph-1.12/mailgraph.cgi +--- mailgraph-1.12.orig/mailgraph.cgi 2005-10-16 19:17:00.000000000 +0200 ++++ mailgraph-1.12/mailgraph.cgi 2005-11-13 13:43:32.000000000 +0100 +@@ -15,9 +15,9 @@ + my $points_per_sample = 3; + my $ypoints = 160; + my $ypoints_err = 96; +-my $rrd = 'mailgraph.rrd'; # path to where the RRD database is +-my $rrd_virus = 'mailgraph_virus.rrd'; # path to where the Virus RRD database is +-my $tmp_dir = '/tmp/mailgraph'; # temporary directory where to store the images ++my $rrd = '/var/lib/mailgraph/mailgraph.rrd'; # path to where the RRD database is ++my $rrd_virus = '/var/lib/mailgraph/mailgraph_virus.rrd'; # path to where the Virus RRD database is ++my $tmp_dir = '/var/lib/mailgraph'; # temporary directory where to store the images + + my @graphs = ( + { title => 'Day Graphs', seconds => 3600*24, }, |