* Remove crufty invirt-web-iptables files
* Switch to git from svn
+ * Add gitweb configuration
-- Greg Brockman <gdb@mit.edu> Sat, 14 Aug 2010 00:46:44 -0400
kstart,
debathena-afs-config, openafs-modules-xen,
mail-transport-agent, subversion, zephyr-clients,
- cron,
+ cron, gitweb
Provides: ${diverted-files}
Conflicts: ${diverted-files}
Replaces: invirt-web-iptables (<= 0.0.2)
DEB_DIVERT_EXTENSION = .invirt
DEB_DIVERT_FILES_invirt-web += \
- /etc/init.d/apache2
+ /etc/apache2/conf.d/gitweb \
+ /etc/init.d/apache2 \
+ /etc/gitweb.conf \
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/config-package.mk
--- /dev/null
+<Directory /usr/share/gitweb>
+ Options FollowSymLinks +ExecCGI
+ AddHandler cgi-script .cgi
+</Directory>
+
+AliasMatch ^/(git-favicon\.png|git-logo\.png|gitweb\.css|gitweb\.js)$ /usr/share/gitweb/$1
+AliasMatch ^/gitweb(/.*)?$ /usr/share/gitweb/index.cgi$1
RewriteRule ^/admin/static(.*) /static/$1 [L]
RewriteRule ^/trac(.*) ${tracuri}$1 [R,L]
RewriteRule ^/invirt - [L]
+ RewriteRule ^/(git-favicon\.png|git-logo\.png|gitweb\.css|gitweb\.js)$ - [L]
+ RewriteRule ^/gitweb(/.*)?$ - [L]
RewriteRule ^/(.*) /var/www/invirt-web/unauth.fcgi/$1 [L]
ErrorLog /var/log/apache2/error.log
--- /dev/null
+# path to git projects (<project>.git)
+$projectroot = "/srv/git";
+
+# directory to use for temp files
+$git_temp = "/tmp";
+
+# target of the home link on top of all pages
+#$home_link = $my_uri || "/";
+
+# html text to include at home page
+$home_text = "indextext.html";
+
+# file with project list; by default, simply scan the projectroot dir.
+$projects_list = $projectroot;
+
+# stylesheet to use
+$stylesheet = "gitweb.css";
+
+# javascript code for gitweb
+$javascript = "gitweb.js";
+
+# logo to use
+$logo = "git-logo.png";
+
+# the 'favicon'
+$favicon = "git-favicon.png";
+
+$feature{'pathinfo'}{'default'} = [1];
+$feature{'avatar'}{'default'} = ['gravatar'];
+
+@git_base_url_list = qw(git://xvm.mit.edu git@xvm.mit.edu:/srv/repository);
+
+1;