[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-${:version}.tar.xz
version = 2.3.18
md5sum = 844ec9c64aae62051478784b8562f881
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
