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