[BACK]Return to cvsweb.conf CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / cvsweb

Annotation of cvsweb/cvsweb.conf, Revision 3.36.2.6

3.1       knu         1: # -*-perl-*-
                      2: # Configuration of cvsweb.cgi, the
                      3: # CGI interface to CVS Repositories.
                      4: #
                      5: # (c) 1998-1999 H. Zeller    <zeller@think.de>
                      6: #     1999      H. Nordstrom <hno@hem.passagen.se>
3.30      knu         7: #     2000-2002 A. MUSHA     <knu@FreeBSD.org>
3.32      scop        8: #     2002      V. Skyttä    <scop@FreeBSD.org>
3.1       knu         9: #          based on work by Bill Fenner  <fenner@FreeBSD.org>
3.28      knu        10: #
3.30      knu        11: # $FreeBSD$
3.36.2.6! schwarze   12: # $Id: cvsweb.conf,v 3.36.2.5 2019/03/21 15:53:09 schwarze Exp $
3.28      knu        13: # $Idaemons: /home/cvs/cvsweb/cvsweb.conf,v 3.27 2001/08/01 09:48:39 knu Exp $
3.1       knu        14: #
                     15: ###
                     16:
3.19      knu        17: # Set the path for the following commands:
                     18: #   uname, cvs, rlog, rcsdiff
                     19: #   gzip (if you enable $allow_compress)
3.25      knu        20: #   tar, rm, zip (if you enable $allow_tar)
3.19      knu        21: $command_path = '/bin:/usr/bin:/usr/local/bin';
                     22:
                     23: # Search the above directories for each command
3.25      knu        24: for (qw(uname cvs rlog rcsdiff gzip tar rm zip)) {
3.26      knu        25:        $CMD{$_} = search_path($_);
3.19      knu        26: }
                     27:
                     28: # The name of the operating system implementation
3.21      knu        29: chomp($uname = `$CMD{uname}`);
3.19      knu        30:
3.1       knu        31: ##############
                     32: # CVS Root
                     33: ##############
                     34: # CVSweb can handle several CVS-Repositories
                     35: # at once. Enter a short symbolic names and the
                     36: # full path of these repositories here.
                     37: # NOTE that the symbolic names may not contain
                     38: # whitespaces.
                     39: # Note, that cvsweb.cgi currently needs to have physical access
                     40: # to the CVS repository so :pserver:someone@xyz.com:/data/cvsroot
                     41: # won't work!
                     42:
3.17      knu        43: # 'symbolic_name' => ['name_to_display', 'path_to_the_actual_repository']
                     44: # Listed in the order specified:
                     45: @CVSrepositories = (
3.26      knu        46:        'local'   => ['Local Repository', '/home/cvs'],
                     47: #      'freebsd' => ['FreeBSD',          '/home/ncvs'],
                     48: #      'openbsd' => ['OpenBSD',          '/home/ncvs'],
                     49: #      'netbsd'  => ['NetBSD',           '/home/ncvs'],
                     50: #      'ruby'    => ['Ruby',             '/var/anoncvs/ruby'],
                     51: );
3.1       knu        52:
                     53: # This tree is enabled by default when
                     54: # you enter the page
3.26      knu        55: $cvstreedefault = $CVSrepositories[2 * 0];    # The first one
3.1       knu        56:
                     57: ##############
3.15      knu        58: # Bug tracking system options
                     59: # ("PR" means Problem Report, as in GNATS)
3.1       knu        60: ##############
3.15      knu        61: #@prcategories = qw(
3.26      knu        62: #    advocacy
                     63: #    alpha
                     64: #    bin
                     65: #    conf
                     66: #    docs
                     67: #    gnu
                     68: #    i386
                     69: #    kern
                     70: #    misc
                     71: #    pending
                     72: #    ports
                     73: #    sparc
                     74: #);
                     75:
3.15      knu        76: #
                     77: #$prcgi = "http://www.FreeBSD.org/cgi/query-pr.cgi?pr=%s";
                     78: #
                     79: #$prkeyword = "PR";
3.1       knu        80:
                     81: ##############
3.15      knu        82: # Manual gateway
3.8       knu        83: ##############
3.36.2.6! schwarze   84: $mancgi = "https://man.openbsd.org/%s.%s";
3.1       knu        85:
                     86: ##############
                     87: # Defaults for UserSettings
                     88: ##############
                     89: %DEFAULTVALUE = (
3.26      knu        90:
                     91:        # sortby: File sort order
                     92:        #   file   Sort by filename
                     93:        #   rev    Sort by revision number
                     94:        #   date   Sort by commit date
                     95:        #   author Sort by author
                     96:        #   log    Sort by log message
                     97:
                     98:        "sortby" => "file",
                     99:
                    100:        # hideattic: Hide or show files in Attic
                    101:        #   1      Hide files in Attic
                    102:        #   0      Show files in Attic
                    103:
                    104:        "hideattic" => "1",
                    105:
                    106:        # logsort: Sort order for CVS logs
                    107:        #   date   Sort revisions by date
                    108:        #   rev    Sort revision by revision number
                    109:        #   cvs    Don't sort them. Same order as CVS/RCS shows them.
                    110:
                    111:        "logsort" => "date",
                    112:
                    113:        # f:     Default diff format
                    114:        #   h      Human readable
                    115:        #   u      Unified diff
                    116:        #   c      Context diff
                    117:        #   s      Side by side
                    118:        "f" => "u",
                    119:
                    120:        # hidecvsroot: Don't show the CVSROOT directory
                    121:        #   1      Hide CVSROOT directory
                    122:        #   0      Show CVSROOT directory
                    123:        "hidecvsroot" => "0",
                    124:
                    125:        # hidenonreadable: Don't show entries which cannot be read
                    126:        #   1      Hide non-readable entries
                    127:        #   0      Show non-readable entries
                    128:        "hidenonreadable" => "1",
3.1       knu       129: );
                    130:
                    131: ##############
                    132: # some layout stuff
                    133: ##############
                    134:
3.9       knu       135: # The body-tag for directory views and logs
3.1       knu       136: $body_tag = '<body text="#000000" bgcolor="#ffffff">';
                    137:
3.9       knu       138: # The body-tag for diffs and annotations
                    139: $body_tag_for_src = '<body text="#000000" bgcolor="#eeeeee">';
                    140:
3.1       knu       141: # Wanna have a logo on the page ?
3.30      knu       142: $logo = '<p><img src="/icons/apache_pb.gif" alt="Powered by Apache"></p>';
3.1       knu       143:
3.34      scop      144: # The title of the Page on startup.  This will be put inside a <h1> tag.
3.1       knu       145: $defaulttitle = "CVS Repository";
                    146:
3.34      scop      147: # The address is shown on the footer.  This will be put inside a <address> tag.
3.36.2.4  schwarze  148: $address = '<span style="font-size: smaller">FreeBSD-CVSweb</span>';
3.1       knu       149:
                    150: # color of navigation Header for
                    151: # diffs and annotations
                    152: $navigationHeaderColor = '#9999ee';
                    153:
                    154: $long_intro = <<EOT;
                    155: <p>
                    156: This is a WWW interface for CVS Repositories.
                    157: You can browse the file hierarchy by picking directories
                    158: (which have slashes after them, <i>e.g.</i>, <b>src/</b>).
                    159: If you pick a file, you will see the revision history
                    160: for that file.
                    161: Selecting a revision number will download that revision of
                    162: the file.  There is a link at each revision to display
                    163: diffs between that revision and the previous one, and
                    164: a form at the bottom of the page that allows you to
                    165: display diffs between arbitrary revisions.
                    166: </p>
                    167: <p>
3.33      scop      168: This script has been written by Bill Fenner and improved by Henner Zeller,
                    169: Henrik Nordstr&ouml;m, and Ken Coar, then Akinori MUSHA brought it
3.22      knu       170: back to FreeBSD community and made further improvements; it is covered
3.33      scop      171: by <a
                    172: href="http://www.opensource.org/licenses/bsd-license.html">The BSD Licence</a>.
3.1       knu       173: </p>
                    174: <p>
                    175: If you would like to use this CGI script on your own web server and
3.33      scop      176: CVS tree, download the latest version from &lt;URL:<a
                    177: href="http://www.FreeBSD.org/projects/cvsweb.html">http://www.FreeBSD.org/projects/cvsweb.html</a>&gt;.
3.1       knu       178: </p>
                    179: EOT
                    180:
                    181: $short_instruction = <<EOT;
                    182: <p>
                    183: Click on a directory to enter that directory. Click on a file to display
3.32      scop      184: its revision history and to get a chance to display diffs between revisions.
3.1       knu       185: </p>
                    186: EOT
                    187:
                    188: # used icons; if icon-url is empty, the text representation is used; if
                    189: # you do not want to have an ugly tooltip for the icon, remove the
                    190: # text-representation.
                    191: # The width and height of the icon allow the browser to correcly display
                    192: # the table while still loading the icons.
                    193: # These default icons are coming with apache.
                    194: # If these icons are too large, check out the miniicons in the
                    195: # icons/ directory; they have a width/height of 16/16
3.15      knu       196: my $iconsdir = "/icons";
3.26      knu       197:
3.15      knu       198: # format:             TEXT      ICON-URL              width height
3.26      knu       199: %ICONS = (
                    200:        back => [("[BACK]", "$iconsdir/back.gif", 20, 22)],
                    201:        dir  => [("[DIR]",  "$iconsdir/dir.gif",  20, 22)],
                    202:        file => [("[TXT]",  "$iconsdir/text.gif", 20, 22)],
                    203: );
3.15      knu       204: undef $iconsdir;
3.1       knu       205:
                    206: # the length to which the last logentry should
                    207: # be truncated when shown in the directory view
                    208: $shortLogLen = 80;
                    209:
                    210: # Show author of last change
                    211: $show_author = 1;
                    212:
                    213: ##############
                    214: # table view for directories
                    215: ##############
                    216:
                    217: # Show directory as table
                    218: # this is much more readable but has one
                    219: # drawback: the whole table has to be loaded
                    220: # before common browsers display it which may
                    221: # be annoying if you have a slow link - and a
                    222: # large directory ..
                    223: $dirtable = 1;
                    224:
                    225: # show different colors for even/odd rows
                    226: @tabcolors = ('#ffffff', '#ffffff');
                    227: $tablepadding = 2;
                    228:
                    229: # Color of Header
                    230: $columnHeaderColorDefault = '#ffffcc';
                    231: $columnHeaderColorSorted  = '#ffcc66';
                    232:
                    233: #
                    234: # If you want to have colored borders
                    235: # around each row, uncomment this
                    236: $tableBorderColor = '#cccccc';
                    237:
                    238: #
                    239: # Modules in the repository that should not be displayed, either by default
                    240: # nor by explicit path specification.
                    241: #
3.27      knu       242: @HideModules = (
                    243: #      "^my/secret/module",
                    244: );
                    245:
                    246: #
                    247: # Files matching these pathnames shouldn't be checked out with cvsweb,
                    248: # since they may contain sensitive information. Simple file name based
                    249: # filter. Often, the CVSROOT/passwd is exposed and some people tend
                    250: # to check in their .cvspass, though this is a bad idea. These files
                    251: # shouldn't be readable by default. Thanks to Damian Gryski to point
                    252: # this out.
3.36      scop      253: # Note that this affects only files, not directories.
3.27      knu       254: @ForbiddenFiles = (
                    255:        "^CVSROOT/passwd\$",   # CVSROOT/passwd should not be cvs add'ed, though
                    256:        "/\\.cvspass\$",       # Ditto.  Just in case.
                    257: );
3.1       knu       258:
                    259: #
                    260: # Use CVSROOT/CVSROOT/descriptions for describing the directories/modules
                    261: # See INSTALL section 8
                    262: #
                    263: $use_descriptions = 0;
                    264:
                    265: ##############
                    266: # Human Readable Diff
                    267: ##############
                    268:
                    269: # (c) 1998 H. Zeller <zeller@think.de>
                    270: #
                    271: # Generates two columns of color encoded
                    272: # diff; much like xdiff or emacs-ediff mode.
                    273: #
                    274: # The diff-stuff is a piece of code I once made for
                    275: # cvs2html which is under GPL,
                    276: # see http://www.sslug.dk/cvs2html
                    277: # (c) 1997/98 Peter Toft <pto@sslug.imm.dtu.dk>
                    278: #
                    279: # some parameters to screw:
                    280: ##
                    281:
                    282: # make lines breakable so that the columns do not
                    283: # exceed the width of the browser
                    284: $hr_breakable = 1;
                    285:
3.4       knu       286: # give out function names in diffs
3.1       knu       287: # this just makes sense if we have C-files, otherwise
                    288: # diff's heuristic doesn't work well ..
                    289: # ( '-p' option to diff)
3.4       knu       290: $showfunc = 1;
3.1       knu       291:
                    292: # ignore whitespaces for human readable diffs
                    293: # (indendation and stuff ..)
                    294: # ( '-w' option to diff)
3.7       knu       295: $hr_ignwhite = 0;
3.1       knu       296:
                    297: # ignore diffs which are caused by
                    298: # keyword-substitution like $Id - Stuff
                    299: # ( '-kk' option to rcsdiff)
                    300: $hr_ignkeysubst = 1;
                    301:
                    302: # Colors and font to show the diff type of code changes
3.26      knu       303: $diffcolorHeading    = '#99cccc';    # color of 'Line'-head of each diffed file
                    304: $diffcolorEmpty      = '#cccccc';    # color of 'empty' lines
                    305: $diffcolorRemove     = '#ff9999';    # Removed line(s) (left)  (  -  )
                    306: $diffcolorChange     = '#99ff99';    # Changed line(s) (     both    )
                    307: $diffcolorAdd        = '#ccccff';    # Added line(s)   (  - )  (right)
                    308: $diffcolorDarkChange = '#99cc99';    # lines, which are empty in change
                    309: $difffontface = "Helvetica,Arial";
                    310: $difffontsize = "-1";
3.1       knu       311:
                    312: # the width of the textinput of the
                    313: # request-diff-form
                    314: $inputTextSize = 12;
                    315:
                    316: ##############
                    317: # Mime Types
                    318: ##############
                    319:
                    320: # mapping to mimetypes to help
                    321: # cvsweb to guess the correct mime-type on
                    322: # checkout; you can use the mime.types from
                    323: # apache here:
                    324: $mime_types = '/usr/local/etc/apache/mime.types';
                    325:
                    326: # quick mime-type lookup; maps file-suffices to
                    327: # mime-types for displaying checkouts in the browser.
                    328: # Further MimeTypes will be found in the
                    329: # file $mime_types (apache style mime.types - file)
                    330: # - add common mappings here for faster lookup
                    331: %MTYPES = (
3.26      knu       332:        "html"  => "text/html",
                    333:        "shtml" => "text/html",
                    334:        "gif"   => "image/gif",
                    335:        "jpeg"  => "image/jpeg",
                    336:        "jpg"   => "image/jpeg",
                    337:        "png"   => "image/png",
                    338:        "xpm"   => "image/xpm",
                    339:        "*"     => "text/plain",
                    340: );
3.11      knu       341:
                    342: # Charset for HTML output
3.13      knu       343: $charset = '';
3.26      knu       344:
3.13      knu       345: # e.g.
                    346: #$charset = $where =~ m,/ru[/_-], ? 'koi8-r'
                    347: #  : $where =~ m,/zh[/_-], ? 'big5'
                    348: #  : $where =~ m,/ja[/_-], ? 'x-euc-jp'
                    349: #  : $where =~ m,/ko[/_-], ? 'x-euc-kr'
                    350: #  : 'iso-8859-1';
3.29      knu       351:
                    352: # Output filter
                    353: $output_filter = '';
                    354:
                    355: # e.g.
                    356: ## unify/convert Japanese code into EUC-JP
                    357: #$output_filter= '/usr/local/bin/nkf -e';
3.1       knu       358:
                    359: ##############
                    360: # Misc
                    361: ##############
                    362: # allow annotation of files
                    363: # this requires rw-access to the
3.12      knu       364: # CVSROOT/history file (if you have one)
                    365: # and rw-access to the subdirectory to
                    366: # place the lock so you maybe don't want it
3.1       knu       367: $allow_annotate = 1;
                    368:
                    369: # allow pretty-printed version of files
                    370: $allow_markup = 1;
                    371:
3.31      knu       372: # allow extra hlink formatting (such as PR xrefs) in logs
                    373: $allow_log_extra = 1; # default: enabled
                    374:
                    375: # allow extra hlink formatting (such as PR xrefs) in directories
                    376: $allow_dir_extra = 1;
                    377:
                    378: # allow extra hlink formatting in source code/formatted diff views
                    379: $allow_source_extra = 1;
                    380:
3.1       knu       381: # allow compression with gzip
                    382: # of output if the Browser accepts
                    383: # it (HTTP_ACCEPT_ENCODING=gzip)
                    384: # [make sure to have gzip in the path]
3.16      knu       385: $allow_compress = 0;
3.1       knu       386:
                    387: # Make use of javascript functions.
                    388: # This way you can select one of your CVSroot
                    389: # without pressing 'Go' (.. if you do have more
                    390: # than one CVSROOT defined)
                    391: $use_java_script = 1;
                    392:
                    393: # open Download-Links in another window
                    394: $open_extern_window = 1;
                    395:
                    396: # The size of this extern window; this size option
                    397: # needs use_java_script to be defined
                    398: # just comment them if you don't want to have a fixed
                    399: # size
                    400: #$extern_window_width = 600;
                    401: #$extern_window_height = 440;
                    402:
                    403: # Edit Options
                    404: # Enable form to edit your options (hideattic,sortbydate)
                    405: # this isn't necessary if you've $dirtable defined 'cause
                    406: # this allows editing of all your options more intuitive
                    407: $edit_option_form = (not $dirtable);
                    408:
                    409: # If you have files which automatically refers to other files
                    410: # (such as HTML) then this allows you to browse the checked
                    411: # out files as if outside CVS.
                    412: $checkout_magic = 1;
                    413:
                    414: # Show last changelog message for sub directories
                    415: # The current implementation makes many assumptions and may show the
                    416: # incorrect file at some times. The main assumption is that the last
                    417: # modified file has the newest filedate. But some CVS operations
                    418: # touches the file without even when a new version is't checked in,
                    419: # and TAG based browsing essientially puts this out of order, unless
                    420: # the last checkin was on the same tag as you are viewing.
                    421: # Enable this if you like the feature, but don't rely on correct results.
                    422: $show_subdir_lastmod = 0;
                    423:
                    424: # Background color of logentry in markup
                    425: $markupLogColor = "#ffffff";
                    426:
                    427: # Show CVS log when viewing file contents
                    428: $show_log_in_markup = 1;
                    429:
3.13      knu       430: # Preformat when viewing file contents.  This should be turned off
                    431: # when you have files in the repository that are in a multibyte
                    432: # encoding which uses HTML special characters ([<>&"]) as part of a
                    433: # multi-byte character. (such as iso-2022-jp, ShiftJIS, etc.)
                    434: # Otherwise those files will get screwed up in markup.
                    435: $preformat_in_markup = '';
                    436:
3.1       knu       437: # Tabstop used to expand tabs in colored diffs. If undefined then
                    438: # tabs are always expanded to 8 spaces.
                    439: $tabstop = 8;
                    440:
                    441: # if you wish to display absolute times in your local timezone,
                    442: # then define mytz and fill in the strings for your standard and
                    443: # daylight time. Note that you must also make sure the system
                    444: # timezone is correctly set.
                    445: # @mytz=("EST", "EDT");
                    446:
                    447: # cvsweb is friendly to caches by indicating a suitable
                    448: # last-modified timestamp. Doing this uses slightly more
                    449: # CPU so you might want to disable it if you have a slow
                    450: # server
                    451: $use_moddate = 1;
                    452:
3.12      knu       453: # Allows downloading a tarball of the current directory if set.
                    454: # Bear in mind that this allows downloading a tarball of your entire
                    455: # repository, which can take a lot of time and disk space to create!
                    456: # If you enable this, you may need to make sure that cvsweb can write to
                    457: # CVSROOT/val-tags, due to a bug in cvs.
                    458: $allow_tar = '';
3.13      knu       459:
                    460: # Options to pass to tar(1).
3.15      knu       461: @tar_options = qw();
3.26      knu       462:
3.13      knu       463: # e.g. @tar_options = qw(--ignore-failed-read);
                    464: #      GNU tar has some useful options against unexpected errors.
                    465:
3.19      knu       466: # Options to pass to gzip(1) when compressing a tarball to download.
                    467: @gzip_options = qw();
3.26      knu       468:
3.19      knu       469: # e.g. @gzip_options = qw(-3);
3.25      knu       470: #      Try lower compression level than 6 (default) if you want faster
                    471: #      compression, or higher, for better compression.
                    472:
                    473: # Options to pass to zip(1) when compressing a zip archive to download.
                    474: @zip_options = qw();
3.26      knu       475:
3.25      knu       476: # e.g. @zip_options = qw(-3);
3.19      knu       477: #      Try lower compression level than 6 (default) if you want faster
3.21      knu       478: #      compression, or higher, for better compression.
3.19      knu       479:
3.13      knu       480: # Options to pass to cvs(1).
3.36.2.1  scop      481: # For cvs versions prior to 1.11, the '-l' option doesn't work; If you want
                    482: # working checkouts with an older cvs version, you'll have to make sure that
                    483: # the cvsweb user can read and write to CVSROOT/history.
3.35      scop      484: @cvs_options = qw(-lf);
3.19      knu       485:
                    486: push @cvs_options, '-R' if ($uname eq 'FreeBSD' || $uname eq 'OpenBSD');
3.36.2.2  scop      487: push @cvs_options, '-u' if ($uname eq 'NetBSD');
3.26      knu       488:
3.19      knu       489: #      Only FreeBSD's and OpenBSD's cvs(1) supports -R (read only access
                    490: #      mode) option, which considerably speeds up checkouts over NFS.
3.36.2.2  scop      491: #      A similar effect is provided by -u on NetBSD.
3.12      knu       492:
3.36.2.3  scop      493: # Options to pass to the 'cvs annotate' command, usually the normal
                    494: # @cvs_options are good enough here.
                    495: @annotate_options = @cvs_options;
                    496:
                    497: #      To make annotate work against a read only repository, add -n, e.g.:
                    498: #      @annotate_options = (@cvs_options, '-n');
                    499:
3.12      knu       500: 1;
3.26      knu       501:
3.1       knu       502: #EOF

CVSweb