2001-01-12 08:42 knu
* cvsweb.cgi, cvsweb.conf-freebsd, cvsweb.conf-netbsd,
cvsweb.conf-openbsd: Clean up URI parser.
Workaround thttpd's buggy SCRIPT_NAME / PATH_INFO parser.
Requested by: Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
Allow downloading a single port/pkgsrc in tarball by default.
2001-01-12 03:17 knu
* cvsweb.cgi, cvsweb.conf: D'oh, forgot to chomp the result of
`uname`.
Submitted by: Christian Weisgerber <naddy@mips.inka.de>
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.
2001-01-05 09:00 knu
* cvsweb.cgi: Delete $ENV{PATH} before everything. (against -T
paranoia) It's nothing to worry since cvsweb.cgi always invokes
executables by full paths, though.
Correct the error messages regarding $command_path.
2001-01-03 17:57 knu
* cvsweb.cgi, cvsweb.conf: Don't rely on perl's $ENV{PATH} search.
Search commands for itself and specify them by full paths.
73 lines
1.3 KiB
Perl
73 lines
1.3 KiB
Perl
# -*-perl-*-
|
|
#
|
|
# Set up for NetBSD repo options.
|
|
#
|
|
# $Id: cvsweb.conf-netbsd,v 1.7 2001-01-12 04:26:10 knu Exp $
|
|
# $FreeBSD: www/en/cgi/cvsweb.conf-netbsd,v 1.6 2001/01/02 00:03:51 knu Exp $
|
|
|
|
if ($uname eq 'FreeBSD') {
|
|
$ENV{'RCSLOCALID'} = 'NetBSD=CVSHeader';
|
|
$ENV{'RCSINCEXC'} = 'iNetBSD';
|
|
} else {
|
|
$ENV{'RCSLOCALID'} = 'NetBSD';
|
|
}
|
|
|
|
@prcategories = qw(
|
|
admin
|
|
bin
|
|
install
|
|
kern
|
|
lib
|
|
misc
|
|
pending
|
|
pkg
|
|
port-alpha
|
|
port-amiga
|
|
port-arc
|
|
port-arm26
|
|
port-arm32
|
|
port-atari
|
|
port-bebox
|
|
port-cobalt
|
|
port-dreamcast
|
|
port-hp300
|
|
port-hpcmips
|
|
port-i386
|
|
port-luna68k
|
|
port-m68k
|
|
port-mac68k
|
|
port-macppc
|
|
port-mips
|
|
port-mvme68k
|
|
port-newsmips
|
|
port-news68k
|
|
port-next68k
|
|
port-ofppc
|
|
port-pc532
|
|
port-pmax
|
|
port-powerpc
|
|
port-prep
|
|
port-sgimips
|
|
port-sh3
|
|
port-sparc
|
|
port-sparc64
|
|
port-sun3
|
|
port-vax
|
|
port-x68k
|
|
security
|
|
standards
|
|
test
|
|
xsrc
|
|
y2k
|
|
);
|
|
|
|
$prcgi = "http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=%s";
|
|
|
|
$prkeyword = "PR";
|
|
|
|
$mancgi = "http://www.flame.org/cgi-bin/uncgi/hman?sect=%s&page=%s&arch=i386";
|
|
|
|
# Allow downloading a tarball of a pkgsrc
|
|
$allow_tar = ($where =~ m,^pkgsrc/[^/]+/[^/]+/,);
|
|
|
|
1;
|