summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Utkin <andrey_utkin@gentoo.org>2020-04-21 23:01:28 +0100
committerAndrey Utkin <andrey_utkin@gentoo.org>2020-04-21 23:17:33 +0100
commitf24ef74b43a105f8b0ac8377db6526d4a05c2a36 (patch)
treec642b76f0e7e45f70e2008098888fd448ff41142 /net-wireless
parentmedia-libs/xvid: [QA] Do not install static library (diff)
downloadgentoo-f24ef74b43a105f8b0ac8377db6526d4a05c2a36.tar.gz
gentoo-f24ef74b43a105f8b0ac8377db6526d4a05c2a36.tar.bz2
gentoo-f24ef74b43a105f8b0ac8377db6526d4a05c2a36.zip
net-wireless/hostapd: make USE flag for Suite B
Suite B functionality in hostapd uses OpenSSL feature unavailable in LibreSSL. So, enabling that functionality conflicts with using LibreSSL. Before hostapd-2.9-r2 ebuild, Suite B was disabled. hostapd-2.9-r2 ebuild has enablied Suite B was unconditionally. This commit enables it based on suiteb USE flag, which is enabled by default, and which is declared conflicting with libressl USE flag. Bug: https://bugs.gentoo.org/710992 Package-Manager: Portage-2.3.66, Repoman-2.3.16 Signed-off-by: Andrey Utkin <andrey_utkin@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/hostapd/hostapd-2.9-r2.ebuild12
-rw-r--r--net-wireless/hostapd/hostapd-9999.ebuild12
-rw-r--r--net-wireless/hostapd/metadata.xml1
3 files changed, 19 insertions, 6 deletions
diff --git a/net-wireless/hostapd/hostapd-2.9-r2.ebuild b/net-wireless/hostapd/hostapd-2.9-r2.ebuild
index 365c114a0165..e14a5f1ff72a 100644
--- a/net-wireless/hostapd/hostapd-2.9-r2.ebuild
+++ b/net-wireless/hostapd/hostapd-2.9-r2.ebuild
@@ -26,7 +26,10 @@ fi
LICENSE="BSD"
SLOT="0"
-IUSE="internal-tls ipv6 libressl logwatch netlink sqlite +wps +crda"
+IUSE="internal-tls ipv6 libressl logwatch netlink sqlite +suiteb +wps +crda"
+
+# suiteb impl uses openssl feature not available in libressl, see bug 710992
+REQUIRED_USE="?? ( libressl suiteb )"
DEPEND="
libressl? ( dev-libs/libressl:0= )
@@ -95,8 +98,11 @@ src_configure() {
echo "CONFIG_SAE=y" >> ${CONFIG}
echo "CONFIG_OWE=y" >> ${CONFIG}
echo "CONFIG_DPP=y" >> ${CONFIG}
- echo "CONFIG_SUITEB=y" >> ${CONFIG}
- echo "CONFIG_SUITEB192=y" >> ${CONFIG}
+
+ if use suiteb; then
+ echo "CONFIG_SUITEB=y" >> ${CONFIG}
+ echo "CONFIG_SUITEB192=y" >> ${CONFIG}
+ fi
if use internal-tls && ! use libressl; then
echo "CONFIG_TLS=internal" >> ${CONFIG}
diff --git a/net-wireless/hostapd/hostapd-9999.ebuild b/net-wireless/hostapd/hostapd-9999.ebuild
index 6ab779890926..06ae239217e1 100644
--- a/net-wireless/hostapd/hostapd-9999.ebuild
+++ b/net-wireless/hostapd/hostapd-9999.ebuild
@@ -26,7 +26,10 @@ fi
LICENSE="BSD"
SLOT="0"
-IUSE="internal-tls ipv6 libressl logwatch netlink sqlite +wps +crda"
+IUSE="internal-tls ipv6 libressl logwatch netlink sqlite +suiteb +wps +crda"
+
+# suiteb impl uses openssl feature not available in libressl, see bug 710992
+REQUIRED_USE="?? ( libressl suiteb )"
DEPEND="
libressl? ( dev-libs/libressl:0= )
@@ -93,8 +96,11 @@ src_configure() {
echo "CONFIG_SAE=y" >> ${CONFIG}
echo "CONFIG_OWE=y" >> ${CONFIG}
echo "CONFIG_DPP=y" >> ${CONFIG}
- echo "CONFIG_SUITEB=y" >> ${CONFIG}
- echo "CONFIG_SUITEB192=y" >> ${CONFIG}
+
+ if use suiteb; then
+ echo "CONFIG_SUITEB=y" >> ${CONFIG}
+ echo "CONFIG_SUITEB192=y" >> ${CONFIG}
+ fi
if use internal-tls && ! use libressl; then
echo "CONFIG_TLS=internal" >> ${CONFIG}
diff --git a/net-wireless/hostapd/metadata.xml b/net-wireless/hostapd/metadata.xml
index b06f07f2352a..444076ebea2c 100644
--- a/net-wireless/hostapd/metadata.xml
+++ b/net-wireless/hostapd/metadata.xml
@@ -12,6 +12,7 @@
<flag name="logwatch">Install support files for
<pkg>sys-apps/logwatch</pkg></flag>
<flag name="netlink">Adding support for using netlink to create VLANs</flag>
+ <flag name="suiteb">Adding support for NSA Suite B Cryptography</flag>
<flag name="wps">Add support for Wi-Fi Protected Setup</flag>
</use>
<maintainer type="person">