fixed several things reported/patched by Rob Browning, and a couple of more things
From 2.3 to 2.4
---------------
+Add the following variables to the /etc/debbugs/config file:
+
+$gWebHost = "localhost"; # e.g. www.debian.org
+$gWebHostBugDir = "Bugs"; # e.g. Bugs
+# For now, don't change this one manually!
+$gWebDomain = "$gWebHost/$gWebHostBugDir";
+$gCGIDomain = "$gWebDomain/Bugs/cgi"; # e.g. cgi.debian.org
+$gPackagePages = "packages.debian.org"; # e.g. packages.debian.org
+
+($gWebDomain will probably exist already, change it as shown above.)
+
Add the following variable to the /etc/debbugs/text file:
############################################################################
}
$base= $ENV{'HTTP_REFERER'};
-if ($base =~ s:/Bugs/.*$::) {
+if ($base =~ s:/${gWebHostBugDir}/.*$::) {
for $y (keys %map) {
$base= $map{$y} if $base eq $y;
}
$base= $in{'base'};
}
-$newurl= "$base/Bugs/db/$suburl";
+$newurl= "$base/${gWebHostBugDir}/db/$suburl";
print <<END;
Status: 301 Redirect
Location: $newurl
$severity = $debbugs::gDefaultSeverity if ($severity eq '');
next unless defined $section{${pending} . "_" . ${severity}};
$result .= "<HR><H2>$debbugs::gSeverityDisplay{$severity} - $displayshowpending{$pending}</H2>\n";
- $result .= "(A list of <a href=\"http://www.debian.org/Bugs/db/si/$pending$severity\">all such bugs</a> is available).\n";
+ $result .= "(A list of <a href=\"${debbugs::gWebDomain}/db/si/$pending$severity\">all such bugs</a> is available).\n";
$result .= "<UL>\n";
$result .= $section{$pending . "_" . $severity};
$result .= "</UL>\n";
print "<p>Note that with multi-binary packages there may be other\n";
print "reports filed under the different binary package names.</p>\n";
print "\n";
- printf "<p>You might like to refer to the <a href=\"%s\">%s package page</a></p>\n", urlsanit("http://packages.debian.org/$pkg"), htmlsanit("$pkg");
+ printf "<p>You might like to refer to the <a href=\"%s\">%s package page</a></p>\n", urlsanit("http://${debbugs::gPackagePages}/$pkg"), htmlsanit("$pkg");
} elsif (defined $maint || defined $maintenc) {
print "<p>Note that maintainers may use different Maintainer fields for\n";
print "different packages, so there may be other reports filed under\n";
-------------
On initial installation, debbugsconfig will be run, and it will copy the
basic configuration files to /etc/debbugs. Edit those files to suit your
-needs.
+needs, and re-run debbugsconfig.
WWW
---
}
$gConfigDir = "/etc/debbugs" if (!defined($gConfigDir));
-&template("config");
+&template("config", $gConfigDir);
require "$gConfigDir/config";
unshift @INC, $gConfigDir;
-&template("text");
+&template("text", $gConfigDir);
require "text";
-&template("Maintainers");
-&template("pseudo-packages.description");
-&template("nextnumber");
+&template("Maintainers", $gConfigDir);
+&template("pseudo-packages.description", $gConfigDir);
+
+&template("nextnumber", $gSpoolDir);
# stuff used when testing (comment out the above)
#unshift @INC, "../";
# -------------------------------------------------------------------------- #
sub template {
- my ($name) = @_;
- if (! -f "$gConfigDir/$name") {
- system("cp /usr/share/doc/debbugs/examples/$name $gConfigDir/$name") == 0 ||
+ my ($name, $destdir) = @_;
+ if (! -f "$destdir/$name") {
+ system("cp /usr/share/doc/debbugs/examples/$name $destdir/$name") == 0 ||
die "$!";
- print "created $gConfigDir/$name from template.\n";
+ print "created $destdir/$name from template.\n";
}
}
It has been marked as closed by one of the developers, namely
LTAG_REPLY_TO.
-You should be hearing from them with a substantive response shortly,
-if you have not already done so. If not, please contact them
-directly or email the Developer's list at debian-devel@lists.debian.org.
+GTAG_BUG_CLOSURE_MSG_BODY
GTAG_MAINTAINER_NAME
(administrator, GTAG_PROJECT GTAG_BUG database)
# This is the template debbugs configuration file.
# You *must* edit it in order for debbugs to work.
-# $Id: config.in,v 1.11 2000/10/10 23:42:14 joy Exp $
+# $Id: config.in,v 1.12 2001/01/27 22:09:01 joy Exp $
# Domains
$gEmailDomain = "bugs.something"; # e.g. bugs.debian.org
$gListDomain = "lists.something"; # e.g. lists.debian.org
-$gWebDomain = "localhost/Bugs"; # e.g. www.debian.org/Bugs
+$gWebHost = "localhost"; # e.g. www.debian.org
+$gWebHostBugDir = "Bugs"; # e.g. Bugs
+# For now, don't change this one manually!
+$gWebDomain = "$gWebHost/$gWebHostBugDir";
$gCGIDomain = "$gWebDomain/Bugs/cgi"; # e.g. cgi.debian.org
$gMirrors = ""; # comma separated list
+$gPackagePages = "packages.debian.org"; # e.g. packages.debian.org
# Project identification
$gProject = "Something"; # e.g. Debian
#!/usr/bin/perl
-# $Id: html-control.in,v 1.5 2000/10/07 17:27:13 joy Exp $
+# $Id: html-control.in,v 1.6 2001/01/27 22:09:01 joy Exp $
use POSIX;
From: $gMaintainerEmail ($gProject $gBug Tracking System)
To: $gMirrorList\@$gListDomain
Subject: $gProject $gBugs autoupdate 259012
-Message-ID: <handle.htmlup.$seqmid\@gEmailDebian>
+Message-ID: <handle.htmlup.$seqmid\@$gEmailDomain>
X-$gProject=PR: update $sequences
END
From: $gMaintainerEmail ($gProject $gBug Tracking System)
To: $gMaintainerEmail
Subject: $gProject $gBugs autoupdate 259012
-Message-ID: <handle.htmlup.$seqmid\@gEmailDebian>
+Message-ID: <handle.htmlup.$seqmid\@$gEmailDomain>
X-$gProject=PR: update $sequences
END