aboutsummaryrefslogtreecommitdiffstats
path: root/main/gitolite/APKBUILD
blob: 9bd61986cade6b0ad5a2c5d896fb7e88a06ae18f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer:	Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
pkgname=gitolite
pkgver=3.6.11
pkgrel=0
pkgdesc="Centralized git server, with very fine-grained access control and many powerful features"
url="https://github.com/sitaramc/gitolite"
arch="noarch"
license="GPL-2.0-only"
depends="git perl"
install=$pkgname.pre-install
pkgusers="git"
pkggroups="git"
source="$pkgname-$pkgver.tar.gz::https://github.com/sitaramc/gitolite/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

# secfixes:
#   3.6.11-r0:
#   - CVE-2018-20683

package() {
	install -d "$pkgdir"/usr/bin
	install -d "$pkgdir"/usr/lib/gitolite

	cd "$builddir"
	./install -to "$pkgdir"/usr/lib/gitolite
	echo $pkgver > "$pkgdir"/usr/lib/gitolite/VERSION
	ln -s /usr/lib/gitolite/gitolite "$pkgdir"/usr/bin/
	install -o git -g git -d -m 700 "$pkgdir"/var/lib/git
}

sha512sums="7c11b3dfde9ecf9ef66185aab175d78302c42cc24f13e3e855fa27ffaee65b5887bdd7f96b00b6eed944b91af2b86993b284d1a09fe5a5a3cce82acd33631212  gitolite-3.6.11.tar.gz"