[buildout]
parts =
  openldap
extends =
  ../software-profiles/libdb.cfg
  ../software-profiles/openssl.cfg
  ../software-profiles/cyrus-sasl.cfg

[openldap]
recipe = hexagonit.recipe.cmmi
url = ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.23.tgz
md5sum = 90150b8c0d0192e10b30157e68844ddf
configure-options =
  --disable-slapd
  --enable-backends=no
  --enable-overlays=no
  --with-cyrus-sasl
  --without-fetch
  --disable-rewrite
  --disable-odbc
  --with-threads
  --with-tls=openssl

environment =
  CPPFLAGS=-I${libdb:location}/include -I${openssl:location}/include -I${cyrus-sasl:location}/include
  LDFLAGS=-L${libdb:location}/lib -Wl,-rpath -Wl,${libdb:location}/lib -L${openssl:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib -L${cyrus-sasl:location}/lib -Wl,-rpath -Wl,${cyrus-sasl:location}/lib