version 3.1, 2000/07/19 21:59:47 |
version 3.22, 2001/01/13 07:48:09 |
|
|
# |
# |
# (c) 1998-1999 H. Zeller <zeller@think.de> |
# (c) 1998-1999 H. Zeller <zeller@think.de> |
# 1999 H. Nordstrom <hno@hem.passagen.se> |
# 1999 H. Nordstrom <hno@hem.passagen.se> |
# 2000 A. MUSHA <knu@FreeBSD.org> |
# 2000-2001 A. MUSHA <knu@FreeBSD.org> |
# based on work by Bill Fenner <fenner@FreeBSD.org> |
# based on work by Bill Fenner <fenner@FreeBSD.org> |
# $Id$ |
# $Id$ |
|
# $Idaemons$ |
# |
# |
### |
### |
|
|
|
# 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 |
# CVS Root |
############## |
############## |
|
|
# to the CVS repository so :pserver:someone@xyz.com:/data/cvsroot |
# to the CVS repository so :pserver:someone@xyz.com:/data/cvsroot |
# won't work! |
# won't work! |
|
|
# 'symbolic_name' 'path_to_the_actual_repository' |
# 'symbolic_name' => ['name_to_display', 'path_to_the_actual_repository'] |
%CVSROOT = ( |
# Listed in the order specified: |
'local' => '/home/cvs', |
@CVSrepositories = ( |
'freebsd' => '/home/ncvs', |
'local' => ['Local Repository', '/home/cvs'], |
); |
# 'freebsd' => ['FreeBSD', '/home/ncvs'], |
|
# 'openbsd' => ['OpenBSD', '/home/ncvs'], |
|
# 'netbsd' => ['NetBSD', '/home/ncvs'], |
|
# 'ruby' => ['Ruby', '/var/anoncvs/ruby'], |
|
); |
|
|
%CVSROOTdescr = ( |
|
'local' => 'Local Repository', |
|
'freebsd' => 'FreeBSD', |
|
); |
|
|
|
# This tree is enabled by default when |
# This tree is enabled by default when |
# you enter the page |
# you enter the page |
$cvstreedefault = 'local'; |
$cvstreedefault = $CVSrepositories[2 * 0]; # The first one |
|
|
############## |
############## |
# PR categoties |
# Bug tracking system options |
|
# ("PR" means Problem Report, as in GNATS) |
############## |
############## |
@prcategories = qw( |
#@prcategories = qw( |
advocacy |
# advocacy |
alpha |
# alpha |
bin |
# bin |
conf |
# conf |
docs |
# docs |
gnu |
# gnu |
i386 |
# i386 |
kern |
# kern |
misc |
# misc |
ports |
# pending |
sparc |
# ports |
); |
# sparc |
|
# ); |
|
# |
|
#$prcgi = "http://www.FreeBSD.org/cgi/query-pr.cgi?pr=%s"; |
|
# |
|
#$prkeyword = "PR"; |
|
|
############## |
############## |
# query-pr.cgi |
# Manual gateway |
############## |
############## |
$prcgi = "http://www.FreeBSD.org/cgi/query-pr.cgi"; |
$mancgi = "http://www.FreeBSD.org/cgi/man.cgi?apropos=0&sektion=%s&query=%s&manpath=FreeBSD+5.0-current&format=html"; |
|
|
############## |
############## |
# Defaults for UserSettings |
# Defaults for UserSettings |
Line 90 $prcgi = "http://www.FreeBSD.org/cgi/query-pr.cgi"; |
|
Line 110 $prcgi = "http://www.FreeBSD.org/cgi/query-pr.cgi"; |
|
# u Unified diff |
# u Unified diff |
# c Context diff |
# c Context diff |
# s Side by side |
# s Side by side |
"f" => "h", |
"f" => "u", |
|
|
# hidecvsroot: Don't show the CVSROOT directory |
# hidecvsroot: Don't show the CVSROOT directory |
# 1 Hide CVSROOT directory |
# 1 Hide CVSROOT directory |
Line 99 $prcgi = "http://www.FreeBSD.org/cgi/query-pr.cgi"; |
|
Line 119 $prcgi = "http://www.FreeBSD.org/cgi/query-pr.cgi"; |
|
|
|
# hidenonreadable: Don't show entries which cannot be read |
# hidenonreadable: Don't show entries which cannot be read |
# 1 Hide non-readable entries |
# 1 Hide non-readable entries |
# 0 Show non-readble entries |
# 0 Show non-readable entries |
"hidenonreadable" => "1", |
"hidenonreadable" => "1", |
); |
); |
|
|
Line 107 $prcgi = "http://www.FreeBSD.org/cgi/query-pr.cgi"; |
|
Line 127 $prcgi = "http://www.FreeBSD.org/cgi/query-pr.cgi"; |
|
# some layout stuff |
# some layout stuff |
############## |
############## |
|
|
# color settings in the body-tag |
# The body-tag for directory views and logs |
$body_tag = '<body text="#000000" bgcolor="#ffffff">'; |
$body_tag = '<body text="#000000" bgcolor="#ffffff">'; |
|
|
|
# The body-tag for diffs and annotations |
|
$body_tag_for_src = '<body text="#000000" bgcolor="#eeeeee">'; |
|
|
# Wanna have a logo on the page ? |
# Wanna have a logo on the page ? |
$logo = '<img src="/icons/apache_pb.gif">'; |
$logo = '<img src="/icons/apache_pb.gif">'; |
|
|
Line 117 $logo = '<img src="/icons/apache_pb.gif">'; |
|
Line 140 $logo = '<img src="/icons/apache_pb.gif">'; |
|
$defaulttitle = "CVS Repository"; |
$defaulttitle = "CVS Repository"; |
|
|
# The address is shown on the footer |
# The address is shown on the footer |
$address = "<font size=-1>CVSweb by <zeller\@think.de></font>"; |
$address = "<font size=-1>CVSweb by <knu\@FreeBSD.org></font>"; |
|
|
# Default page background color for the diffs |
|
# and annotations |
|
$backcolor = "#eeeeee"; |
|
|
|
# color of navigation Header for |
# color of navigation Header for |
# diffs and annotations |
# diffs and annotations |
$navigationHeaderColor = '#9999ee'; |
$navigationHeaderColor = '#9999ee'; |
Line 141 a form at the bottom of the page that allows you to |
|
Line 160 a form at the bottom of the page that allows you to |
|
display diffs between arbitrary revisions. |
display diffs between arbitrary revisions. |
</p> |
</p> |
<p> |
<p> |
This script has been written by Bill Fenner |
This script has been written by Bill Fenner <<a |
<<a href="mailto:fenner\@freebsd.org">fenner\@freebsd.org</a>> |
href="mailto:fenner\@FreeBSD.org">fenner\@FreeBSD.org</a>> and |
and improved by Henner Zeller |
improved by Henner Zeller <<a |
<<a href="mailto:zeller\@think.de">zeller\@think.de</a>>, |
href="mailto:zeller\@think.de">zeller\@think.de</a>>, Henrik |
Henrik Nordström |
Nordström <<a |
<<a href="mailto:hno\@hem.passagen.se">hno\@hem.passagen.se</a>>, and |
href="mailto:hno\@hem.passagen.se">hno\@hem.passagen.se</a>>, and |
Ken Coar |
Ken Coar <<a |
<<a href="mailto:Ken.Coar\@Golux.Com">Ken.Coar\@Golux.Com</a>>, then |
href="mailto:Ken.Coar\@Golux.Com">Ken.Coar\@Golux.Com</a>>, then |
Akinori MUSHA <<a href="mailto:knu\@FreeBSD.org">knu\@FreeBSD.org</a>> |
Akinori MUSHA <<a |
brought it back to FreeBSD community and added more facilities; |
href="mailto:knu\@FreeBSD.org">knu\@FreeBSD.org</a>> brought it |
it is covered by the |
back to FreeBSD community and made further improvements; it is covered |
<a href="http://www.opensource.org/licenses/bsd-license.html">BSD-Licence</a>. |
by the <a |
|
href="http://www.opensource.org/licenses/bsd-license.html">BSD-Licence</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, see Zeller's |
CVS tree, download the latest version at <a |
<a href="http://linux.fh-heilbronn.de/~zeller/cgi/cvsweb.cgi" |
href="ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/knu/">here</a>, |
>CVSweb distribution site</a>. Bill's original script can be found |
and also check out Zeller's <a |
<a href="http://www.freebsd.org/~fenner/cvsweb/">here</a>. |
href="http://linux.fh-heilbronn.de/~zeller/cgi/cvsweb.cgi" >CVSweb |
|
distribution site</a>. Bill's original script can be found <a |
|
href="http://www.FreeBSD.org/~fenner/cvsweb/">here</a>. |
</p> |
</p> |
<p> |
<p> |
Please send any suggestions, comments, etc. to |
Please send any suggestions, comments, etc. to |
<a href="mailto:fenner\@freebsd.org">Bill Fenner</a> or, regarding the |
<a href="mailto:fenner\@FreeBSD.org">Bill Fenner</a> or, regarding the |
modifications, to |
modifications, to |
<a href="mailto:knu\@FreeBSD.org">Akinori MUSHA</a>, |
<a href="mailto:knu\@FreeBSD.org">Akinori MUSHA</a>, |
<a href="mailto:zeller\@think.de">Henner Zeller</a>, |
<a href="mailto:zeller\@think.de">Henner Zeller</a>, |
|
|
# These default icons are coming with apache. |
# These default icons are coming with apache. |
# If these icons are too large, check out the miniicons in the |
# If these icons are too large, check out the miniicons in the |
# icons/ directory; they have a width/height of 16/16 |
# icons/ directory; they have a width/height of 16/16 |
# format: TEXT ICON-URL width height |
my $iconsdir = "/icons"; |
|
# format: TEXT ICON-URL width height |
%ICONS = ( |
%ICONS = ( |
back => [ ("[BACK]", "/icons/cvsweb/back.gif", 20, 22) ], |
back => [ ("[BACK]", "$iconsdir/back.gif", 20, 22) ], |
dir => [ ("[DIR]", "/icons/cvsweb/dir.gif", 20, 22) ], |
dir => [ ("[DIR]", "$iconsdir/dir.gif", 20, 22) ], |
file => [ ("[TXT]", "/icons/cvsweb/text.gif", 20, 22) ], |
file => [ ("[TXT]", "$iconsdir/text.gif", 20, 22) ], |
); |
); |
|
undef $iconsdir; |
|
|
# the length to which the last logentry should |
# the length to which the last logentry should |
# be truncated when shown in the directory view |
# be truncated when shown in the directory view |
Line 260 $use_descriptions = 0; |
|
Line 284 $use_descriptions = 0; |
|
# exceed the width of the browser |
# exceed the width of the browser |
$hr_breakable = 1; |
$hr_breakable = 1; |
|
|
# give out function names in human readable diffs |
# give out function names in diffs |
# this just makes sense if we have C-files, otherwise |
# this just makes sense if we have C-files, otherwise |
# diff's heuristic doesn't work well .. |
# diff's heuristic doesn't work well .. |
# ( '-p' option to diff) |
# ( '-p' option to diff) |
$hr_funout = 0; |
$showfunc = 1; |
|
|
# For each pair of regexps, files that match the first regexp will be diff'ed |
# For each pair of regexps, files that match the first regexp will be diff'ed |
# with an '-F' option with the second regexp. |
# with an '-F' option with the second regexp. |
%functionlineregexp = ( |
%funcline_regexp = ( |
"\\.(4th|fr)\$" => "\\(^\\| \\|\t\\): ", |
"\\.(4th|fr)\$" => "\\(^\\|[ \t]\\): ", |
); |
"\\.rb\$" => "^[\t ]*\\(class\\|module\\|def\\) ", |
|
); |
|
|
# ignore whitespaces for human readable diffs |
# ignore whitespaces for human readable diffs |
# (indendation and stuff ..) |
# (indendation and stuff ..) |
# ( '-w' option to diff) |
# ( '-w' option to diff) |
$hr_ignwhite = 1; |
$hr_ignwhite = 0; |
|
|
# ignore diffs which are caused by |
# ignore diffs which are caused by |
# keyword-substitution like $Id - Stuff |
# keyword-substitution like $Id - Stuff |
Line 316 $mime_types = '/usr/local/etc/apache/mime.types'; |
|
Line 341 $mime_types = '/usr/local/etc/apache/mime.types'; |
|
"shtml" => "text/html", |
"shtml" => "text/html", |
"gif" => "image/gif", |
"gif" => "image/gif", |
"jpeg" => "image/jpeg", |
"jpeg" => "image/jpeg", |
"jpg" => "image/jpeg", |
"jpg" => "image/jpeg", |
|
"png" => "image/png", |
|
"xpm" => "image/xpm", |
"*" => "text/plain", |
"*" => "text/plain", |
); |
); |
|
|
|
# Charset for HTML output |
|
$charset = ''; |
|
# e.g. |
|
#$charset = $where =~ m,/ru[/_-], ? 'koi8-r' |
|
# : $where =~ m,/zh[/_-], ? 'big5' |
|
# : $where =~ m,/ja[/_-], ? 'x-euc-jp' |
|
# : $where =~ m,/ko[/_-], ? 'x-euc-kr' |
|
# : 'iso-8859-1'; |
|
|
############## |
############## |
# Misc |
# Misc |
############## |
############## |
# allow annotation of files |
# allow annotation of files |
# this requires rw-access to the |
# this requires rw-access to the |
# CVSROOT/history - file and rw-access |
# CVSROOT/history file (if you have one) |
# to the subdirectory to place the lock |
# and rw-access to the subdirectory to |
# so you maybe don't want it |
# place the lock so you maybe don't want it |
$allow_annotate = 1; |
$allow_annotate = 1; |
|
|
# allow pretty-printed version of files |
# allow pretty-printed version of files |
Line 337 $allow_markup = 1; |
|
Line 373 $allow_markup = 1; |
|
# of output if the Browser accepts |
# of output if the Browser accepts |
# it (HTTP_ACCEPT_ENCODING=gzip) |
# it (HTTP_ACCEPT_ENCODING=gzip) |
# [make sure to have gzip in the path] |
# [make sure to have gzip in the path] |
$allow_compress = 1; |
$allow_compress = 0; |
|
|
# Make use of javascript functions. |
# Make use of javascript functions. |
# This way you can select one of your CVSroot |
# This way you can select one of your CVSroot |
Line 361 $open_extern_window = 1; |
|
Line 397 $open_extern_window = 1; |
|
# this allows editing of all your options more intuitive |
# this allows editing of all your options more intuitive |
$edit_option_form = (not $dirtable); |
$edit_option_form = (not $dirtable); |
|
|
# remember to set the path to your |
|
# rcsutils: rlog, rcsdiff (gzip if you use compression) |
|
#$ENV{'PATH'} = '/usr/local/bin'; |
|
|
|
# If you have files which automatically refers to other files |
# If you have files which automatically refers to other files |
# (such as HTML) then this allows you to browse the checked |
# (such as HTML) then this allows you to browse the checked |
# out files as if outside CVS. |
# out files as if outside CVS. |
Line 386 $markupLogColor = "#ffffff"; |
|
Line 418 $markupLogColor = "#ffffff"; |
|
# Show CVS log when viewing file contents |
# Show CVS log when viewing file contents |
$show_log_in_markup = 1; |
$show_log_in_markup = 1; |
|
|
|
# Preformat when viewing file contents. This should be turned off |
|
# when you have files in the repository that are in a multibyte |
|
# encoding which uses HTML special characters ([<>&"]) as part of a |
|
# multi-byte character. (such as iso-2022-jp, ShiftJIS, etc.) |
|
# Otherwise those files will get screwed up in markup. |
|
$preformat_in_markup = ''; |
|
|
# Tabstop used to expand tabs in colored diffs. If undefined then |
# Tabstop used to expand tabs in colored diffs. If undefined then |
# tabs are always expanded to 8 spaces. |
# tabs are always expanded to 8 spaces. |
$tabstop = 8; |
$tabstop = 8; |
|
|
# server |
# server |
$use_moddate = 1; |
$use_moddate = 1; |
|
|
|
# Allows downloading a tarball of the current directory if set. |
|
# Bear in mind that this allows downloading a tarball of your entire |
|
# repository, which can take a lot of time and disk space to create! |
|
# If you enable this, you may need to make sure that cvsweb can write to |
|
# CVSROOT/val-tags, due to a bug in cvs. |
|
$allow_tar = ''; |
|
|
|
# Options to pass to tar(1). |
|
@tar_options = qw(); |
|
# 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); |
|
|
|
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 |
#EOF |