[buildout]
extends = openssl.cfg

parts =
  stunnel

[stunnel]
<= stunnel-4
recipe = hexagonit.recipe.cmmi

[stunnel-4-hook-download]
recipe = hexagonit.recipe.download
url = http://www.nexedi.org/static/buildout-hooks/stunnel-4-hooks.py-r39611
md5sum = 5b099b386c34c5b8d0664c0292ba322a
download-only=true
filename = stunnel-4-hooks.py

[stunnel-4]
recipe = hexagonit.recipe.cmmi
url = ftp://ftp.stunnel.org/stunnel/stunnel-4.36.tar.gz
md5sum = 600a09b03798424842b24548ca1e4235
pre-configure-hook = ${stunnel-4-hook-download:location}/${stunnel-4-hook-download:filename}:pre_configure_hook
configure-options =
  --enable-ipv6
  --disable-libwrap
  --with-ssl=${openssl:location}
environment =
  CPPFLAGS=-I${zlib:location}/include
  LDFLAGS=-Wl,-rpath -Wl,${openssl:location}/lib -L${zlib:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib