:::: MENU ::::

gitwebのインストール&githubっぽいテーマを適応

Trac の git plugins でリポジトリブラウザから見られるようになったが、
やっぱり一括で見たいときもあるので gitweb を入れてみる。

# cd /usr/local/src/
# cd git-1.8.1.3
# make GITWEB_PROJECTROOT="/var/repos/git" GITWEB_CSS="static/gitweb.css" GITWEB_LOGO="static/git-logo.png" GITWEB_FAVICON="static/git-#on.png" GITWEB_JS="static/gitweb.js" bindir=/usr/local/bin gitwebdir=/usr/local/gitweb install-gitweb
# vi /etc/httpd/conf.d/gitweb.conf
LoadModule cgi_module modules/mod_cgi.so
Alias /gitweb /usr/local/gitweb

<Directory /usr/local/gitweb>
Options FollowSymLinks ExecCGI SymLinksIfOwnerMatch
AddHandler cgi-script .cgi
DirectoryIndex gitweb.cgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.* /gitweb.cgi/$0 [L,PT]
</Directory>

<Location /var/repos/git>
AuthType Digest
AuthUserFile /var/repos/user/htdigest
Require valid-user
BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On
</Location>

# /etc/init.d/httpd restart

github っぽい見た目にする

# cd /usr/local/src/
# wget http://github.com/kogakure/gitweb-theme/tarball/master
# git clone https://github.com/kogakure/gitweb-theme.git
# cd gitweb-theme/
# cp -a ./* /usr/local/gitweb/static/