[buildout]
extends =
  ../lzo/buildout.cfg
  ../openssl/buildout.cfg
  ../flex/buildout.cfg
  ../xz-utils/buildout.cfg

parts =
  openvpn

[openvpn]
recipe = slapos.recipe.cmmi
url = https://swupdate.openvpn.org/community/releases/openvpn-2.3.12.tar.xz
md5sum = 63326bab2ebb9efe3c7becaa4f15e1c1
configure-options =
  --disable-dependency-tracking
  --disable-plugin-auth-pam
environment =
  PATH=${xz-utils:location}/bin:%(PATH)s
  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
