blob: e14c4e7c9831f48c07b2cbc37719c310c93d6efd (
plain)
1 # Description: The Reliable, High Performance TCP/HTTP Load Balancer
2 # URL: https://www.haproxy.org/
3 # Maintainer: Aaron Ball, nullspoon at oper dot io
4 # Depends on: lua
5
6 name=haproxy
7 version=2.9.7
8 release=1
9 source=(
10 https://www.haproxy.org/download/${version%.*}/src/${name}-${version}.tar.gz
11 haproxy.init
12 )
13
14 build () {
15 cd ${name}-${version}
16
17 make CPU=generic TARGET=linux-glibc \
18 PREFIX=/usr \
19 USE_GETADDRINFO=1 \
20 USE_OPENSSL=1 \
21 USE_PCRE=1 USE_PCRE_JIT=1 \
22 USE_ZLIB=1 \
23 USE_LUA=1
24
25 make PREFIX=/usr DESTDIR=$PKG install
26
27 # Cleanup
28 rm -r ${PKG}/usr/doc
29
30 # Install the init script
31 install -D -m 755 ${SRC}/haproxy.init ${PKG}/etc/rc.d/haproxy
32 }
33
34 # vim: set ft=sh ts=2 et:
|