summaryrefslogtreecommitdiffstats
path: root/main/haproxy/APKBUILD
blob: 83aa4d0c3de8386a8386d66d13a1e42ac4f665ae (plain)
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
34
35
36
37
38
39
40
# Contributor: Jeff Bilyk <jbilyk@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=haproxy
pkgver=1.4.24
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="haproxy.pre-install haproxy.pre-upgrade"
subpackages="$pkgname-doc"
source="http://haproxy.1wt.eu/download/${pkgver%.*}/src/$pkgname-$pkgver.tar.gz
	haproxy.initd
	haproxy.cfg"

build() {
	cd "$srcdir/$pkgname-$pkgver"
	make TARGET=linux2628 USE_PCRE=1 CFLAGS="$CFLAGS" || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" PREFIX=/usr DOCDIR=/usr/share/doc/haproxy \
		install
	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
}

md5sums="86422620faa9759907563d5e0524b98c  haproxy-1.4.24.tar.gz
81319456a35408bf47443e9c314d2e94  haproxy.initd
1f337186b0e1ba5ee82760cb437fb810  haproxy.cfg"
sha256sums="680928f4d001be3b59b69d4501f41aeea69e7e56bf183fa032ad6144cf97c7ef  haproxy-1.4.24.tar.gz
d0b91b3566768c40cfeb3b304d66728111d9b97d5c149d88589371c1bc4c6ba0  haproxy.initd
f4bd999341356641fa8520e8ffc4dc6f2c39d93b00d50590745406e9482ecfed  haproxy.cfg"
sha512sums="73371b2c7d22967373e551dbac6831e4c86d63430f9ffc01c5f0e73cd1c902ce04049abf691a08bbcce77aeefff78ea67411f892584d5a85e0387ab108b13806  haproxy-1.4.24.tar.gz
cb13279374006b1a6302f865f82defbaa6256aed424fb12da53a9459a1a96c6f9470b8156985a177a13bda4a74e7b0cd448666564f6a59cdeb589537580f4b64  haproxy.initd
f11f70b2e45279090783cf1959e26dff7f2d055c052680aea89c2a4c93acdd0f5e39dea7673d811c9209510f26ec413114ec54811cc2a8bdc82dff8a6282e327  haproxy.cfg"