buildout.cfg 1.22 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 16
url = http://www.haproxy.org/download/1.7/src/haproxy-1.7.2.tar.gz
md5sum = 7330b36f3764ebe409e9305803dc30e2
17 18 19 20 21
configure-command = true
# If the system is running on Linux 2.6, we use "linux26" as the TARGET,
# otherwise use "generic".
# For ARCH value, x86_64 and i[3456]86 are supported.
make-options =
22
  TARGET="$(uname -sr 2>/dev/null|grep -Eq '^Linux (2\.6\.2[89]|2\.6\.[3-9]|[3-9])' && echo linux2628 || echo generic)"
23 24
  ARCH="$(uname -m 2>/dev/null|grep -E '^(x86_64|i[3456]86)$')"
  PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
25
  USE_DL=1
26 27 28
  USE_LUA=1
  LUA_INC=${lua:location}/include
  LUA_LIB=${lua:location}/lib
29 30 31
  USE_OPENSSL=1
  SSL_INC=${openssl:location}/include
  SSL_LIB=${openssl:location}/lib
32
  USE_PCRE=1
33 34 35 36
  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"
37 38
environment =
  PATH=${pcre:location}/bin:%(PATH)s