Update to knu-cvsweb 1.104.1.61.

2001-01-11 11:00  knu

	* cvsweb.cgi, cvsweb.conf: Oops.

2001-01-11 10:52  knu

	* cvsweb.cgi, cvsweb.conf, cvsweb.conf-freebsd, cvsweb.conf-netbsd,
	cvsweb.conf-openbsd: Run "tar cf - ... | gzip -c" rather than "tar
	zcf - ..." to avoid tar(1)'s automatic padding of nulls to align
	with the block size, which is just garbage for a receiver.

	Noted by:	Katsuyuki Komatsu <komatsu@sarion.co.jp>

	Have $uname variable to hold the OS implementation name.

	Move %CMD's initialization part to the beginning of cvsweb.conf so
	it can use $uname and configure properly for the OS.

	Wrap FreeBSD or OpenBSD specific features in conditional blocks
	using $uname.

	Fix some open() calls in good manners.
This commit is contained in:
Akinori MUSHA 2001-01-11 03:41:57 +00:00
parent 27a740e0af
commit d7d50312b5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=37089
8 changed files with 58 additions and 38 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.59
REV_KNU= 1.61
# Specify where your repository belongs.
# (You can reconfigure it after installation anyway)

View file

@ -1 +1 @@
MD5 (cvsweb-1.104.1.59.tar.gz) = 3323f28a68b3695587a6bfaa16663a35
MD5 (cvsweb-1.104.1.61.tar.gz) = a87df49d4b0f804279de4cf8b24e1bdf

View file

@ -1,8 +1,11 @@
--- cvsweb.cgi.orig Wed Jan 3 08:34:45 2001
+++ cvsweb.cgi Wed Jan 3 08:43:48 2001
@@ -1 +1 @@
--- cvsweb.cgi.orig Thu Jan 11 11:00:55 2001
+++ cvsweb.cgi Thu Jan 11 12:35:36 2001
@@ -1,2 +1,2 @@
-#!/usr/bin/perl -wT
+#!!!PERL!! -wT
@@ -142 +142 @@
#
@@ -148,3 +148,3 @@
"$mydir/cvsweb.conf",
- '/usr/local/etc/cvsweb/cvsweb.conf'
+ '!!PREFIX!!/etc/cvsweb/cvsweb.conf'
) {

View file

@ -1,20 +1,27 @@
--- cvsweb.conf.orig Wed Jan 3 08:38:37 2001
+++ cvsweb.conf Wed Jan 3 08:41:11 2001
@@ -29 +29 @@
--- cvsweb.conf.orig Thu Jan 11 11:00:55 2001
+++ cvsweb.conf Thu Jan 11 12:37:50 2001
@@ -17,3 +17,3 @@
# tar,rm (if you enable $allow_tar)
-$command_path = '/bin:/usr/bin:/usr/local/bin';
+$command_path = '/bin:/usr/bin:!!PREFIX!!/bin';
@@ -42,3 +42,3 @@
@CVSrepositories = (
- 'local' => ['Local Repository', '/home/cvs'],
+ 'local' => ['!!TITLE!!', '!!CVSROOT!!'],
@@ -195 +195 @@
+ 'local' => ['!!TITLE!!', '!!CVSROOT!!'],
# 'freebsd' => ['FreeBSD', '/home/ncvs'],
@@ -208,3 +208,3 @@
# icons/ directory; they have a width/height of 16/16
-my $iconsdir = "/icons";
+my $iconsdir = "/icons/cvsweb";
@@ -315 +315 @@
# format: TEXT ICON-URL width height
@@ -328,3 +328,3 @@
# apache here:
-$mime_types = '/usr/local/etc/apache/mime.types';
+$mime_types = '!!PREFIX!!/etc/apache/mime.types';
@@ -387 +387 @@
-$ENV{'PATH'} = '/bin:/usr/bin:/usr/local/bin';
+$ENV{'PATH'} = '/bin:/usr/bin:!!PREFIX!!/bin';
@@ -441 +441 @@
@@ -448,3 +448,3 @@
# Options to pass to tar(1).
-@tar_options = qw();
+@tar_options = qw(--ignore-failed-read);
@@ -446 +446 @@
-@cvs_options = qw(-l);
+@cvs_options = qw(-R -l);
# e.g. @tar_options = qw(--ignore-failed-read);

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.59
REV_KNU= 1.61
# Specify where your repository belongs.
# (You can reconfigure it after installation anyway)

View file

@ -1 +1 @@
MD5 (cvsweb-1.104.1.59.tar.gz) = 3323f28a68b3695587a6bfaa16663a35
MD5 (cvsweb-1.104.1.61.tar.gz) = a87df49d4b0f804279de4cf8b24e1bdf

View file

@ -1,8 +1,11 @@
--- cvsweb.cgi.orig Wed Jan 3 08:34:45 2001
+++ cvsweb.cgi Wed Jan 3 08:43:48 2001
@@ -1 +1 @@
--- cvsweb.cgi.orig Thu Jan 11 11:00:55 2001
+++ cvsweb.cgi Thu Jan 11 12:35:36 2001
@@ -1,2 +1,2 @@
-#!/usr/bin/perl -wT
+#!!!PERL!! -wT
@@ -142 +142 @@
#
@@ -148,3 +148,3 @@
"$mydir/cvsweb.conf",
- '/usr/local/etc/cvsweb/cvsweb.conf'
+ '!!PREFIX!!/etc/cvsweb/cvsweb.conf'
) {

View file

@ -1,20 +1,27 @@
--- cvsweb.conf.orig Wed Jan 3 08:38:37 2001
+++ cvsweb.conf Wed Jan 3 08:41:11 2001
@@ -29 +29 @@
--- cvsweb.conf.orig Thu Jan 11 11:00:55 2001
+++ cvsweb.conf Thu Jan 11 12:37:50 2001
@@ -17,3 +17,3 @@
# tar,rm (if you enable $allow_tar)
-$command_path = '/bin:/usr/bin:/usr/local/bin';
+$command_path = '/bin:/usr/bin:!!PREFIX!!/bin';
@@ -42,3 +42,3 @@
@CVSrepositories = (
- 'local' => ['Local Repository', '/home/cvs'],
+ 'local' => ['!!TITLE!!', '!!CVSROOT!!'],
@@ -195 +195 @@
+ 'local' => ['!!TITLE!!', '!!CVSROOT!!'],
# 'freebsd' => ['FreeBSD', '/home/ncvs'],
@@ -208,3 +208,3 @@
# icons/ directory; they have a width/height of 16/16
-my $iconsdir = "/icons";
+my $iconsdir = "/icons/cvsweb";
@@ -315 +315 @@
# format: TEXT ICON-URL width height
@@ -328,3 +328,3 @@
# apache here:
-$mime_types = '/usr/local/etc/apache/mime.types';
+$mime_types = '!!PREFIX!!/etc/apache/mime.types';
@@ -387 +387 @@
-$ENV{'PATH'} = '/bin:/usr/bin:/usr/local/bin';
+$ENV{'PATH'} = '/bin:/usr/bin:!!PREFIX!!/bin';
@@ -441 +441 @@
@@ -448,3 +448,3 @@
# Options to pass to tar(1).
-@tar_options = qw();
+@tar_options = qw(--ignore-failed-read);
@@ -446 +446 @@
-@cvs_options = qw(-l);
+@cvs_options = qw(-R -l);
# e.g. @tar_options = qw(--ignore-failed-read);