buildout.cfg 1.74 KB
Newer Older
1 2 3
# HAProxy - The Reliable, High Performance TCP/HTTP Load Balancer
# http://haproxy.1wt.eu/

4
[buildout]
5
extends =
6
  ../lua/buildout.cfg
7
  ../openssl/buildout.cfg
8
  ../pcre/buildout.cfg
9
  ../zlib/buildout.cfg
10

11 12 13
parts = haproxy

[haproxy]
14
recipe = slapos.recipe.cmmi
15
shared = true
Kirill Smelkov's avatar
.  
Kirill Smelkov committed
16 17
url = https://www.haproxy.org/download/2.6/src/haproxy-2.6.15.tar.gz
md5sum = ecac9724e3ca6368624fb2fab29dd366
18
configure-command = true
19
# for Linux kernel 2.6.28 and above, we use "linux-glibc" as the TARGET,
20 21
# otherwise use "generic".
# For ARCH value, x86_64 and i[3456]86 are supported.
22 23 24
# CPU is generic, and not native, as in SlapOS software released are
# distributed in binary form, which may lead to incompatibility of such
# compilation optimisation across various CPUs
25 26 27 28 29 30 31 32 33 34
TARGET="$(uname -sr 2>/dev/null|grep -Eq '^Linux (2\.6\.2[89]|2\.6\.[3-9]|[3-9])' && echo linux-glibc || echo generic)"
CPU=generic
ARCH="$(uname -m 2>/dev/null|grep -E '^(x86_64|i[3456]86)$')"

# By default haproxy is build w/o QUIC support
SSL_INC=${openssl:location}/include
SSL_LIB=${openssl:location}/lib
SSL_ADDLIB=-Wl,-rpath=${openssl:location}/lib
QUIC=

35
make-options =
36 37 38
  TARGET=${:TARGET}
  CPU=${:CPU}
  ARCH=${:ARCH}
39
  PREFIX=@@LOCATION@@
40
  USE_DL=1
41 42 43
  USE_LUA=1
  LUA_INC=${lua:location}/include
  LUA_LIB=${lua:location}/lib
44
  USE_OPENSSL=1
45 46 47
  SSL_INC=${:SSL_INC}
  SSL_LIB=${:SSL_LIB}
  ${:QUIC}
48
  USE_PCRE=1
49 50 51
  USE_ZLIB=1
  ZLIB_INC=${zlib:location}/include
  ZLIB_LIB=${zlib:location}/lib
52
  ADDLIB="${:SSL_ADDLIB} -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${zlib:location}/lib"
53 54
environment =
  PATH=${pcre:location}/bin:%(PATH)s
55 56 57 58 59 60 61 62 63 64

[haproxy-quic]
<= haproxy

SSL_INC=${openssl-quictls:location}/include
SSL_LIB=${openssl-quictls:location}/lib
SSL_ADDLIB=-Wl,-rpath=${openssl-quictls:location}/lib
QUIC=USE_QUIC=1