[buildout]
extra-paths =
extensions =
extends-cache = extends-cache
download-cache = download-cache
extends =
  ../flex/buildout.cfg
  ../libnsl/buildout.cfg
  ../lz4/buildout.cfg
  ../lzo/buildout.cfg
  ../openssl/buildout.cfg
  ../xz-utils/buildout.cfg

parts =
  openvpn
[versions]
# The last version of setuptools compatible with Python 3.7
setuptools = 67.8.0
# Use SlapOS patched zc.buildout
zc.buildout = 3.0.1+slapos004
pip = 23.2.1
# Use SlapOS patched zc.recipe.egg (zc.recipe.egg 2.x is for Buildout 2)
zc.recipe.egg = 2.0.8.dev0+slapos002
wheel = 0.41.2:whl

slapos.libnetworkcache = 0.25


[openvpn]
recipe = slapos.recipe.cmmi
url = https://swupdate.openvpn.org/community/releases/openvpn-${:version}.tar.xz
version = 2.4.7
md5sum = 4ad8a008e1e7f261b3aa0024e79e7fb7
configure-options =
  --disable-dependency-tracking
  --disable-plugin-auth-pam
  --enable-iproute2
environment =
  PATH=${xz-utils:location}/bin:%(PATH)s
  OPENSSL_LIBS=-L${openssl-1.1:location}/lib -lcrypto -lssl
  OPENSSL_CFLAGS=-I${openssl-1.1:location}/include
  LDFLAGS=-L${lz4:location}/lib -Wl,-rpath=${lz4:location}/lib -L${lzo:location}/lib -Wl,-rpath=${lzo:location}/lib -Wl,-rpath=${flex:location}/lib -Wl,-rpath=${openssl-1.1:location}/lib -L${libnsl:location}/lib -Wl,-rpath=${libnsl:location}/lib
  CPPFLAGS=-I${lz4:location}/include -I${lzo:location}/include -I${flex:location}/include -I${libnsl:location}/include
