diff options
author | Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org> | 2015-03-26 10:00:35 +0100 |
---|---|---|
committer | Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org> | 2015-03-26 10:01:09 +0100 |
commit | 197fe3ff54b8afec42aea3f62c1f491abb126d2f (patch) | |
tree | 40992b7c2cc6347c12b238903caf785f03ff47d8 /main/gitolite | |
parent | 786b06948e649054927f5b7d47d30084207f61bd (diff) | |
download | aports-197fe3ff54b8afec42aea3f62c1f491abb126d2f.tar.bz2 aports-197fe3ff54b8afec42aea3f62c1f491abb126d2f.tar.xz |
main/gitolite: small APKBUILD improvements
Diffstat (limited to 'main/gitolite')
-rw-r--r-- | main/gitolite/APKBUILD | 20 | ||||
-rw-r--r-- | main/gitolite/gitolite.pre-install | 2 |
2 files changed, 7 insertions, 15 deletions
diff --git a/main/gitolite/APKBUILD b/main/gitolite/APKBUILD index 83c3cf738a..245a646e47 100644 --- a/main/gitolite/APKBUILD +++ b/main/gitolite/APKBUILD @@ -4,31 +4,23 @@ pkgname=gitolite pkgver=3.6.2 -pkgrel=0 +pkgrel=1 pkgdesc='Centralized git server, with very fine-grained access control and many powerful features' url='http://github.com/sitaramc/gitolite' arch='noarch' license='GPL2' depends='git perl' install=$pkgname.pre-install -source="https://github.com/sitaramc/$pkgname/tarball/v${pkgver}/$pkgname-$pkgver.tar.gz" +source="https://github.com/sitaramc/$pkgname/archive/v${pkgver}.tar.gz" prepare() { - cd "$srcdir"/sitaramc-gitolite-* - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done - echo "v${pkgver}" > VERSION + cd "$srcdir"/$pkgname-$pkgver + echo $pkgver > VERSION } package() { - cd "$srcdir"/sitaramc-gitolite-* - - install -d "$pkgdir"/usr/lib/gitolite || return 1 - install -d "$pkgdir"/usr/bin || return 1 - ./install -to "$pkgdir"/usr/lib/gitolite || return 1 + install -d "$pkgdir"/usr/{bin,lib/gitolite} || return 1 + cp -a "$srcdir"/$pkgname-$pkgver/src/* "$pkgdir"/usr/lib/gitolite || return 1 ln -s /usr/lib/gitolite/gitolite "$pkgdir"/usr/bin/ || return 1 } diff --git a/main/gitolite/gitolite.pre-install b/main/gitolite/gitolite.pre-install index be623d2ab9..79a7a6388a 100644 --- a/main/gitolite/gitolite.pre-install +++ b/main/gitolite/gitolite.pre-install @@ -1,3 +1,3 @@ #!/bin/sh -adduser -H -h /var/git -s /bin/sh -D git 2>/dev/null +adduser -H -h /var/lib/git -s /bin/sh -D git 2>/dev/null exit 0 |