aboutsummaryrefslogtreecommitdiffstats
path: root/main/haproxy
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2013-12-21 21:37:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-03-03 13:03:40 +0000
commit9cac748633215685bf221fdea156d15529e67e71 (patch)
tree61c35d042afada5b3b49cb8c8dccfc98779093f7 /main/haproxy
parent36b3b7df12a38987a54799e467ab1ed585dbbd15 (diff)
downloadaports-9cac748633215685bf221fdea156d15529e67e71.tar.bz2
aports-9cac748633215685bf221fdea156d15529e67e71.tar.xz
main/haproxy: specify license
Diffstat (limited to 'main/haproxy')
-rw-r--r--main/haproxy/APKBUILD11
1 files changed, 6 insertions, 5 deletions
diff --git a/main/haproxy/APKBUILD b/main/haproxy/APKBUILD
index 21f0fd9d1e..b759a1faec 100644
--- a/main/haproxy/APKBUILD
+++ b/main/haproxy/APKBUILD
@@ -2,11 +2,11 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=haproxy
pkgver=1.4.24
-pkgrel=2
+pkgrel=3
pkgdesc="A TCP/HTTP reverse proxy for high availability environments"
url="http://haproxy.1wt.eu"
arch="all"
-license="GPL"
+license="GPL2+"
depends=""
makedepends="pcre-dev"
install="haproxy.pre-install haproxy.pre-upgrade"
@@ -15,15 +15,16 @@ source="http://haproxy.1wt.eu/download/${pkgver%.*}/src/$pkgname-$pkgver.tar.gz
haproxy.initd
haproxy.cfg"
+_builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$_builddir"
make TARGET=linux2628 USE_PCRE=1 CFLAGS="$CFLAGS" || return 1
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$_builddir"
make DESTDIR="$pkgdir" PREFIX=/usr DOCDIR=/usr/share/doc/haproxy \
- install
+ install || return 1
install -d "$pkgdir"/var/lib/haproxy
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/haproxy.cfg "$pkgdir"/etc/haproxy/haproxy.cfg