diff options
author | root <root@rshg054.dnsready.net> | 2011-08-03 23:14:34 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-08-03 23:14:34 +0000 |
commit | 8c2359e2541f9d1b11443b49d8ea502b3ffea39c (patch) | |
tree | 035176ef2ab4dbaabda40150109c203887d83ed7 /community/cgit | |
parent | 991d38faccf4e1fb27f31f236ad58ee840103734 (diff) |
Wed Aug 3 23:14:34 UTC 2011
Diffstat (limited to 'community/cgit')
-rw-r--r-- | community/cgit/PKGBUILD | 24 | ||||
-rw-r--r-- | community/cgit/apache.example.conf | 25 |
2 files changed, 43 insertions, 6 deletions
diff --git a/community/cgit/PKGBUILD b/community/cgit/PKGBUILD index 1c11029d1..edc48fe55 100644 --- a/community/cgit/PKGBUILD +++ b/community/cgit/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 52856 2011-07-29 11:59:24Z spupykin $ +# $Id: PKGBUILD 53245 2011-08-02 14:54:02Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Current Maintainer: Patrick Palka <patrick@parcs.ath.cx> # Previous Maintainer: Loui Chang <louipc.ist at gmail com> @@ -7,7 +7,8 @@ pkgname=cgit pkgver=0.9.0.2 -pkgrel=1 +_gitver=1.7.4 +pkgrel=2 pkgdesc="A web interface for git written in plain C" arch=('i686' 'x86_64') url="http://hjemli.net/git/cgit" @@ -15,19 +16,30 @@ license=('GPL') depends=('openssl') makedepends=('git' 'zlib' 'curl' 'asciidoc') install=cgit.install -source=("http://hjemli.net/git/cgit/snapshot/$pkgname-$pkgver.tar.bz2") -md5sums=('5b92b07e0107ff24a783adfb8c0cd1f2') +source=("http://hjemli.net/git/cgit/snapshot/$pkgname-$pkgver.tar.bz2" + "http://www.kernel.org/pub/software/scm/git/git-${_gitver}.tar.bz2" + "apache.example.conf") +md5sums=('5b92b07e0107ff24a783adfb8c0cd1f2' + 'fa24dc1ef0b663327ea0fe1981365b39' + 'bd5696bea0654bfcf98f249b1a36737d') build() { cd "$pkgname-$pkgver" - make get-git + _cgit_gitver=`grep 'GIT_VER = ' Makefile | cut -f3 -d\ ` + [ "x${_gitver}" == "x${_cgit_gitver}" ] || { msg "Bad git version"; return 1; } + rm -rf git/* + mv ../git-${_gitver}/* git/ make make doc-man } package() { cd "$pkgname-$pkgver" - make CGIT_SCRIPT_PATH=/srv/http/cgit DESTDIR="$pkgdir" install install-man + make CGIT_SCRIPT_PATH=/usr/share/webapps/cgit DESTDIR="$pkgdir" install install-man install -vDm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" install -vd "$pkgdir/var/cache/$pkgname" + install -vDm0644 $srcdir/apache.example.conf $pkgdir/etc/webapps/cgit/apache.example.conf + mkdir -p $pkgdir/usr/lib/cgit + mv $pkgdir/usr/share/webapps/cgit/cgit.cgi $pkgdir/usr/lib/cgit + ln -sf ../../../lib/cgit/cgit.cgi $pkgdir/usr/share/webapps/cgit/cgit.cgi } diff --git a/community/cgit/apache.example.conf b/community/cgit/apache.example.conf new file mode 100644 index 000000000..9beb27db3 --- /dev/null +++ b/community/cgit/apache.example.conf @@ -0,0 +1,25 @@ +ScriptAlias /cgit/ "/usr/lib/cgit/cgit.cgi/" + +Alias /cgit-css "/usr/share/webapps/cgit/" + +<Directory "/usr/share/webapps/cgit/"> + AllowOverride None + Options None + Order allow,deny + Allow from all + AuthType Basic + AuthName cgit + AuthUserFile /etc/httpd/conf/passwd + Require user root +</Directory> + +<Directory "/usr/lib/cgit/"> + AllowOverride None + Options ExecCGI FollowSymlinks + Order allow,deny + Allow from all + AuthType Basic + AuthName cgit + AuthUserFile /etc/httpd/conf/passwd + Require user root +</Directory> |