=================================================================== RCS file: /cvs/cvsweb/Attic/cvsweb.conf,v retrieving revision 3.16 retrieving revision 3.24 diff -u -p -r3.16 -r3.24 --- cvsweb/Attic/cvsweb.conf 2001/01/02 12:23:20 3.16 +++ cvsweb/Attic/cvsweb.conf 2001/04/24 15:24:01 3.24 @@ -4,13 +4,27 @@ # # (c) 1998-1999 H. Zeller # 1999 H. Nordstrom -# 2000 A. MUSHA +# 2000-2001 A. MUSHA # based on work by Bill Fenner -# $zId: cvsweb.conf,v 3.27 2000/07/27 10:16:39 kcoar Exp $ -# $Id: cvsweb.conf,v 3.16 2001/01/02 12:23:20 knu Exp $ +# $Id: cvsweb.conf,v 3.24 2001/04/24 15:24:01 knu Exp $ +# $Idaemons: /home/cvs/cvsweb/cvsweb.conf,v 3.23 2001/01/14 09:04:04 knu Exp $ # ### +# Set the path for the following commands: +# uname, cvs, rlog, rcsdiff +# gzip (if you enable $allow_compress) +# tar,rm (if you enable $allow_tar) +$command_path = '/bin:/usr/bin:/usr/local/bin'; + +# Search the above directories for each command +for (qw(uname cvs rlog rcsdiff gzip tar rm)) { + $CMD{$_} = search_path($_); +} + +# The name of the operating system implementation +chomp($uname = `$CMD{uname}`); + ############## # CVS Root ############## @@ -23,27 +37,19 @@ # to the CVS repository so :pserver:someone@xyz.com:/data/cvsroot # won't work! -# 'symbolic_name' => 'path_to_the_actual_repository' -%CVSROOT = ( - 'local' => '/home/cvs', -# 'freebsd' => '/home/ncvs', -# 'openbsd' => '/home/ncvs', -# 'netbsd' => '/home/ncvs', -# 'ruby' => '/var/anoncvs/ruby', - ); +# 'symbolic_name' => ['name_to_display', 'path_to_the_actual_repository'] +# Listed in the order specified: +@CVSrepositories = ( + 'local' => ['Local Repository', '/home/cvs'], +# 'freebsd' => ['FreeBSD', '/home/ncvs'], +# 'openbsd' => ['OpenBSD', '/home/ncvs'], +# 'netbsd' => ['NetBSD', '/home/ncvs'], +# 'ruby' => ['Ruby', '/var/anoncvs/ruby'], + ); -# 'symbolic_name' => 'name_to_display' -%CVSROOTdescr = ( - 'local' => 'Local Repository', -# 'freebsd' => 'FreeBSD', -# 'openbsd' => 'OpenBSD', -# 'netbsd' => 'NetBSD', -# 'ruby' => 'Ruby', - ); - # This tree is enabled by default when # you enter the page -$cvstreedefault = 'local'; +$cvstreedefault = $CVSrepositories[2 * 0]; # The first one ############## # Bug tracking system options @@ -154,25 +160,28 @@ a form at the bottom of the page that allows you to display diffs between arbitrary revisions.

-This script has been written by Bill Fenner -<fenner\@FreeBSD.org> -and improved by Henner Zeller -<zeller\@think.de>, -Henrik Nordström -<hno\@hem.passagen.se>, and -Ken Coar -<Ken.Coar\@Golux.Com>, then -Akinori MUSHA <knu\@FreeBSD.org> -brought it back to FreeBSD community and added more facilities; -it is covered by the -BSD-Licence. +This script has been written by Bill Fenner <fenner\@FreeBSD.org> and +improved by Henner Zeller <zeller\@think.de>, Henrik +Nordström <hno\@hem.passagen.se>, and +Ken Coar <Ken.Coar\@Golux.Com>, then +Akinori MUSHA <knu\@FreeBSD.org> brought it +back to FreeBSD community and made further improvements; it is covered +by the BSD-Licence.

If you would like to use this CGI script on your own web server and -CVS tree, see Zeller's -CVSweb distribution site. Bill's original script can be found -here. +CVS tree, download the latest version here, and also check +out Zeller's CVSweb +distribution site. Bill's original script can be found here.

Please send any suggestions, comments, etc. to @@ -388,12 +397,6 @@ $open_extern_window = 1; # this allows editing of all your options more intuitive $edit_option_form = (not $dirtable); -# Set the path for the following commands: -# cvs, rlog, rcsdiff -# gzip (if you enable $allow_compress) -# tar,rm (if you enable $allow_tar) -$ENV{'PATH'} = '/bin:/usr/bin:/usr/local/bin'; - # If you have files which automatically refers to other files # (such as HTML) then this allows you to browse the checked # out files as if outside CVS. @@ -450,11 +453,18 @@ $allow_tar = ''; # e.g. @tar_options = qw(--ignore-failed-read); # GNU tar has some useful options against unexpected errors. +# Options to pass to gzip(1) when compressing a tarball to download. +@gzip_options = qw(); +# e.g. @gzip_options = qw(-3); +# Try lower compression level than 6 (default) if you want faster +# compression, or higher, for better compression. + # Options to pass to cvs(1). @cvs_options = qw(-l); -# e.g. @cvs_options = qw(-R -l); -# -R (read only access mode) is implemented only in FreeBSD's and -# OpenBSD's cvs(1). + +push @cvs_options, '-R' if ($uname eq 'FreeBSD' || $uname eq 'OpenBSD'); +# Only FreeBSD's and OpenBSD's cvs(1) supports -R (read only access +# mode) option, which considerably speeds up checkouts over NFS. 1; #EOF