[buildout]
extends =
  ../lzo/buildout.cfg
  ../openssl/buildout.cfg
  ../flex/buildout.cfg

parts =
  openvpn

[openvpn]
recipe = slapos.recipe.cmmi
url = http://swupdate.openvpn.org/community/releases/openvpn-2.3.8.tar.xz
md5sum = acc5ea4b08ad53173784520acbd4e9c3
configure-options =
  --disable-plugin-auth-pam
  --enable-static
environment =
  LZO_LIBS=-L${lzo:location}/lib -llzo2
  LZO_CFLAGS=-I${lzo:location}/include
  OPENSSL_SSL_LIBS="-L${openssl:location}/lib -lssl" 
  OPENSSL_SSL_CFLAGS="-I${openssl:location}/include/" 
  OPENSSL_CRYPTO_LIBS="-L${openssl:location}/lib -lcrypto" 
  OPENSSL_CRYPTO_CFLAGS="-I${openssl:location}/include"
  LDFLAGS =-Wl,-rpath=${lzo:location}/lib -Wl,-rpath=${flex:location}/lib -Wl,-rpath=${openssl:location}/lib
  CPPFLAGS=-I${lzo:location}/include -I${flex:location}/include
