summaryrefslogtreecommitdiffstats
path: root/testing/haproxy/APKBUILD
blob: d6aa86512f250600e5f4f6594982ab2f9f1c3f66 (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
41
# Contributor: Jeff Bilyk <jbilyk@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=haproxy
pkgver=1.5_alpha18
_pkgver=${pkgver/_alpha/-dev}
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 openssl-dev"
install="haproxy.pre-install haproxy.pre-upgrade"
subpackages="$pkgname-doc"
source="http://haproxy.1wt.eu/download/1.5/src/devel/$pkgname-$_pkgver.tar.gz
	haproxy.initd
	haproxy.cfg"

build() {
	cd "$srcdir/$pkgname-$_pkgver"
	make TARGET=linux2628 USE_PCRE=1 USE_OPENSSL=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="39c2cc3ccef059794377d557aef2fa43  haproxy-1.5-dev18.tar.gz
81319456a35408bf47443e9c314d2e94  haproxy.initd
463f00b30bfb002750d5c5549382365f  haproxy.cfg"
sha256sums="b18bf513585d36b9c4c8a74c3c7b4ad5ac6ebe86339d70894a1cdee74071629f  haproxy-1.5-dev18.tar.gz
d0b91b3566768c40cfeb3b304d66728111d9b97d5c149d88589371c1bc4c6ba0  haproxy.initd
7e3c03acb9a41e21e21059da609e694e6dd952d9a37297bd39cad37680af213f  haproxy.cfg"
sha512sums="8e48d8fc97f94aebdb7db6558fdb4507c1c5ba18049accedd1b816813f037c84e05d60ab6b02e303d065efd169d4e5c792febd83642beb7d09e85ad77cb451a4  haproxy-1.5-dev18.tar.gz
cb13279374006b1a6302f865f82defbaa6256aed424fb12da53a9459a1a96c6f9470b8156985a177a13bda4a74e7b0cd448666564f6a59cdeb589537580f4b64  haproxy.initd
89d1366352af9cc7cb338779341d460606e2e3cfe9e4f7d5169af46680accb07035fab9a4bbb87dfbe383bb146e8e4d1e95a29e3d36ff64e97603a317a0b1b78  haproxy.cfg"