* cvsweb.conf-freebsd: Allow downloading a tarball of a project directory as well as a port directory. * cvsweb.cgi, cvsweb.conf: Introduce optional output filter. [Requested by: Shigeyuki Fukushima <shige@FreeBSD.org>] * cvsweb.cgi: Fix a bug where it produces wrong download links when cvsweb.cgi is placed right under the document root. [Reported by: Arnaud on EFnet]
45 lines
950 B
Perl
45 lines
950 B
Perl
# -*-perl-*-
|
|
#
|
|
# Set up for OpenBSD repo options.
|
|
#
|
|
# FreeBSD: projects/cvsweb/cvsweb.conf-openbsd,v 1.6 2001/10/11 15:15:12 knu Exp
|
|
# $Idaemons: /home/cvs/cvsweb/cvsweb.conf-openbsd,v 1.5 2001/08/01 09:32:22 knu Exp $
|
|
# $FreeBSD: www/en/cgi/cvsweb.conf-openbsd,v 1.7 2001/08/01 10:41:47 knu Exp $
|
|
|
|
if ($uname eq 'FreeBSD') {
|
|
$ENV{'RCSLOCALID'} = 'OpenBSD=CVSHeader';
|
|
$ENV{'RCSINCEXC'} = 'iOpenBSD';
|
|
} else {
|
|
$ENV{'RCSLOCALID'} = 'OpenBSD';
|
|
}
|
|
|
|
@prcategories = qw(
|
|
alpha
|
|
arm
|
|
documentation
|
|
i386
|
|
kernel
|
|
library
|
|
m68k
|
|
mips
|
|
ns32k
|
|
pending
|
|
ports
|
|
ppc
|
|
sparc
|
|
system
|
|
user
|
|
vax
|
|
);
|
|
|
|
$prcgi = "http://cvs.openbsd.org/cgi-bin/wwwgnats.pl/full?pr=%s";
|
|
|
|
$prkeyword = "PR";
|
|
|
|
$mancgi =
|
|
"http://www.openbsd.org/cgi-bin/man.cgi?apropos=0&sektion=%s&query=%s&manpath=OpenBSD+Current&arch=i386&format=html";
|
|
|
|
# Allow downloading a tarball of a port
|
|
$allow_tar = ($where =~ m,^ports/[^/]+/[^/]+/,);
|
|
|
|
1;
|