summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-06-13 02:13:34 +0200
committerlpsolit%gmail.com <>2006-06-13 02:13:34 +0200
commit3e81855fc65b49d05bf0dc0d1a1cf1b1b044f8f4 (patch)
treeae6ebca77c751c1ac29bede5340fa8ba308494ca /checksetup.pl
parente36503867847944db6ef44491f0e8343b5faa591 (diff)
downloadbugzilla-3e81855fc65b49d05bf0dc0d1a1cf1b1b044f8f4.tar.gz
bugzilla-3e81855fc65b49d05bf0dc0d1a1cf1b1b044f8f4.tar.xz
Bug 330487: Automatic Update Notification for Bugzilla - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 23c52b221..7e7f7b4e1 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -355,6 +355,7 @@ my %ppm_modules = (
'Mail::Base64' => 'MIME-Base64',
'MIME::Tools' => 'MIME-Tools',
'XML::Twig' => 'XML-Twig',
+ 'LWP::UserAgent' => 'LWP-UserAgent'
);
sub install_command {
@@ -392,6 +393,7 @@ print "\nThe following Perl modules are optional:\n" unless $silent;
my $gd = have_vers("GD","1.20");
my $chartbase = have_vers("Chart::Base","1.0");
my $xmlparser = have_vers("XML::Twig",0);
+my $lwp_ua = have_vers("LWP::UserAgent",0);
my $gdgraph = have_vers("GD::Graph",0);
my $gdtextalign = have_vers("GD::Text::Align",0);
my $patchreader = have_vers("PatchReader","0.9.4");
@@ -420,6 +422,12 @@ if (!$xmlparser && !$silent) {
"the XML::Twig module by running (as $::root):\n\n",
" " . install_command("XML::Twig") . "\n\n";
}
+if (!$lwp_ua && !$silent) {
+ print "If you want to use the automatic update notification feature\n",
+ "you will need to install the LWP::UserAgent module by running\n",
+ "(as $::root):\n\n",
+ " " . install_command("LWP::UserAgent") . "\n\n";
+}
if (!$imagemagick && !$silent) {
print "If you want to convert BMP image attachments to PNG to conserve\n",
"disk space, you will need to install the ImageMagick application\n",
@@ -1420,6 +1428,8 @@ if ($^O !~ /MSWin32/i) {
fixPerms($webdotdir, $<, $webservergid, 007, 1);
fixPerms("$webdotdir/.htaccess", $<, $webservergid, 027);
fixPerms("$datadir/params", $<, $webservergid, 017);
+ # The web server must be the owner of bugzilla-update.xml.
+ fixPerms("$datadir/bugzilla-update.xml", $webservergid, $webservergid, 017);
fixPerms('*', $<, $webservergid, 027);
fixPerms('Bugzilla', $<, $webservergid, 027, 1);
fixPerms($templatedir, $<, $webservergid, 027, 1);
@@ -1447,6 +1457,7 @@ if ($^O !~ /MSWin32/i) {
chmod 01777, $webdotdir;
fixPerms("$webdotdir/.htaccess", $<, $gid, 022);
fixPerms("$datadir/params", $<, $gid, 011);
+ fixPerms("$datadir/bugzilla-update.xml", $gid, $gid, 011);
fixPerms('*', $<, $gid, 022);
fixPerms('Bugzilla', $<, $gid, 022, 1);
fixPerms($templatedir, $<, $gid, 022, 1);