cgit: 0.8.3.1 -> 0.8.3.4

This commit is contained in:
Danny Rawlins 2010-12-16 01:53:13 +11:00
parent 8d4470e5c9
commit b06e33f10f
4 changed files with 42 additions and 6 deletions

View File

@ -1,4 +1,14 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/apache/
drwxr-xr-x root/root etc/apache/extra/
-rw-r----- root/root etc/apache/extra/cgit.conf
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man5/
-rw-r--r-- root/root usr/man/man5/cgitrc.5.gz
drwxr-xr-x root/root var/
drwxr-xr-x root/root var/cache/
drwxr-x--- root/root var/cache/cgit/
drwxr-xr-x root/root var/www/
drwxr-xr-x root/root var/www/htdocs/
drwxr-xr-x root/root var/www/htdocs/cgit/

View File

@ -1,2 +1,3 @@
cc61989f702ce77e56137be67e01f3ed cgit-0.8.3.1.tar.bz2
25e4bcdc528b3ffadc6e59908a513881 git-1.6.6.tar.bz2
712e4d3013d754aa5752e0101188cf32 cgit-0.8.3.4.tar.bz2
347db2eb49cea170b2e513189756ca82 cgit.conf
77e1611498919965fb65fd1f229ee155 git-1.7.3.1.tar.bz2

View File

@ -2,20 +2,33 @@
# URL: http://hjemli.net/git/cgit/
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: Lucas Hazel, lucas at die dot net dot au
# Depends on: git
# Depends on: git asciidoc
gitversion="1.6.6"
gitversion=1.7.3.1
name=cgit
version=0.8.3.1
version=0.8.3.4
release=1
source=(http://hjemli.net/git/cgit/snapshot/$name-$version.tar.bz2
http://www.kernel.org/pub/software/scm/git/git-$gitversion.tar.bz2)
http://www.kernel.org/pub/software/scm/git/git-$gitversion.tar.bz2
cgit.conf)
build() {
cd $name-$version
if [ $gitversion != "$(/usr/bin/git --version | cut -d ' ' -f 3)" ]; then
echo 'Did you forget to update gitversion?'
exit 1
fi
rm -rf git
ln -s $SRC/git-$gitversion git
sed "s/GIT_VER = .*/GIT_VER = $gitversion/" -i Makefile
make cgit man-doc
make DESTDIR=$PKG install
install -D -m 0640 $SRC/cgit.conf $PKG/etc/apache/extra/cgit.conf
install -D -m 0644 cgitrc.5 $PKG/usr/man/man5/cgitrc.5
install -d -m 0750 $PKG/var/cache/cgit
}

12
cgit/cgit.conf Normal file
View File

@ -0,0 +1,12 @@
<IfModule mod_alias.c>
Alias /cgit/ /var/www/cgit/
</IfModule>
<Directory "/var/www/cgit/">
AllowOverride None
Options ExecCGI
DirectoryIndex cgit.cgi
AddHandler cgi-script .cgi
Order allow,deny
Allow from all
</Directory>