summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog4
-rw-r--r--debian/patches/002_script-name.diff16
-rw-r--r--debian/patches/series1
3 files changed, 20 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index fe466be..d6e36e4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -27,8 +27,10 @@ mailgraph (1.14-2) UNRELEASED; urgency=low
* Rewrite both short and longn descriptions to state Exim and Sendmail
are also supported (Closes: #469257)
* Add recommends for an MTA
+ * Add patch to allow mailgraph.cgi to show graph if the script is renamed
+ (Closes: #434486)
- -- Julien Valroff <julien@kirya.net> Wed, 06 Jan 2010 21:17:55 +0100
+ -- Julien Valroff <julien@kirya.net> Thu, 07 Jan 2010 14:38:51 +0100
mailgraph (1.14-1.2) unstable; urgency=low
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;
diff --git a/debian/patches/series b/debian/patches/series
index a25f2e5..52266f0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
001_path-to-rrd.diff
+002_script-name.diff
101_dspam-virus-notifications.diff