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