From 3e81855fc65b49d05bf0dc0d1a1cf1b1b044f8f4 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 13 Jun 2006 00:13:34 +0000 Subject: Bug 330487: Automatic Update Notification for Bugzilla - Patch by Frédéric Buclin r=mkanat a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- checksetup.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'checksetup.pl') 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); -- cgit v1.2.3-24-g4f1b