diff options
author | William Hubbs <williamh@gentoo.org> | 2020-04-26 22:16:18 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2020-04-26 22:17:49 -0500 |
commit | 30f1e199eff80a08bc75f7a11a969dc6134bdd88 (patch) | |
tree | 06947425846077c85ef7e602c7d8b722103e5d3d /net-vpn | |
parent | sys-fs/zfs: update live ebuild (diff) | |
download | gentoo-30f1e199eff80a08bc75f7a11a969dc6134bdd88.tar.gz gentoo-30f1e199eff80a08bc75f7a11a969dc6134bdd88.tar.bz2 gentoo-30f1e199eff80a08bc75f7a11a969dc6134bdd88.zip |
fix build failures
Closes: https://bugs.gentoo.org/704070
Closes: https://bugs.gentoo.org/719716
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'net-vpn')
-rw-r--r-- | net-vpn/openvpn/openvpn-2.4.9.ebuild | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/net-vpn/openvpn/openvpn-2.4.9.ebuild b/net-vpn/openvpn/openvpn-2.4.9.ebuild index 684a4871fe82..ab73cf1183cf 100644 --- a/net-vpn/openvpn/openvpn-2.4.9.ebuild +++ b/net-vpn/openvpn/openvpn-2.4.9.ebuild @@ -61,22 +61,34 @@ src_prepare() { } src_configure() { + local myeconfargs=( + $(use_enable inotify async-push) + $(use_enable ssl crypto) + ) + if use ssl; then + myeconfargs+=( + $(use_with ssl crypto-library $(usex mbedtls mbedtls openssl)) + ) + if use libressl || ! use mbedtls; then + myeconfargs+=( + $(use_enable pkcs11) + ) + fi + fi + myeconfargs+=( + $(use_enable lz4) + $(use_enable lzo) + $(use_enable plugins) + $(use_enable iproute2) + $(use_enable pam plugin-auth-pam) + $(use_enable down-root plugin-down-root) + $(use_enable systemd) + ) SYSTEMD_UNIT_DIR=$(systemd_get_systemunitdir) \ TMPFILES_DIR="/usr/lib/tmpfiles.d" \ IFCONFIG=/bin/ifconfig \ ROUTE=/bin/route \ - econf \ - $(use_enable inotify async-push) \ - $(use_enable ssl crypto) \ - $(use_with ssl crypto-library $(usex mbedtls mbedtls openssl)) \ - $(use_enable lz4) \ - $(use_enable lzo) \ - $(use_enable pkcs11) \ - $(use_enable plugins) \ - $(use_enable iproute2) \ - $(use_enable pam plugin-auth-pam) \ - $(use_enable down-root plugin-down-root) \ - $(use_enable systemd) + econf "${myeconfargs[@]}" } src_test() { |