Commit 761f5286 authored by Robert Ricci's avatar Robert Ricci

Update to the latest version of cvsweb in the 2.0 branch. (There is

now a 3.0 branch, but it seems substantially different.)

This doesn't solve the problem I was hoping it would (being unable to
grab a tarball of the top-level directory), but I've already done the
work to update...
parent 79176135
This diff is collapsed.
......@@ -4,11 +4,12 @@
#
# (c) 1998-1999 H. Zeller <zeller@think.de>
# 1999 H. Nordstrom <hno@hem.passagen.se>
# 2000-2001 A. MUSHA <knu@FreeBSD.org>
# 2000-2002 A. MUSHA <knu@FreeBSD.org>
# 2002 V. Skytt <scop@FreeBSD.org>
# based on work by Bill Fenner <fenner@FreeBSD.org>
#
# $FreeBSD: projects/cvsweb/cvsweb.conf,v 1.29 2001/10/11 15:20:03 knu Exp $
# $Id: cvsweb.conf,v 1.1 2002-03-02 00:56:49 ricci Exp $
# $FreeBSD: projects/cvsweb/cvsweb.conf,v 1.36.2.3 2002/09/23 05:30:17 scop Exp $
# $Id: cvsweb.conf,v 1.2 2004-03-12 00:44:45 ricci Exp $
# $Idaemons: /home/cvs/cvsweb/cvsweb.conf,v 1.27 2001/08/01 09:48:39 knu Exp $
#
###
......@@ -41,7 +42,6 @@ chomp($uname = `$CMD{uname}`);
# 'symbolic_name' => ['name_to_display', 'path_to_the_actual_repository']
# Listed in the order specified:
# XXX: Probably should use @prefix@
@CVSrepositories = (
'top' => ['My CVS Repository', '/usr/testbed/CVS'],
);
......@@ -175,16 +175,11 @@ $logo = '<table cellpadding=0 cellspacing=0 border=0 width=50%><tr>
</table>
';
# The title of the Page on startup
# The title of the Page on startup. This will be put inside a <h1> tag.
$defaulttitle = "CVS Repository";
# The address is shown on the footer
$address = "<font size=-1>CVSweb by &lt;knu\@FreeBSD.org&gt;</font>";
# Use if you have a stylesheet
# XXX: More stuff hardcoded for Utah
$stylesheet = '<link rel="stylesheet" href="https://www.emulab.net/tbstyle.css"
type="text/css">';
# The address is shown on the footer. This will be put inside a <address> tag.
$address = '<span style="font-size: smaller">FreeBSD-CVSweb &lt;<a href="mailto:freebsd-cvsweb@FreeBSD.org">freebsd-cvsweb@FreeBSD.org</a>&gt;</span>';
# color of navigation Header for
# diffs and annotations
......@@ -203,12 +198,30 @@ diffs between that revision and the previous one, and
a form at the bottom of the page that allows you to
display diffs between arbitrary revisions.
</p>
<p>
This script has been written by Bill Fenner and improved by Henner Zeller,
Henrik Nordstr&ouml;m, and Ken Coar, then Akinori MUSHA brought it
back to FreeBSD community and made further improvements; it is covered
by <a
href="http://www.opensource.org/licenses/bsd-license.html">The BSD Licence</a>.
</p>
<p>
If you would like to use this CGI script on your own web server and
CVS tree, download the latest version from &lt;URL:<a
href="http://www.FreeBSD.org/projects/cvsweb.html">http://www.FreeBSD.org/projects/cvsweb.html</a>&gt;.
</p>
<p>
Feel free to send any patches, suggestions and comments to the FreeBSD-CVSweb
mailing list at
&lt;<a
href="mailto:freebsd-cvsweb\@FreeBSD.org">freebsd-cvsweb\@FreeBSD.org</a>&gt;.
</p>
EOT
$short_instruction = <<EOT;
<p>
Click on a directory to enter that directory. Click on a file to display
its revision history and to get a chance to display diffs between revisions.
its revision history and to get a chance to display diffs between revisions.
</p>
EOT
......@@ -277,6 +290,7 @@ $tableBorderColor = '#cccccc';
# to check in their .cvspass, though this is a bad idea. These files
# shouldn't be readable by default. Thanks to Damian Gryski to point
# this out.
# Note that this affects only files, not directories.
@ForbiddenFiles = (
"^CVSROOT/passwd\$", # CVSROOT/passwd should not be cvs add'ed, though
"/\\.cvspass\$", # Ditto. Just in case.
......@@ -402,6 +416,15 @@ $allow_annotate = 1;
# allow pretty-printed version of files
$allow_markup = 1;
# allow extra hlink formatting (such as PR xrefs) in logs
$allow_log_extra = 1; # default: enabled
# allow extra hlink formatting (such as PR xrefs) in directories
$allow_dir_extra = 1;
# allow extra hlink formatting in source code/formatted diff views
$allow_source_extra = 1;
# allow compression with gzip
# of output if the Browser accepts
# it (HTTP_ACCEPT_ENCODING=gzip)
......@@ -502,12 +525,24 @@ $allow_tar = 1;
# compression, or higher, for better compression.
# Options to pass to cvs(1).
@cvs_options = qw(-l);
# For cvs versions prior to 1.11, the '-l' option doesn't work; If you want
# working checkouts with an older cvs version, you'll have to make sure that
# the cvsweb user can read and write to CVSROOT/history.
@cvs_options = qw(-lf);
push @cvs_options, '-R' if ($uname eq 'FreeBSD' || $uname eq 'OpenBSD');
push @cvs_options, '-u' if ($uname eq 'NetBSD');
# Only FreeBSD's and OpenBSD's cvs(1) supports -R (read only access
# mode) option, which considerably speeds up checkouts over NFS.
# A similar effect is provided by -u on NetBSD.
# Options to pass to the 'cvs annotate' command, usually the normal
# @cvs_options are good enough here.
@annotate_options = @cvs_options;
# To make annotate work against a read only repository, add -n, e.g.:
# @annotate_options = (@cvs_options, '-n');
1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment