blob: 747fcefa3f52f0f76d1c7522f6d52a9b37b91d36 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Contributor: Jeff Bilyk <jbilyk@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=haproxy
pkgver=1.6.7
_pkgmajorver=${pkgver%.*}
pkgrel=0
pkgdesc="A TCP/HTTP reverse proxy for high availability environments"
url="http://haproxy.1wt.eu"
arch="all"
license="GPL"
_luaver="5.3"
depends=""
makedepends="pcre-dev openssl-dev linux-headers lua${_luaver}-dev zlib-dev"
install="haproxy.pre-install haproxy.pre-upgrade"
subpackages="$pkgname-doc $pkgname-systemd-wrapper:wrapper"
source="http://haproxy.1wt.eu/download/${_pkgmajorver}/src/$pkgname-$pkgver.tar.gz
haproxy.initd
haproxy.cfg"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
make \
TARGET=linux2628 \
USE_PCRE=1 \
USE_OPENSSL=1 \
USE_ZLIB=1 \
USE_LUA=1 \
LUA_LIB=/usr/lib/lua${_luaver} \
LUA_INC=/usr/include/lua${_luaver} \
CFLAGS="$CFLAGS" \
|| return 1
}
package() {
cd "$builddir"
make install \
DESTDIR="$pkgdir" PREFIX=/usr DOCDIR=/usr/share/doc/haproxy \
|| return 1
install -d \
"$pkgdir"/var/lib/haproxy \
|| return 1
install -D -m 755 \
"$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname \
|| return 1
install -D -m 644 \
"$srcdir"/haproxy.cfg \
"$pkgdir"/etc/haproxy/haproxy.cfg \
|| return 1
install -m 755 \
haproxy-systemd-wrapper \
"$pkgdir"/usr/sbin/ \
|| return 1
}
wrapper() {
pkgdesc="wrapper for restarting haproxy without losing open connections"
mkdir -p "$subpkgdir"/usr/sbin
mv "$pkgdir"/usr/sbin/haproxy-systemd-wrapper \
"$subpkgdir"/usr/sbin/
}
md5sums="a046ed63b00347bd367b983529dd541f haproxy-1.6.7.tar.gz
c2b6a08009c1eaad4ec1f0ae778d1a04 haproxy.initd
6491eaf04478dee07a2b68a70326d07f haproxy.cfg"
sha256sums="583e0c0c3388c0597dea241601f3fedfe1d7ff8c735d471831be67315f58183a haproxy-1.6.7.tar.gz
33a164deedb83eba3a976ad5e299850d7d333d4f08247b51da01ac7f3e10343f haproxy.initd
d1f00a70b79d8ad2507a8b29a0f188877c3d5434c3ec432e46a12141fdafab2a haproxy.cfg"
sha512sums="fba060517aa316c3c66ac709c4b718cba7d265565ce191f8b022410a5c1c34ca8383b18e3ad6b6f8d1d9ee7648768b0bf1cd76ad3de3449144b0529dc16fcd00 haproxy-1.6.7.tar.gz
3ab277bf77fe864ec6c927118dcd70bdec0eb3c54535812d1c3c0995fa66a3ea91a73c342edeb8944caeb097d2dd1a7761099182df44af5e3ef42de6e2176d26 haproxy.initd
26bc8f8ac504fcbaec113ecbb9bb59b9da47dc8834779ebbb2870a8cadf2ee7561b3a811f01e619358a98c6c7768e8fdd90ab447098c05b82e788c8212c4c41f haproxy.cfg"
|