1 |
ramereth 10/02/23 22:54:10 |
2 |
|
3 |
Added: postinstall-en.txt cgitrc |
4 |
Log: |
5 |
New package: cgit (#223339) |
6 |
(Portage version: 2.1.7.16/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 www-apps/cgit/files/postinstall-en.txt |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/cgit/files/postinstall-en.txt?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/cgit/files/postinstall-en.txt?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: postinstall-en.txt |
15 |
=================================================================== |
16 |
There is a few variants of configuration: |
17 |
1) Via global config file: /etc/cgitrc |
18 |
2) Or via local config file, shipped in ./conf dir into webapp_dir. It has to |
19 |
be explicitly specified with CGIT_CONFIG env variable in your web server |
20 |
configuration. |
21 |
|
22 |
If you would like to update the list of git repositories in cgit automatically, |
23 |
you might consider adding something similar to the following as a cronjob: |
24 |
|
25 |
"${MY_CGIBINDIR}/cgit.cgi --scan-tree=/git/repo-parent-path > /etc/cgit-repos" |
26 |
|
27 |
Then add "include=/etc/cgit-repos" in /etc/cgitrc. This way it's simpler and |
28 |
more convenient. You won't need to update your cgitrc every time you add a new |
29 |
repository. |
30 |
|
31 |
|
32 |
|
33 |
|
34 |
1.1 www-apps/cgit/files/cgitrc |
35 |
|
36 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/cgit/files/cgitrc?rev=1.1&view=markup |
37 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/cgit/files/cgitrc?rev=1.1&content-type=text/plain |
38 |
|
39 |
Index: cgitrc |
40 |
=================================================================== |
41 |
# Enable caching of up to 1000 output entriess |
42 |
#cache-size=1000 |
43 |
|
44 |
|
45 |
# Specify some default clone prefixes |
46 |
#clone-prefix=git://foobar.com ssh://foobar.com/pub/git http://foobar.com/git |
47 |
|
48 |
# Specify the css url |
49 |
#css=/css/cgit.css |
50 |
|
51 |
|
52 |
# Show extra links for each repository on the index page |
53 |
#enable-index-links=1 |
54 |
|
55 |
|
56 |
# Show number of affected files per commit on the log pages |
57 |
#enable-log-filecount=1 |
58 |
|
59 |
|
60 |
# Show number of added/removed lines per commit on the log pages |
61 |
#enable-log-linecount=1 |
62 |
|
63 |
|
64 |
# Add a cgit favicon |
65 |
#favicon=/favicon.ico |
66 |
|
67 |
|
68 |
# Use a custom logo |
69 |
#logo=/img/mylogo.png |
70 |
|
71 |
|
72 |
# Enable statistics per week, month and quarter |
73 |
#max-stats=quarter |
74 |
|
75 |
|
76 |
# Set the title and heading of the repository index page |
77 |
#root-title=foobar.com git repositories |
78 |
|
79 |
|
80 |
# Set a subheading for the repository index page |
81 |
#root-desc=tracking the foobar development |
82 |
|
83 |
|
84 |
# Include some more info about foobar.com on the index page |
85 |
#root-readme=/var/www/htdocs/about.html |
86 |
|
87 |
|
88 |
# Allow download of tar.gz, tar.bz2 and zip-files |
89 |
#snapshots=tar.gz tar.bz2 zip |
90 |
|
91 |
|
92 |
## |
93 |
## List of common mimetypes |
94 |
## |
95 |
|
96 |
#mimetype.git=image/git |
97 |
#mimetype.html=text/html |
98 |
#mimetype.jpg=image/jpeg |
99 |
#mimetype.jpeg=image/jpeg |
100 |
#mimetype.pdf=application/pdf |
101 |
#mimetype.png=image/png |
102 |
#mimetype.svg=image/svg+xml |
103 |
|
104 |
|
105 |
## |
106 |
## List of repositories. |
107 |
## PS: Any repositories listed when section is unset will not be |
108 |
## displayed under a section heading |
109 |
## PPS: This list could be kept in a different file (e.g. '/etc/cgitrepos') |
110 |
## and included like this: |
111 |
## include=/etc/cgitrepos |
112 |
## |
113 |
|
114 |
|
115 |
#repo.url=foo |
116 |
#repo.path=/pub/git/foo.git |
117 |
#repo.desc=the master foo repository |
118 |
#repo.owner=fooman@××××××.com |
119 |
#repo.readme=info/web/about.html |
120 |
|
121 |
|
122 |
#repo.url=bar |
123 |
#repo.path=/pub/git/bar.git |
124 |
#repo.desc=the bars for your foo |
125 |
#repo.owner=barman@××××××.com |
126 |
#repo.readme=info/web/about.html |
127 |
|
128 |
|
129 |
# The next repositories will be displayed under the 'extras' heading |
130 |
#section=extras |
131 |
|
132 |
|
133 |
#repo.url=baz |
134 |
#repo.path=/pub/git/baz.git |
135 |
#repo.desc=a set of extensions for bar users |
136 |
|
137 |
#repo.url=wiz |
138 |
#repo.path=/pub/git/wiz.git |
139 |
#repo.desc=the wizard of foo |
140 |
|
141 |
|
142 |
# Add some mirrored repositories |
143 |
#section=mirrors |
144 |
|
145 |
|
146 |
#repo.url=git |
147 |
#repo.path=/pub/git/git.git |
148 |
#repo.desc=the dscm |
149 |
|
150 |
|
151 |
#repo.url=linux |
152 |
#repo.path=/pub/git/linux.git |
153 |
#repo.desc=the kernel |
154 |
|
155 |
# Disable adhoc downloads of this repo |
156 |
#repo.snapshots=0 |
157 |
|
158 |
# Disable line-counts for this repo |
159 |
#repo.enable-log-linecount=0 |
160 |
|
161 |
# Restrict the max statistics period for this repo |
162 |
#repo.max-stats=month |