| version 1.3, 2002/10/08 22:40:37 |
version 1.4, 2002/11/25 12:47:37 |
|
|
| # 2002 V. Skyttä <scop@FreeBSD.org> |
# 2002 V. Skyttä <scop@FreeBSD.org> |
| # based on work by Bill Fenner <fenner@FreeBSD.org> |
# based on work by Bill Fenner <fenner@FreeBSD.org> |
| # |
# |
| # $FreeBSD: projects/cvsweb/cvsweb.conf,v 1.36 2002/07/10 15:30:56 scop Exp $ |
# $FreeBSD: projects/cvsweb/cvsweb.conf,v 1.44 2002/11/24 18:03:21 scop Exp $ |
| # $Idaemons: /home/cvs/cvsweb/cvsweb.conf,v 1.27 2001/08/01 09:48:39 knu Exp $ |
# $Idaemons: /home/cvs/cvsweb/cvsweb.conf,v 1.27 2001/08/01 09:48:39 knu Exp $ |
| # $Platon: cvsweb.conf-default,v 1.2 2002/08/14 16:52:23 rajo Exp $ |
# $Platon: scripts/cgi/cvsweb/cvsweb.conf-default,v 1.3 2002/10/08 22:40:37 nepto Exp $ |
| # |
# |
| ### |
### |
| |
|
| # Set the path for the following commands: |
# Set the path for the following commands: |
| # uname, cvs, rlog, rcsdiff |
# uname, cvs, rlog, rcsdiff |
| # gzip (if you enable $allow_compress) |
# gzip (if you enable $allow_compress) |
| # tar, rm, zip (if you enable $allow_tar) |
# tar, zip (if you enable $allow_tar) |
| |
# cvsgraph (if you enable $allow_graph) |
| $command_path = '/bin:/usr/bin:/usr/local/bin'; |
$command_path = '/bin:/usr/bin:/usr/local/bin'; |
| |
|
| # Search the above directories for each command |
# Search the above directories for each command |
| for (qw(uname cvs rlog rcsdiff gzip tar rm zip)) { |
for (qw(uname cvs rlog rcsdiff gzip tar zip cvsgraph)) { |
| $CMD{$_} = search_path($_); |
$CMD{$_} = search_path($_); |
| } |
} |
| |
|
|
|
| # some layout stuff |
# some layout stuff |
| ############## {{{ |
############## {{{ |
| |
|
| # The body-tag for directory views and logs |
|
| $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 = '<p><img src="/icons/apache_pb.gif" alt="Powered by Apache"></p>'; |
$logo = '<p><img src="/icons/apache_pb.gif" alt="Powered by Apache"></p>'; |
| |
|
| Line 152 $defaulttitle = "CVS Repository"; |
|
| Line 147 $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 <<a href="mailto:freebsd-cvsweb@FreeBSD.org">freebsd-cvsweb@FreeBSD.org</a>></span>'; |
$address = '<span style="font-size: smaller">FreeBSD-CVSweb <<a href="mailto:freebsd-cvsweb@FreeBSD.org">freebsd-cvsweb@FreeBSD.org</a>></span>'; |
| |
|
| # color of navigation Header for |
|
| # diffs and annotations |
|
| $navigationHeaderColor = '#9999ee'; |
|
| |
|
| $long_intro = <<EOT; |
$long_intro = <<EOT; |
| <p> |
<p> |
| This is a WWW interface for CVS Repositories. |
This is a WWW interface for CVS Repositories. |
| Line 196 its revision history and to get a chance |
|
| Line 187 its revision history and to get a chance |
|
| </p> |
</p> |
| EOT |
EOT |
| |
|
| # used icons; if icon-url is empty, the text representation is used; if |
# Icons for the web UI. If ICON-URL is empty, the TEXT representation is |
| # you do not want to have an ugly tooltip for the icon, remove the |
# used. If you do not want to have a tool tip for an icon, set TEXT empty. |
| # text-representation. |
# The width and height of the icon allow the browser to correctly display |
| # The width and height of the icon allow the browser to correcly display |
# the table while still loading the icons. If these icons are too large, |
| # the table while still loading the icons. |
# check out the "mini" versions in the icons/ directory; they have a |
| # These default icons are coming with apache. |
# width/height of 16/16. |
| # If these icons are too large, check out the miniicons in the |
|
| # icons/ directory; they have a width/height of 16/16 |
|
| my $iconsdir = "/icons"; |
|
| |
|
| # format: TEXT ICON-URL width height |
my $iconsdir = '/icons'; |
| |
|
| |
# format: TEXT ICON-URL width height |
| %ICONS = ( |
%ICONS = ( |
| back => [("[BACK]", "$iconsdir/back.gif", 20, 22)], |
back => [('[BACK]', "$iconsdir/back.gif", 20, 22)], |
| 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)], |
| |
graph => [('[GRAPH]', "$iconsdir/minigraph.png", 16, 16)], |
| ); |
); |
| undef $iconsdir; |
undef $iconsdir; |
| |
|
| |
# An URL where to find the CSS. |
| |
$cssurl = '/css/cvsweb.css'; |
| |
|
| # 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 |
| $shortLogLen = 80; |
$shortLogLen = 80; |
| Line 225 $show_author = 1; |
|
| Line 219 $show_author = 1; |
|
| |
|
| ############## |
############## |
| # table view for directories |
# table view for directories |
| ############## {{{ |
############## |
| |
|
| # Show directory as table |
|
| # this is much more readable but has one |
|
| # drawback: the whole table has to be loaded |
|
| # before common browsers display it which may |
|
| # be annoying if you have a slow link - and a |
|
| # large directory .. |
|
| $dirtable = 1; |
|
| |
|
| # show different colors for even/odd rows |
# Cell padding for directory table |
| @tabcolors = ('#ffffff', '#ffffff'); |
|
| $tablepadding = 2; |
$tablepadding = 2; |
| |
|
| # Color of Header |
|
| $columnHeaderColorDefault = '#ffffcc'; |
|
| $columnHeaderColorSorted = '#ffcc66'; |
|
| |
|
| # |
|
| # If you want to have colored borders |
|
| # around each row, uncomment this |
|
| $tableBorderColor = '#cccccc'; |
|
| |
|
| # }}} |
|
| |
|
| # |
# |
| # Modules in the repository that should not be displayed, either by default |
# Modules in the repository that should not be displayed, either by default |
| # nor by explicit path specification. |
# nor by explicit path specification. |
| Line 321 $hr_ignwhite = 0; |
|
| Line 295 $hr_ignwhite = 0; |
|
| # ( '-kk' option to rcsdiff) |
# ( '-kk' option to rcsdiff) |
| $hr_ignkeysubst = 1; |
$hr_ignkeysubst = 1; |
| |
|
| # Colors and font to show the diff type of code changes |
|
| $diffcolorHeading = '#99cccc'; # color of 'Line'-head of each diffed file |
|
| $diffcolorEmpty = '#cccccc'; # color of 'empty' lines |
|
| $diffcolorRemove = '#ff9999'; # Removed line(s) (left) ( - ) |
|
| $diffcolorChange = '#99ff99'; # Changed line(s) ( both ) |
|
| $diffcolorAdd = '#ccccff'; # Added line(s) ( - ) (right) |
|
| $diffcolorDarkChange = '#99cc99'; # lines, which are empty in change |
|
| $difffontface = "Helvetica,Arial"; |
|
| $difffontsize = "-1"; |
|
| |
|
| # the width of the textinput of the |
# the width of the textinput of the |
| # request-diff-form |
# request-diff-form |
| $inputTextSize = 12; |
$inputTextSize = 12; |
| Line 349 $mime_types = '/usr/local/etc/apache/mim |
|
| Line 313 $mime_types = '/usr/local/etc/apache/mim |
|
| |
|
| # quick mime-type lookup; maps file-suffices to |
# quick mime-type lookup; maps file-suffices to |
| # mime-types for displaying checkouts in the browser. |
# mime-types for displaying checkouts in the browser. |
| # Further MimeTypes will be found in the |
# Further MimeTypes will be found in the |
| # file $mime_types (apache style mime.types - file) |
# file $mime_types (apache style mime.types - file) |
| # - add common mappings here for faster lookup |
# - add common mappings here for faster lookup |
| %MTYPES = ( |
%MTYPES = ( |
| Line 486 $checkout_magic = 1; |
|
| Line 450 $checkout_magic = 1; |
|
| # Enable this if you like the feature, but don't rely on correct results. |
# Enable this if you like the feature, but don't rely on correct results. |
| $show_subdir_lastmod = 0; |
$show_subdir_lastmod = 0; |
| |
|
| # Background color of logentry in markup |
|
| $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; |
| |
|
| Line 522 $use_moddate = 1; |
|
| Line 483 $use_moddate = 1; |
|
| # CVSROOT/val-tags, due to a bug in cvs. |
# CVSROOT/val-tags, due to a bug in cvs. |
| $allow_tar = ''; |
$allow_tar = ''; |
| |
|
| |
# Allows graphical representations of file logs with CvsGraph if set. |
| |
$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. |
| |
#$cvsgraph_config = "/etc/cvsgraph.conf"; |
| |
|
| # Options to pass to tar(1). |
# Options to pass to tar(1). |
| @tar_options = qw(); |
@tar_options = qw(); |
| |
|
| Line 543 $allow_tar = ''; |
|
| Line 512 $allow_tar = ''; |
|
| # compression, or higher, for better compression. |
# compression, or higher, for better compression. |
| |
|
| # Options to pass to cvs(1). |
# Options to pass to cvs(1). |
| |
# 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); |
@cvs_options = qw(-lf); |
| |
|
| push @cvs_options, '-R' if ($uname eq 'FreeBSD' || $uname eq 'OpenBSD'); |
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 |
# Only FreeBSD's and OpenBSD's cvs(1) supports -R (read only access |
| # mode) option, which considerably speeds up checkouts over NFS. |
# 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; |
1; |
| # }}} |
# }}} |