mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 04:46:28 -04:00
2001-01-02 21:23 knu * cvsweb.cgi, cvsweb.conf: Get cvsweb.cgi to run under perl -T. Change perl command line: Change perl5 to perl and just declare `require 5.000'. Remove -s option that was intended for debug use. Add -T option to perform security checks. Change search paths for cvsweb.conf: Don't adopt the value of $ENV{CVSWEB_CONFIG} that was intended for debug use. Search the same directory that cvsweb.cgi is in instead of the current directory. Invoking `last' in `do { ... } while (0);' is wrong. Change the loop to `while (1) { ... last; }'. Don't do chdir. Instead, use tar(1)'s -C option and cvs(1) export's -d option. Explicitly define $ENV{PATH}. Turn $allow_compress off by default so user can debug cvsweb.cgi easily.
23 lines
708 B
Text
23 lines
708 B
Text
--- cvsweb.conf.orig Tue Jan 2 21:23:20 2001
|
|
+++ cvsweb.conf Tue Jan 2 21:31:51 2001
|
|
@@ -28 +28 @@
|
|
- 'local' => '/home/cvs',
|
|
+ 'local' => '!!CVSROOT!!',
|
|
@@ -37 +37 @@
|
|
- 'local' => 'Local Repository',
|
|
+ 'local' => '!!TITLE!!',
|
|
@@ -203 +203 @@
|
|
-my $iconsdir = "/icons";
|
|
+my $iconsdir = "/icons/cvsweb";
|
|
@@ -323 +323 @@
|
|
-$mime_types = '/usr/local/etc/apache/mime.types';
|
|
+$mime_types = '!!PREFIX!!/etc/apache/mime.types';
|
|
@@ -395 +395 @@
|
|
-$ENV{'PATH'} = '/bin:/usr/bin:/usr/local/bin';
|
|
+$ENV{'PATH'} = '/bin:/usr/bin:!!PREFIX!!/bin';
|
|
@@ -449 +449 @@
|
|
-@tar_options = qw();
|
|
+@tar_options = qw(--ignore-failed-read);
|
|
@@ -454 +454 @@
|
|
-@cvs_options = qw(-l);
|
|
+@cvs_options = qw(-R -l);
|