1 --- bugzilla-2.22/Bugzilla/Config.pm 2006-04-23 05:45:09.000000000 +0300
2 +++ /home/glen/Config.pm 2006-04-24 02:50:00.901038343 +0300
8 +our $libpath = '/usr/share/bugzilla';
9 our $templatedir = "$libpath/template";
13 $localconfig = "$libpath/localconfig.$project";
14 $datadir = "$libpath/data/$project";
16 - $localconfig = "$libpath/localconfig";
17 - $datadir = "$libpath/data";
18 + $localconfig = "/etc/webapps/bugzilla/localconfig.pl";
19 + $datadir = "/var/lib/bugzilla/data";
21 our $attachdir = "$datadir/attachments";
22 our $webdotdir = "$datadir/webdot";
26 # Load in the param definitions
27 -foreach my $item ((glob "$libpath/Bugzilla/Config/*.pm")) {
28 +foreach my $item ((glob "/usr/share/perl5/vendor_perl/Bugzilla/Config/*.pm")) {
29 $item =~ m#/([^/]+)\.pm$#;
31 next if ($module eq 'Common');
32 --- bugzilla-2.22/checksetup.pl 2006-04-24 21:50:03.587496933 +0300
33 +++ bugzilla-2.22/checksetup.pl 2006-04-24 21:54:33.173506209 +0300
36 my $webservergroup_default;
37 if ($^O !~ /MSWin32/i) {
38 - $webservergroup_default = 'apache';
39 + $webservergroup_default = 'http';
41 $webservergroup_default = '';
44 # a Bugzilla with the old data format, and upgrade their data files.
46 # NB - the graphs dir isn't movable yet, unlike the datadir
47 -unless (-d 'graphs') {
48 +unless (-d '/var/lib/bugzilla/graphs') {
49 print "Creating graphs directory...\n";
50 # permissions for non-webservergroup are fixed later on
51 - mkdir 'graphs', 0770;
52 + mkdir '/var/lib/bugzilla/graphs', 0770;
54 foreach my $in_file (glob("$datadir/mining/*"))
57 mkdir "skins/custom", 0700;
60 -if (!-e "skins/.cvsignore") {
61 - open CVSIGNORE, '>>', "skins/.cvsignore";
62 - print CVSIGNORE ".cvsignore\n";
63 - print CVSIGNORE "custom\n";
67 # Create custom stylesheets for each standard stylesheet.
68 foreach my $standard (<skins/standard/*.css>) {
69 my $custom = $standard;
71 # chown needs to be called with a valid uid, not 0. $< returns the
72 # caller's uid. Maybe there should be a $bugzillauid, and call
74 - fixPerms('.htaccess', $<, $webservergid, 027); # glob('*') doesn't catch dotfiles
75 - fixPerms("$datadir/.htaccess", $<, $webservergid, 027);
76 fixPerms("$datadir/duplicates", $<, $webservergid, 027, 1);
77 fixPerms("$datadir/mining", $<, $webservergid, 027, 1);
78 fixPerms("$datadir/template", $<, $webservergid, 007, 1); # webserver will write to these
79 @@ -1377,21 +1368,15 @@
80 fixPerms($webdotdir, $<, $webservergid, 007, 1);
81 fixPerms("$webdotdir/.htaccess", $<, $webservergid, 027);
82 fixPerms("$datadir/params", $<, $webservergid, 017);
83 - fixPerms('*', $<, $webservergid, 027);
84 - fixPerms('Bugzilla', $<, $webservergid, 027, 1);
85 fixPerms($templatedir, $<, $webservergid, 027, 1);
86 - fixPerms('images', $<, $webservergid, 027, 1);
87 - fixPerms('css', $<, $webservergid, 027, 1);
88 - fixPerms('skins', $<, $webservergid, 027, 1);
89 - fixPerms('js', $<, $webservergid, 027, 1);
90 chmod 0644, 'globals.pl';
92 # Don't use fixPerms here, because it won't change perms
93 # on the directory unless it's using recursion
94 chown $<, $webservergid, $datadir;
96 - chown $<, $webservergid, 'graphs';
97 - chmod 0770, 'graphs';
98 + chown $<, $webservergid, '/var/lib/bugzilla/graphs';
99 + chmod 0770, '/var/lib/bugzilla/graphs';
101 # get current gid from $( list
102 my $gid = (split " ", $()[0];
103 @@ -1416,8 +1401,8 @@
104 # on the directory unless it's using recursion
105 chown $<, $gid, $datadir;
106 chmod 0777, $datadir;
107 - chown $<, $gid, 'graphs';
108 - chmod 01777, 'graphs';
109 + chown $<, $gid, '/var/lib/bugzilla/graphs';
110 + chmod 01777, '/var/lib/bugzilla/graphs';
114 --- a/collectstats.pl~ 2004-11-28 19:12:51.000000000 +0200
115 +++ a/collectstats.pl 2005-01-21 08:57:30.975582527 +0200
117 if (chdir("graphs")) {
121 + chdir("/usr/share/bugzilla");
125 --- bugzilla-2.22/checksetup.pl~ 2006-04-24 21:51:31.889465205 +0300
126 +++ bugzilla-2.22/checksetup.pl 2006-04-24 21:54:33.173506209 +0300
128 # <Directory> blocks.)
129 # If this is set to 1, Bugzilla will create these files if they don't exist.
130 # If this is set to 0, Bugzilla will not create these files.
131 -$create_htaccess = 1;
132 +$create_htaccess = 0;
135 my $webservergroup_default;