diff options
Diffstat (limited to 'main/haproxy/APKBUILD')
-rw-r--r-- | main/haproxy/APKBUILD | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/main/haproxy/APKBUILD b/main/haproxy/APKBUILD index 1889a5930f..2b7f820cf6 100644 --- a/main/haproxy/APKBUILD +++ b/main/haproxy/APKBUILD @@ -2,17 +2,18 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=haproxy pkgver=1.4.22 -pkgrel=0 +pkgrel=1 pkgdesc="A TCP/HTTP reverse proxy for high availability environments" url="http://haproxy.1wt.eu" arch="all" license="GPL" depends="" makedepends="pcre-dev" -install= +install="haproxy.pre-install haproxy.pre-upgrade" subpackages="$pkgname-doc" -source="http://haproxy.1wt.eu/download/1.4/src/$pkgname-$pkgver.tar.gz - haproxy.initd" +source="http://haproxy.1wt.eu/download/${pkgver%.*}/src/$pkgname-$pkgver.tar.gz + haproxy.initd + haproxy.cfg" build() { cd "$srcdir/$pkgname-$pkgver" @@ -23,8 +24,11 @@ package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" PREFIX=/usr DOCDIR=/usr/share/doc/haproxy \ install + install -d "$pkgdir"/usr/share/haproxy install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + install -m644 -D "$srcdir"/haproxy.cfg "$pkgdir"/etc/haproxy/haproxy.cfg } md5sums="a0b007c76f6a78524f3b3dd5e704979c haproxy-1.4.22.tar.gz -0891c7f7b98899b7e7bf767ae92b652e haproxy.initd" +81319456a35408bf47443e9c314d2e94 haproxy.initd +f043f27db8081ee135fb452920405c51 haproxy.cfg" |