Update to knu-cvsweb 1.104.1.55.

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.
This commit is contained in:
Akinori MUSHA 2001-01-02 12:39:00 +00:00
parent cdaba9efbe
commit f46dcf77e6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=36598
8 changed files with 32 additions and 32 deletions

View file

@ -19,7 +19,7 @@ USE_PERL5= yes
# This version of cvsweb is Zeller's version + knu's enhancements.
REV_ZELLER= 1.104
REV_KNU= 1.54
REV_KNU= 1.55
# Specify where your repository belongs.
# (You can reconfigure it after installation anyway)

View file

@ -1 +1 @@
MD5 (cvsweb-1.104.1.54.tar.gz) = 3a36c30e77161a7f63ccd6649f415120
MD5 (cvsweb-1.104.1.55.tar.gz) = 673b28f85d9c69803124331017b91c6a

View file

@ -1,8 +1,8 @@
--- cvsweb.cgi.orig Tue Jan 2 08:15:02 2001
+++ cvsweb.cgi Tue Jan 2 08:33:52 2001
--- cvsweb.cgi.orig Tue Jan 2 21:23:20 2001
+++ cvsweb.cgi Tue Jan 2 21:29:32 2001
@@ -1 +1 @@
-#!/usr/bin/perl5 -ws
+#!!!PERL!! -ws
@@ -139 +139 @@
- '/usr/local/etc/cvsweb.conf',
+ '!!PREFIX!!/etc/cvsweb/cvsweb.conf',
-#!/usr/bin/perl -wT
+#!!!PERL!! -wT
@@ -141 +141 @@
- '/usr/local/etc/cvsweb.conf'
+ '!!PREFIX!!/etc/cvsweb/cvsweb.conf'

View file

@ -1,5 +1,5 @@
--- cvsweb.conf.orig Tue Jan 2 08:15:03 2001
+++ cvsweb.conf Tue Jan 2 08:32:37 2001
--- 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!!',
@ -12,12 +12,12 @@
@@ -323 +323 @@
-$mime_types = '/usr/local/etc/apache/mime.types';
+$mime_types = '!!PREFIX!!/etc/apache/mime.types';
@@ -393 +393 @@
-#$ENV{'PATH'} = '/usr/local/bin';
+#$ENV{'PATH'} = '!!PREFIX!!/bin';
@@ -447 +447 @@
@@ -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);
@@ -452 +452 @@
@@ -454 +454 @@
-@cvs_options = qw(-l);
+@cvs_options = qw(-R -l);

View file

@ -19,7 +19,7 @@ USE_PERL5= yes
# This version of cvsweb is Zeller's version + knu's enhancements.
REV_ZELLER= 1.104
REV_KNU= 1.54
REV_KNU= 1.55
# Specify where your repository belongs.
# (You can reconfigure it after installation anyway)

View file

@ -1 +1 @@
MD5 (cvsweb-1.104.1.54.tar.gz) = 3a36c30e77161a7f63ccd6649f415120
MD5 (cvsweb-1.104.1.55.tar.gz) = 673b28f85d9c69803124331017b91c6a

View file

@ -1,8 +1,8 @@
--- cvsweb.cgi.orig Tue Jan 2 08:15:02 2001
+++ cvsweb.cgi Tue Jan 2 08:33:52 2001
--- cvsweb.cgi.orig Tue Jan 2 21:23:20 2001
+++ cvsweb.cgi Tue Jan 2 21:29:32 2001
@@ -1 +1 @@
-#!/usr/bin/perl5 -ws
+#!!!PERL!! -ws
@@ -139 +139 @@
- '/usr/local/etc/cvsweb.conf',
+ '!!PREFIX!!/etc/cvsweb/cvsweb.conf',
-#!/usr/bin/perl -wT
+#!!!PERL!! -wT
@@ -141 +141 @@
- '/usr/local/etc/cvsweb.conf'
+ '!!PREFIX!!/etc/cvsweb/cvsweb.conf'

View file

@ -1,5 +1,5 @@
--- cvsweb.conf.orig Tue Jan 2 08:15:03 2001
+++ cvsweb.conf Tue Jan 2 08:32:37 2001
--- 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!!',
@ -12,12 +12,12 @@
@@ -323 +323 @@
-$mime_types = '/usr/local/etc/apache/mime.types';
+$mime_types = '!!PREFIX!!/etc/apache/mime.types';
@@ -393 +393 @@
-#$ENV{'PATH'} = '/usr/local/bin';
+#$ENV{'PATH'} = '!!PREFIX!!/bin';
@@ -447 +447 @@
@@ -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);
@@ -452 +452 @@
@@ -454 +454 @@
-@cvs_options = qw(-l);
+@cvs_options = qw(-R -l);