version 4.1, 2019/03/20 20:52:07 |
version 4.7, 2019/11/11 14:37:54 |
|
|
# -*- perl -*- |
# -*- perl -*- |
|
# $Id$ |
|
# $doc: cvsweb.conf,v 1.38 2006/01/19 19:53:38 ceri |
|
# $knu: cvsweb.conf,v 1.97 2005/06/19 09:13:50 scop |
|
# |
# Configuration of cvsweb.cgi, a web interface to CVS repositories. |
# Configuration of cvsweb.cgi, a web interface to CVS repositories. |
# |
# |
# (c) 1998-1999 H. Zeller <zeller@think.de> |
# (c) 1998-1999 H. Zeller <zeller@think.de> |
|
|
# 2000-2002 A. MUSHA <knu@FreeBSD.org> |
# 2000-2002 A. MUSHA <knu@FreeBSD.org> |
# 2002-2005 V. Skyttä <scop@FreeBSD.org> |
# 2002-2005 V. Skyttä <scop@FreeBSD.org> |
# based on work by Bill Fenner <fenner@FreeBSD.org> |
# based on work by Bill Fenner <fenner@FreeBSD.org> |
# |
|
# $FreeBSD$ |
|
# $Id$ |
|
# $Idaemons: /home/cvs/cvsweb/cvsweb.conf,v 3.27 2001/08/01 09:48:39 knu Exp $ |
|
# |
|
|
|
# |
# |
# Unless otherwise noted, all boolean parameters here default to off |
# Unless otherwise noted, all boolean parameters here default to off |
|
|
# cvs, rlog, rcsdiff |
# cvs, rlog, rcsdiff |
# gzip (if you enable $allow_compress) |
# gzip (if you enable $allow_compress) |
# (g)tar, zip (if you enable $allow_tar) |
# (g)tar, zip (if you enable $allow_tar) |
# cvsgraph (if you enable $allow_graph) |
|
# enscript (if you enable $allow_enscript) |
# enscript (if you enable $allow_enscript) |
# |
# |
@command_path = qw(/bin /usr/bin /usr/local/bin); |
@command_path = qw(/bin /usr/bin /usr/local/bin); |
|
|
# Search the above directories for each command (prefer gtar over tar). |
# Search the above directories for each command (prefer gtar over tar). |
# |
# |
for (qw(cvs rlog rcsdiff gzip gtar zip cvsgraph enscript)) { |
for (qw(cvs rlog rcsdiff gzip gtar zip enscript)) { |
$CMD{$_} = search_path($_); |
$CMD{$_} = search_path($_); |
} |
} |
$CMD{tar} = delete($CMD{gtar}) if $CMD{gtar}; |
$CMD{tar} = delete($CMD{gtar}) if $CMD{gtar}; |
Line 57 $CMD{tar} ||= search_path('tar'); |
|
Line 55 $CMD{tar} ||= search_path('tar'); |
|
# 'symbolic_name' => ['Name to display', '/path/to/cvsroot'] |
# 'symbolic_name' => ['Name to display', '/path/to/cvsroot'] |
# |
# |
@CVSrepositories = ( |
@CVSrepositories = ( |
'local' => ['Local Repository', '/var/cvs'], |
'local' => ['Local Repository', '/cvs'], |
# 'freebsd' => ['FreeBSD', '/var/ncvs'], |
|
# 'openbsd' => ['OpenBSD', '/var/ncvs'], |
|
# 'netbsd' => ['NetBSD', '/var/ncvs'], |
|
# 'ruby' => ['Ruby', '/var/anoncvs/ruby'], |
|
); |
); |
|
|
# The default CVS root. Note that @CVSrepositories is list, not a hash, |
# The default CVS root. Note that @CVSrepositories is list, not a hash, |
|
|
# h Human readable |
# h Human readable |
# u Unified diff |
# u Unified diff |
# c Context diff |
# c Context diff |
# s Side by side |
|
# uc Unified diff, enscript colored (falls back to "u" w/o enscript) |
# uc Unified diff, enscript colored (falls back to "u" w/o enscript) |
# cc Context diff, enscript colored (falls back to "c" w/o enscript) |
# cc Context diff, enscript colored (falls back to "c" w/o enscript) |
# sc Side by side, enscript colored (falls back to "s" w/o enscript) |
|
"f" => "u", |
"f" => "u", |
|
|
# hidecvsroot: Don't show the CVSROOT directory. Note that this is |
# hidecvsroot: Don't show the CVSROOT directory. Note that this is |
Line 181 $defaulttitle = "CVS Repository"; |
|
Line 173 $defaulttitle = "CVS Repository"; |
|
|
|
# The address is shown on the footer. This will be put inside a <address> tag. |
# The address is shown on the footer. This will be put inside a <address> tag. |
# |
# |
$address = '<span style="font-size: smaller">FreeBSD-CVSweb</span>'; |
$address = '<span style="font-size: smaller">CVSweb</span>'; |
|
|
$long_intro = <<EOT; |
$long_intro = <<EOT; |
<p> |
<p> |
|
|
href="http://www.opensource.org/licenses/bsd-license.html">The BSD License</a>. |
href="http://www.opensource.org/licenses/bsd-license.html">The BSD License</a>. |
</p><p> |
</p><p> |
If you would like to use this CGI script on your own web server and |
If you would like to use this CGI script on your own web server and |
CVS tree, download the latest version from <<a |
CVS tree, download the latest version from |
href="http://www.FreeBSD.org/projects/cvsweb.html">http://www.FreeBSD.org/projects/cvsweb.html</a>>. |
<<a href="http://cvsweb.bsd.lv/">http://cvsweb.bsd.lv/</a>>. |
</p> |
</p> |
EOT |
EOT |
|
|
Line 229 my $iconsdir = '/icons'; |
|
Line 221 my $iconsdir = '/icons'; |
|
dir => [('[DIR]', "$iconsdir/dir.gif", 20, 22)], |
dir => [('[DIR]', "$iconsdir/dir.gif", 20, 22)], |
file => [('[TXT]', "$iconsdir/text.gif", 20, 22)], |
file => [('[TXT]', "$iconsdir/text.gif", 20, 22)], |
binfile => [('[BIN]', "$iconsdir/binary.gif", 20, 22)], |
binfile => [('[BIN]', "$iconsdir/binary.gif", 20, 22)], |
graph => [('[GRAPH]', "$iconsdir/minigraph.png", 16, 16)], |
|
); |
); |
undef $iconsdir; |
undef $iconsdir; |
|
|
Line 288 $hr_breakable = 1; |
|
Line 279 $hr_breakable = 1; |
|
# |
# |
$showfunc = 1; |
$showfunc = 1; |
|
|
# For each pair of regexps, files that match the first regexp will be diff'ed |
|
# with an -F option using the second regexp (unified and context only). |
|
# See the -F option in the diff(1) man page. |
|
# |
|
%funcline_regexp = ( |
|
qr/\.(?:4th|fr)$/o => "\\(^\\|[ \t]\\): ", |
|
qr/\.rb$/o => "^[\t ]*\\(class\\|module\\|def\\) ", |
|
); |
|
|
|
# Ignore whitespace in human readable diffs? ('-w' option to diff) |
# Ignore whitespace in human readable diffs? ('-w' option to diff) |
# |
# |
$hr_ignwhite = 0; |
$hr_ignwhite = 0; |
Line 363 $inputTextSize = 12; |
|
Line 345 $inputTextSize = 12; |
|
# The traditional mime.types file, eg. the one from Apache is fine. |
# The traditional mime.types file, eg. the one from Apache is fine. |
# See above where this gets used. |
# See above where this gets used. |
# |
# |
$mime_types = '/usr/local/etc/apache/mime.types'; |
$mime_types = '/conf/mime.types'; |
|
|
# Charset appended to the Content-Type HTTP header for text/* MIME types. |
# Charset appended to the Content-Type HTTP header for text/* MIME types. |
# Note that the web server may default to some charset which may take effect |
# Note that the web server may default to some charset which may take effect |
Line 425 $allow_source_extra = 1; |
|
Line 407 $allow_source_extra = 1; |
|
# |
# |
#$allow_compress = 1; |
#$allow_compress = 1; |
|
|
# Use JavaScript in the UI? |
|
# |
|
$use_java_script = 1; |
|
|
|
# Show a form for setting options in the directory view? |
# Show a form for setting options in the directory view? |
# |
# |
$edit_option_form = 1; |
$edit_option_form = 1; |
Line 489 $use_moddate = 1; |
|
Line 467 $use_moddate = 1; |
|
# Just comment this out if you're not bitten by the problem. |
# Just comment this out if you're not bitten by the problem. |
# |
# |
#$file_list_len = 200; |
#$file_list_len = 200; |
|
|
# Allow graphical representations of file revisions and branches with CvsGraph? |
|
# |
|
$allow_cvsgraph = $CMD{cvsgraph} ? 1 : 0; |
|
|
|
# Path to the CvsGraph configuration file. Only used if $allow_cvsgraph |
|
# is true. Leave this empty or comment it out to make cvsgraph(1) use its |
|
# default configuration file. Note that CVSweb will override some of the |
|
# settings in the configuration file with command line options, see |
|
# doGraph() and doGraphView() in cvsweb.cgi for details. |
|
# |
|
#$cvsgraph_config = "/etc/cvsgraph.conf"; |
|
|
|
# URL to the CVSHistory script. This should be absolute (but does not need |
# URL to the CVSHistory script. This should be absolute (but does not need |
# to include the host and port if the script is on the same server as |
# to include the host and port if the script is on the same server as |