version up : libtool 2.4.3.
[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   ../openssl/buildout.cfg
7   ../pcre/buildout.cfg
8   ../zlib/buildout.cfg
9
10 parts = haproxy
11
12 [haproxy]
13 recipe = slapos.recipe.cmmi
14 url = http://www.haproxy.org/download/1.5/src/haproxy-1.5.8.tar.gz
15 md5sum = 7bffa1afa069d90ce03b7cd9aa0557cd
16 configure-command = true
17 # If the system is running on Linux 2.6, we use "linux26" as the TARGET,
18 # otherwise use "generic".
19 # For ARCH value, x86_64 and i[3456]86 are supported.
20 make-options =
21   TARGET="$(uname -sr 2>/dev/null|grep -Eq '^Linux (2\.6\.2[89]|2\.6\.[3-9]|3)' && echo linux2628 || echo generic)"
22   ARCH="$(uname -m 2>/dev/null|grep -E '^(x86_64|i[3456]86)$')"
23   PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
24   USE_OPENSSL=1
25   SSL_INC=${openssl:location}/include
26   SSL_LIB=${openssl:location}/lib
27   USE_PCRE=1
28   USE_ZLIB=1
29   ZLIB_INC=${zlib:location}/include
30   ZLIB_LIB=${zlib:location}/lib
31   ADDLIB="-Wl,-rpath=${openssl:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${zlib:location}/lib"
32 environment =
33   PATH=${pcre:location}/bin:%(PATH)s