PROJECT_MOVED -> https://lab.nexedi.com/nexedi/slapos
[slapos.git] / component / haproxy / buildout.cfg
1 # HAProxy - The Reliable, High Performance TCP/HTTP Load Balancer
2 # http://haproxy.1wt.eu/
3
4 [buildout]
5 extends =
6   ../lua/buildout.cfg
7   ../openssl/buildout.cfg
8   ../pcre/buildout.cfg
9   ../zlib/buildout.cfg
10
11 parts = haproxy
12
13 [haproxy]
14 recipe = slapos.recipe.cmmi
15 url = http://www.haproxy.org/download/1.6/src/haproxy-1.6.1.tar.gz
16 md5sum = 7343def2af8556ebc8972a9748176094
17 configure-command = true
18 # If the system is running on Linux 2.6, we use "linux26" as the TARGET,
19 # otherwise use "generic".
20 # For ARCH value, x86_64 and i[3456]86 are supported.
21 make-options =
22   TARGET="$(uname -sr 2>/dev/null|grep -Eq '^Linux (2\.6\.2[89]|2\.6\.[3-9]|3)' && echo linux2628 || echo generic)"
23   ARCH="$(uname -m 2>/dev/null|grep -E '^(x86_64|i[3456]86)$')"
24   PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
25   USE_DL=1
26   USE_LUA=1
27   LUA_INC=${lua:location}/include
28   LUA_LIB=${lua:location}/lib
29   USE_OPENSSL=1
30   SSL_INC=${openssl:location}/include
31   SSL_LIB=${openssl:location}/lib
32   USE_PCRE=1
33   USE_ZLIB=1
34   ZLIB_INC=${zlib:location}/include
35   ZLIB_LIB=${zlib:location}/lib
36   ADDLIB="-Wl,-rpath=${openssl:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${zlib:location}/lib"
37 environment =
38   PATH=${pcre:location}/bin:%(PATH)s