summaryrefslogtreecommitdiff
path: root/debian/patches/002_script-name.diff
diff options
context:
space:
mode:
authorJulien Valroff <julien@kirya.net>2010-01-07 14:44:13 +0100
committerJulien Valroff <julien@kirya.net>2010-01-07 14:44:13 +0100
commite593378866f5f9cbf07589d82a2e1b8d8ca255f1 (patch)
tree7c871a6d476ef9f4ecb17a6561abdfb4902060ac /debian/patches/002_script-name.diff
parent323beb75f5478f1249752f37fe3f54b4deba48f5 (diff)
Add patch to allow mailgraph.cgi to show graphs even if the script is renamed
Diffstat (limited to 'debian/patches/002_script-name.diff')
-rw-r--r--debian/patches/002_script-name.diff16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/002_script-name.diff b/debian/patches/002_script-name.diff
new file mode 100644
index 0000000..eaacd83
--- /dev/null
+++ b/debian/patches/002_script-name.diff
@@ -0,0 +1,16 @@
+Description: Allows mailgrap to show graph is the script is renamed
+Author: Julien Valroff <julien@kirya.net>
+Fowrarded: no
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=434486
+
+--- a/mailgraph.cgi
++++ b/mailgraph.cgi
+@@ -11,7 +11,7 @@
+ my $VERSION = "1.14";
+
+ my $host = (POSIX::uname())[1];
+-my $scriptname = 'mailgraph.cgi';
++my $scriptname = $ENV{"SCRIPT_NAME"};
+ my $xpoints = 540;
+ my $points_per_sample = 3;
+ my $ypoints = 160;