# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup github 1.0 PortGroup cmake 1.1 PortGroup legacysupport 1.1 github.setup OpenVPN openvpn3 3.8.5 release/ revision 0 categories net security maintainers {i0ntempest @i0ntempest} openmaintainer license AGPL-3 description easy-to-use, robust, and highly configurable VPN long_description \ OpenVPN is an easy-to-use, robust, and highly configurable VPN (Virtual \ Private Network) daemon which can be used to securely link two or more \ private networks using an encrypted tunnel over the internet. homepage https://openvpn.net checksums rmd160 09d5c42377592b3238bf2ce7c2394086ffea8664 \ sha256 e00f8429c274844256c983c17c1ef891e555d54e617b62454524b4d6fceed673 \ size 2168826 depends_build-append \ port:asio \ port:jsoncpp \ port:xxhashlib depends_lib-append port:lz4 \ port:jsoncpp compiler.cxx_standard \ 2017 # error: 'filesystem' file not found legacysupport.newest_darwin_requires_legacy \ 18 legacysupport.use_mp_libcxx \ yes variant openssl conflicts mbedtls openssl11 description "Use latest OpenSSL as the crypto library" { PortGroup openssl 1.0 configure.args-append \ -DOPENSSL_CRYPTO_LIBRARY=[openssl::lib_dir]/libcrypto.dylib \ -DOPENSSL_SSL_LIBRARY=[openssl::lib_dir]/libssl.dylib \ -DOPENSSL_INCLUDE_DIR=[openssl::include_dir] } variant openssl11 conflicts mbedtls openssl description "Use OpenSSL v1.1 as the crypto library" { PortGroup openssl 1.0 openssl.branch 1.1 configure.args-append \ -DOPENSSL_CRYPTO_LIBRARY=[openssl::lib_dir]/libcrypto.dylib \ -DOPENSSL_SSL_LIBRARY=[openssl::lib_dir]/libssl.dylib \ -DOPENSSL_INCLUDE_DIR=[openssl::include_dir] } variant mbedtls conflicts openssl openssl11 description "Use mbedTLS as the crypto library" { configure.args-append \ -DUSE_MBEDTLS=ON depends_lib-append port:mbedtls } variant nulltun description "Build an additional client binary with null tun" { configure.args-append -DCLI_NULLTUN=1 } if {![variant_isset mbedtls] && ![variant_isset openssl11]} { default_variants +openssl } default_variants +nulltun destroot { xinstall -m 0755 {*}[glob ${cmake.build_dir}/test/ovpncli/ovpncli*] ${destroot}${prefix}/sbin } notes " OpenVPN 3 does not currently implement server functionality. "