[BACK]Return to cvsweb.conf CVS log [TXT][DIR] Up to [local] / CVSROOT

Annotation of CVSROOT/cvsweb.conf, Revision 1.8

1.1       maekawa     1: # -*-perl-*-
                      2: # Configuration of cvsweb.cgi, the
                      3: # CGI interface to CVS Repositories.
                      4: #
                      5: # (c) 1998-1999 H. Zeller    <zeller@think.de>
1.8     ! maekawa     6: #     1999      H. Nordstrom <hno@hem.passagen.se>
        !             7: #     2000      A. MUSHA     <knu@FreeBSD.org>
        !             8: #          based on work by Bill Fenner  <fenner@FreeBSD.org>
        !             9: # $zId: cvsweb.conf,v 1.27 2000/07/27 10:16:39 kcoar Exp $
        !            10: # $Id: cvsweb.conf,v 1.6 2000/07/29 12:04:40 knu Exp $
1.1       maekawa    11: #
                     12: ###
                     13:
                     14: ##############
                     15: # CVS Root
                     16: ##############
                     17: # CVSweb can handle several CVS-Repositories
                     18: # at once. Enter a short symbolic names and the
                     19: # full path of these repositories here.
                     20: # NOTE that the symbolic names may not contain
                     21: # whitespaces.
                     22: # Note, that cvsweb.cgi currently needs to have physical access
                     23: # to the CVS repository so :pserver:someone@xyz.com:/data/cvsroot
                     24: # won't work!
                     25:
                     26: # 'symbolic_name' 'path_to_the_actual_repository'
                     27: %CVSROOT = (
1.8     ! maekawa    28:            'OpenXM'     => '/home/cvs'
        !            29:           );
        !            30:
        !            31: %CVSROOTdescr = (
        !            32:                 'OpenXM'     => 'OpenXM CVS Repository'
        !            33:                );
1.1       maekawa    34:
                     35: # This tree is enabled by default when
                     36: # you enter the page
1.2       maekawa    37: $cvstreedefault = 'OpenXM';
1.1       maekawa    38:
                     39: ##############
1.8     ! maekawa    40: # PR categoties
        !            41: ##############
        !            42: @prcategories = qw(
        !            43:                   advocacy
        !            44:                   alpha
        !            45:                   bin
        !            46:                   conf
        !            47:                   docs
        !            48:                   gnu
        !            49:                   i386
        !            50:                   kern
        !            51:                   misc
        !            52:                   ports
        !            53:                   sparc
        !            54:                  );
        !            55:
        !            56: ##############
        !            57: # query-pr.cgi
        !            58: ##############
        !            59: $prcgi = "http://www.FreeBSD.org/cgi/query-pr.cgi?pr=";
        !            60:
        !            61: ##############
1.1       maekawa    62: # Defaults for UserSettings
                     63: ##############
                     64: %DEFAULTVALUE = (
                     65:       # sortby: File sort order
                     66:       #   file   Sort by filename
                     67:       #   rev    Sort by revision number
                     68:       #   date   Sort by commit date
                     69:       #   author Sort by author
                     70:       #   log    Sort by log message
                     71:
                     72:       "sortby" => "file",
                     73:
                     74:       # hideattic: Hide or show files in Attic
                     75:       #   1      Hide files in Attic
                     76:       #   0      Show files in Attic
                     77:
                     78:       "hideattic" => "1",
                     79:
                     80:       # logsort: Sort order for CVS logs
                     81:       #   date   Sort revisions by date
                     82:       #   rev    Sort revision by revision number
                     83:       #   cvs    Don't sort them. Same order as CVS/RCS shows them.
                     84:
                     85:       "logsort" => "date",
                     86:
                     87:       # f:      Default diff format
                     88:       #   h      Human readable
                     89:       #   u      Unified diff
                     90:       #   c      Context diff
                     91:       #   s      Side by side
1.8     ! maekawa    92:       "f" => ($is_textbased ? "u" : "h"),
1.1       maekawa    93:
                     94:       # hidecvsroot: Don't show the CVSROOT directory
                     95:       #   1      Hide CVSROOT directory
                     96:       #   0      Show CVSROOT directory
1.4       maekawa    97:       "hidecvsroot" => "1",
1.1       maekawa    98:
                     99:       # hidenonreadable: Don't show entries which cannot be read
                    100:       #   1      Hide non-readable entries
1.8     ! maekawa   101:       #   0      Show non-readable entries
1.1       maekawa   102:       "hidenonreadable" => "1",
                    103: );
                    104:
                    105: ##############
                    106: # some layout stuff
                    107: ##############
                    108:
                    109: # color settings in the body-tag
                    110: $body_tag = '<body text="#000000" bgcolor="#ffffff">';
                    111:
                    112: # Wanna have a logo on the page ?
                    113: $logo = '<img src="/icons/apache_pb.gif">';
                    114:
                    115: # The title of the Page on startup
1.5       maekawa   116: $defaulttitle = "OpenXM CVS Repository";
1.1       maekawa   117:
                    118: # The address is shown on the footer
1.5       maekawa   119: $address = "maekawa\@math.sci.kobe-u.ac.jp";
1.1       maekawa   120:
                    121: # Default page background color for the diffs
                    122: # and annotations
                    123: $backcolor = "#eeeeee";
                    124:
                    125: # color of navigation Header for
                    126: # diffs and annotations
                    127: $navigationHeaderColor = '#9999ee';
                    128:
                    129: $long_intro = <<EOT;
                    130: <p>
                    131: This is a WWW interface for CVS Repositories.
                    132: You can browse the file hierarchy by picking directories
                    133: (which have slashes after them, <i>e.g.</i>, <b>src/</b>).
                    134: If you pick a file, you will see the revision history
                    135: for that file.
                    136: Selecting a revision number will download that revision of
                    137: the file.  There is a link at each revision to display
                    138: diffs between that revision and the previous one, and
                    139: a form at the bottom of the page that allows you to
                    140: display diffs between arbitrary revisions.
                    141: </p>
                    142: <p>
                    143: This script has been written by Bill Fenner
1.8     ! maekawa   144: &lt;<a href="mailto:fenner\@FreeBSD.org">fenner\@FreeBSD.org</a>&gt;
1.1       maekawa   145: and improved by Henner Zeller
                    146: &lt;<a href="mailto:zeller\@think.de">zeller\@think.de</a>&gt;,
                    147: Henrik Nordstr&ouml;m
                    148: &lt;<a href="mailto:hno\@hem.passagen.se">hno\@hem.passagen.se</a>&gt;, and
                    149: Ken Coar
1.8     ! maekawa   150: &lt;<a href="mailto:Ken.Coar\@Golux.Com">Ken.Coar\@Golux.Com</a>&gt;, then
        !           151: Akinori MUSHA &lt;<a href="mailto:knu\@FreeBSD.org">knu\@FreeBSD.org</a>&gt;
        !           152: brought it back to FreeBSD community and added more facilities;
1.1       maekawa   153: it is covered by the
                    154: <a href="http://www.opensource.org/licenses/bsd-license.html">BSD-Licence</a>.
                    155: </p>
                    156: <p>
                    157: If you would like to use this CGI script on your own web server and
                    158: CVS tree, see Zeller's
                    159: <a href="http://linux.fh-heilbronn.de/~zeller/cgi/cvsweb.cgi"
                    160: >CVSweb distribution site</a>. Bill's original script can be found
1.8     ! maekawa   161: <a href="http://www.FreeBSD.org/~fenner/cvsweb/">here</a>.
1.1       maekawa   162: </p>
                    163: <p>
                    164: Please send any suggestions, comments, etc. to
1.8     ! maekawa   165: <a href="mailto:fenner\@FreeBSD.org">Bill Fenner</a> or, regarding the
1.1       maekawa   166: modifications, to
1.8     ! maekawa   167: <a href="mailto:knu\@FreeBSD.org">Akinori MUSHA</a>,
1.1       maekawa   168: <a href="mailto:zeller\@think.de">Henner Zeller</a>,
                    169: <a href="mailto:hno\@hem.passagen.se">Henrik Nordstr&ouml;m</a>, or
                    170: <a href="mailto:Ken.Coar\@Golux.Com">Ken Coar</a>.
                    171: </p>
                    172: EOT
                    173:
                    174: $short_instruction = <<EOT;
                    175: <p>
                    176: Click on a directory to enter that directory. Click on a file to display
                    177: its revision history and to get a chance to display diffs between revisions.
                    178: </p>
                    179: EOT
                    180:
                    181: # used icons; if icon-url is empty, the text representation is used; if
                    182: # you do not want to have an ugly tooltip for the icon, remove the
                    183: # text-representation.
                    184: # The width and height of the icon allow the browser to correcly display
                    185: # the table while still loading the icons.
                    186: # These default icons are coming with apache.
                    187: # If these icons are too large, check out the miniicons in the
                    188: # icons/ directory; they have a width/height of 16/16
                    189: # format:               TEXT      ICON-URL          width height
                    190: %ICONS  = (
                    191:           back => [ ("[BACK]", "/icons/back.gif", 20,   22) ],
                    192:           dir  => [ ("[DIR]",  "/icons/dir.gif",  20,   22) ],
                    193:           file => [ ("[TXT]",  "/icons/text.gif", 20,   22) ],
                    194:           );
                    195:
                    196: # the length to which the last logentry should
                    197: # be truncated when shown in the directory view
                    198: $shortLogLen = 80;
                    199:
                    200: # Show author of last change
                    201: $show_author = 1;
                    202:
                    203: ##############
                    204: # table view for directories
                    205: ##############
                    206:
                    207: # Show directory as table
                    208: # this is much more readable but has one
                    209: # drawback: the whole table has to be loaded
                    210: # before common browsers display it which may
                    211: # be annoying if you have a slow link - and a
                    212: # large directory ..
                    213: $dirtable = 1;
                    214:
                    215: # show different colors for even/odd rows
1.8     ! maekawa   216: @tabcolors = ('#ffffff', '#ffffff');
1.1       maekawa   217: $tablepadding = 2;
                    218:
                    219: # Color of Header
1.8     ! maekawa   220: $columnHeaderColorDefault = '#ffffcc';
        !           221: $columnHeaderColorSorted  = '#ffcc66';
1.1       maekawa   222:
                    223: #
                    224: # If you want to have colored borders
                    225: # around each row, uncomment this
1.8     ! maekawa   226: $tableBorderColor = '#cccccc';
1.1       maekawa   227:
                    228: #
                    229: # Modules in the repository that should not be displayed, either by default
                    230: # nor by explicit path specification.
                    231: #
                    232: @HideModules = (
1.8     ! maekawa   233:               );
1.1       maekawa   234:
1.6       maekawa   235: #
                    236: # Use CVSROOT/CVSROOT/descriptions for describing the directories/modules
                    237: # See INSTALL section 8
                    238: #
                    239: $use_descriptions = 0;
                    240:
1.1       maekawa   241: ##############
                    242: # Human Readable Diff
                    243: ##############
                    244:
                    245: # (c) 1998 H. Zeller <zeller@think.de>
                    246: #
                    247: # Generates two columns of color encoded
                    248: # diff; much like xdiff or emacs-ediff mode.
                    249: #
                    250: # The diff-stuff is a piece of code I once made for
                    251: # cvs2html which is under GPL,
                    252: # see http://www.sslug.dk/cvs2html
                    253: # (c) 1997/98 Peter Toft <pto@sslug.imm.dtu.dk>
                    254: #
                    255: # some parameters to screw:
                    256: ##
                    257:
                    258: # make lines breakable so that the columns do not
                    259: # exceed the width of the browser
                    260: $hr_breakable = 1;
                    261:
1.8     ! maekawa   262: # give out function names in diffs
1.1       maekawa   263: # this just makes sense if we have C-files, otherwise
                    264: # diff's heuristic doesn't work well ..
                    265: # ( '-p' option to diff)
1.8     ! maekawa   266: $showfunc = 1;
        !           267:
        !           268: # For each pair of regexps, files that match the first regexp will be diff'ed
        !           269: # with an '-F' option with the second regexp.
        !           270: %funcline_regexp = (
        !           271:                    "\\.(4th|fr)\$" => "\\(^\\| \\|\t\\): ",
        !           272:                   );
1.1       maekawa   273:
                    274: # ignore whitespaces for human readable diffs
                    275: # (indendation and stuff ..)
                    276: # ( '-w' option to diff)
                    277: $hr_ignwhite = 1;
                    278:
                    279: # ignore diffs which are caused by
                    280: # keyword-substitution like $Id - Stuff
                    281: # ( '-kk' option to rcsdiff)
                    282: $hr_ignkeysubst = 1;
                    283:
                    284: # Colors and font to show the diff type of code changes
                    285: $diffcolorHeading    = '#99cccc';  # color of 'Line'-head of each diffed file
                    286: $diffcolorEmpty      = '#cccccc';  # color of 'empty' lines
                    287: $diffcolorRemove     = '#ff9999';  # Removed line(s) (left)  (  -  )
                    288: $diffcolorChange     = '#99ff99';  # Changed line(s) (     both    )
                    289: $diffcolorAdd        = '#ccccff';  # Added line(s)   (  - )  (right)
                    290: $diffcolorDarkChange = '#99cc99';  # lines, which are empty in change
                    291: $difffontface        = "Helvetica,Arial";
                    292: $difffontsize        = "-1";
                    293:
                    294: # the width of the textinput of the
                    295: # request-diff-form
                    296: $inputTextSize = 12;
                    297:
                    298: ##############
                    299: # Mime Types
                    300: ##############
                    301:
                    302: # mapping to mimetypes to help
                    303: # cvsweb to guess the correct mime-type on
                    304: # checkout; you can use the mime.types from
                    305: # apache here:
1.8     ! maekawa   306: $mime_types = '/usr/local/etc/apache/mime.types';
1.1       maekawa   307:
                    308: # quick mime-type lookup; maps file-suffices to
                    309: # mime-types for displaying checkouts in the browser.
                    310: # Further MimeTypes will be found in the
                    311: # file $mime_types (apache style mime.types - file)
                    312: # - add common mappings here for faster lookup
                    313: %MTYPES = (
                    314:           "html"  => "text/html",
                    315:           "shtml" => "text/html",
                    316:           "gif"   => "image/gif",
                    317:           "jpeg"  => "image/jpeg",
                    318:           "jpg"   => "image/jpeg",
                    319:           "*"     => "text/plain",
1.8     ! maekawa   320:          );
1.1       maekawa   321:
                    322: ##############
                    323: # Misc
                    324: ##############
                    325: # allow annotation of files
                    326: # this requires rw-access to the
                    327: # CVSROOT/history - file and rw-access
                    328: # to the subdirectory to place the lock
                    329: # so you maybe don't want it
                    330: $allow_annotate = 1;
                    331:
                    332: # allow pretty-printed version of files
                    333: $allow_markup = 1;
                    334:
                    335: # allow compression with gzip
                    336: # of output if the Browser accepts
                    337: # it (HTTP_ACCEPT_ENCODING=gzip)
                    338: # [make sure to have gzip in the path]
                    339: $allow_compress = 1;
                    340:
                    341: # Make use of javascript functions.
                    342: # This way you can select one of your CVSroot
                    343: # without pressing 'Go' (.. if you do have more
                    344: # than one CVSROOT defined)
                    345: $use_java_script = 1;
                    346:
                    347: # open Download-Links in another window
                    348: $open_extern_window = 1;
                    349:
                    350: # The size of this extern window; this size option
                    351: # needs use_java_script to be defined
                    352: # just comment them if you don't want to have a fixed
                    353: # size
                    354: #$extern_window_width = 600;
                    355: #$extern_window_height = 440;
                    356:
                    357: # Edit Options
                    358: # Enable form to edit your options (hideattic,sortbydate)
                    359: # this isn't necessary if you've $dirtable defined 'cause
                    360: # this allows editing of all your options more intuitive
                    361: $edit_option_form = (not $dirtable);
                    362:
                    363: # remember to set the path to your
                    364: # rcsutils: rlog, rcsdiff (gzip if you use compression)
                    365: #$ENV{'PATH'} = '/usr/local/bin';
                    366:
                    367: # If you have files which automatically refers to other files
                    368: # (such as HTML) then this allows you to browse the checked
                    369: # out files as if outside CVS.
                    370: $checkout_magic = 1;
                    371:
                    372: # Show last changelog message for sub directories
                    373: # The current implementation makes many assumptions and may show the
                    374: # incorrect file at some times. The main assumption is that the last
                    375: # modified file has the newest filedate. But some CVS operations
                    376: # touches the file without even when a new version is't checked in,
                    377: # and TAG based browsing essientially puts this out of order, unless
                    378: # the last checkin was on the same tag as you are viewing.
                    379: # Enable this if you like the feature, but don't rely on correct results.
                    380: $show_subdir_lastmod = 0;
                    381:
                    382: # Background color of logentry in markup
                    383: $markupLogColor = "#ffffff";
                    384:
                    385: # Show CVS log when viewing file contents
                    386: $show_log_in_markup = 1;
                    387:
                    388: # Tabstop used to expand tabs in colored diffs. If undefined then
                    389: # tabs are always expanded to 8 spaces.
                    390: $tabstop = 8;
1.6       maekawa   391:
                    392: # if you wish to display absolute times in your local timezone,
                    393: # then define mytz and fill in the strings for your standard and
                    394: # daylight time. Note that you must also make sure the system
                    395: # timezone is correctly set.
                    396: # @mytz=("EST", "EDT");
                    397:
                    398: # cvsweb is friendly to caches by indicating a suitable
                    399: # last-modified timestamp. Doing this uses slightly more
                    400: # CPU so you might want to disable it if you have a slow
                    401: # server
                    402: $use_moddate = 1;
1.1       maekawa   403:
                    404: #EOF

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>