aboutsummaryrefslogtreecommitdiffstats
path: root/main/haproxy/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-08-24 09:35:56 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-08-16 12:50:06 +0000
commitef4d70929c7b687a7b974e9ae438f6b8a164f16f (patch)
tree6041f94bf7a848bc2f26bf98f021ecf3456cab55 /main/haproxy/APKBUILD
parent4bbb93d659452066ebe032015d4ccdbbc9f57abb (diff)
downloadaports-ef4d70929c7b687a7b974e9ae438f6b8a164f16f.tar.gz
aports-ef4d70929c7b687a7b974e9ae438f6b8a164f16f.tar.bz2
aports-ef4d70929c7b687a7b974e9ae438f6b8a164f16f.tar.xz
main/haproxy: move default config location
- move default config location to /etc/haproxy/ - provide install/upgrade script that moves existing config to new location - provide dummy config - create haproxy user and group
Diffstat (limited to 'main/haproxy/APKBUILD')
-rw-r--r--main/haproxy/APKBUILD14
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"