aboutsummaryrefslogtreecommitdiffstats
path: root/main/haproxy/APKBUILD
blob: 77c03410485325a9887348d8cf4864f9338d2595 (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.4.25
pkgrel=0
pkgdesc="A TCP/HTTP reverse proxy for high availability environments"
url="http://haproxy.1wt.eu"
arch="all"
license="GPL2+"
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"

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

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

md5sums="74b5ec1f0f9b4d148c8083bcfb512ccd  haproxy-1.4.25.tar.gz
81319456a35408bf47443e9c314d2e94  haproxy.initd
1f337186b0e1ba5ee82760cb437fb810  haproxy.cfg"
sha256sums="84408ec1e37bf308c6b45ae3c7e66f2a9d2f762cb689ab6d322c67bba691db62  haproxy-1.4.25.tar.gz
d0b91b3566768c40cfeb3b304d66728111d9b97d5c149d88589371c1bc4c6ba0  haproxy.initd
f4bd999341356641fa8520e8ffc4dc6f2c39d93b00d50590745406e9482ecfed  haproxy.cfg"
sha512sums="c3424151309be5eea761ff02b29a0e54bd34f5fcb4087e8b99fb2f4cde17bbc3caf07b6cb41ae5a2606325f8a950a06c4683ceb04c05fd6ebf0177326030bca9  haproxy-1.4.25.tar.gz
cb13279374006b1a6302f865f82defbaa6256aed424fb12da53a9459a1a96c6f9470b8156985a177a13bda4a74e7b0cd448666564f6a59cdeb589537580f4b64  haproxy.initd
f11f70b2e45279090783cf1959e26dff7f2d055c052680aea89c2a4c93acdd0f5e39dea7673d811c9209510f26ec413114ec54811cc2a8bdc82dff8a6282e327  haproxy.cfg"