buildout.cfg 1.39 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
16 17
url = http://www.haproxy.org/download/2.0/src/haproxy-2.0.17.tar.gz
md5sum = 786a967c73cc1455c938d42fbe333bfe
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
make-options =
26
  TARGET="$(uname -sr 2>/dev/null|grep -Eq '^Linux (2\.6\.2[89]|2\.6\.[3-9]|[3-9])' && echo linux-glibc || echo generic)"
27
  CPU=generic
28
  ARCH="$(uname -m 2>/dev/null|grep -E '^(x86_64|i[3456]86)$')"
29
  PREFIX=@@LOCATION@@
30
  USE_DL=1
31 32 33
  USE_LUA=1
  LUA_INC=${lua:location}/include
  LUA_LIB=${lua:location}/lib
34 35 36
  USE_OPENSSL=1
  SSL_INC=${openssl:location}/include
  SSL_LIB=${openssl:location}/lib
37
  USE_PCRE=1
38 39 40 41
  USE_ZLIB=1
  ZLIB_INC=${zlib:location}/include
  ZLIB_LIB=${zlib:location}/lib
  ADDLIB="-Wl,-rpath=${openssl:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${zlib:location}/lib"
42 43
environment =
  PATH=${pcre:location}/bin:%(PATH)s