Merge from FreeBSD-cvsweb 2.0.0.

* 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]
This commit is contained in:
Akinori MUSHA 2001-11-07 21:25:16 +00:00
parent b7d3ff93e3
commit 2dd49a11c2
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=11164
5 changed files with 50 additions and 25 deletions

View file

@ -2,8 +2,9 @@
#
# Set up for FreeBSD repo options.
#
# FreeBSD: projects/cvsweb/cvsweb.conf-freebsd,v 1.7 2001/11/07 20:37:56 knu Exp
# $Idaemons: /home/cvs/cvsweb/cvsweb.conf-freebsd,v 1.5 2001/08/01 09:32:22 knu Exp $
# $FreeBSD: www/en/cgi/cvsweb.conf-freebsd,v 1.7 2001/01/14 08:59:59 knu Exp $
# $FreeBSD: www/en/cgi/cvsweb.conf-freebsd,v 1.8 2001/08/01 10:41:47 knu Exp $
if ($uname eq 'FreeBSD') {
$ENV{'RCSLOCALID'} = 'FreeBSD=CVSHeader';
@ -34,7 +35,7 @@ $prkeyword = "PR";
$mancgi =
"http://www.FreeBSD.org/cgi/man.cgi?apropos=0&sektion=%s&query=%s&manpath=FreeBSD+5.0-current&format=html";
# Allow downloading a tarball of a port
$allow_tar = ($where =~ m,^ports/[^/]+/[^/]+/,);
# Allow downloading a tarball of a port or a project directory
$allow_tar = ($where =~ m,^(ports/[^/]+/[^/]+/|projects/[^/]+/),);
1;