diff options
author | Rick Farina <zerochaos@gentoo.org> | 2019-03-22 15:38:50 -0400 |
---|---|---|
committer | Rick Farina <zerochaos@gentoo.org> | 2019-03-22 15:39:06 -0400 |
commit | ef2b4ea4fa229f9b1c92b34ee9dba111a927a7ea (patch) | |
tree | d2cb55ff9fb75b00f9325ce33e9d81b500b4ecf1 /net-wireless | |
parent | net-wireless/wpa_supplicant: update live (diff) | |
download | gentoo-ef2b4ea4fa229f9b1c92b34ee9dba111a927a7ea.tar.gz gentoo-ef2b4ea4fa229f9b1c92b34ee9dba111a927a7ea.tar.bz2 gentoo-ef2b4ea4fa229f9b1c92b34ee9dba111a927a7ea.zip |
net-wireless/wpa_supplicant: simplify ebuild
remove broken gnutls and internal tls implementations. they were never
equivilent to openssl and users don't need broken implementations
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/wpa_supplicant/wpa_supplicant-9999.ebuild | 90 |
1 files changed, 25 insertions, 65 deletions
diff --git a/net-wireless/wpa_supplicant/wpa_supplicant-9999.ebuild b/net-wireless/wpa_supplicant/wpa_supplicant-9999.ebuild index 8a81bc1b5d49..487ffc5b6118 100644 --- a/net-wireless/wpa_supplicant/wpa_supplicant-9999.ebuild +++ b/net-wireless/wpa_supplicant/wpa_supplicant-9999.ebuild @@ -18,8 +18,7 @@ else fi SLOT="0" -IUSE="ap bindist dbus eap-sim eapol_test fasteap gnutls +hs2-0 libressl macsec p2p privsep ps3 qt5 readline selinux smartcard ssl suiteb tdls uncommon-eap-types wimax wps kernel_linux kernel_FreeBSD" -REQUIRED_USE="smartcard? ( ssl )" +IUSE="ap bindist dbus eap-sim eapol_test fasteap +hs2-0 libressl macsec p2p privsep ps3 qt5 readline selinux smartcard suiteb tdls uncommon-eap-types wimax wps kernel_linux kernel_FreeBSD" CDEPEND="dbus? ( sys-apps/dbus ) kernel_linux? ( @@ -38,17 +37,8 @@ CDEPEND="dbus? ( sys-apps/dbus ) sys-libs/ncurses:0= sys-libs/readline:0= ) - ssl? ( - gnutls? ( - dev-libs/libgcrypt:0= - net-libs/gnutls:= - ) - !gnutls? ( - !libressl? ( >=dev-libs/openssl-1.0.2k:0=[bindist=] ) - libressl? ( dev-libs/libressl:0= ) - ) - ) - !ssl? ( dev-libs/libtommath ) + !libressl? ( >=dev-libs/openssl-1.0.2k:0=[bindist=] ) + libressl? ( dev-libs/libressl:0= ) " DEPEND="${CDEPEND} virtual/pkgconfig @@ -87,16 +77,6 @@ Kconfig_style_config() { fi } -pkg_setup() { - if use ssl ; then - if use gnutls && use libressl ; then - elog "You have both 'gnutls' and 'libressl' USE flags enabled: defaulting to USE=\"libressl\"" - fi - else - elog "You have 'ssl' USE flag disabled: defaulting to internal TLS implementation" - fi -} - src_prepare() { default @@ -182,13 +162,6 @@ src_configure() { Kconfig_style_config BGSCAN_SIMPLE Kconfig_style_config BGSCAN_LEARN - if use macsec ; then - #requires something, no idea what - #Kconfig_style_config DRIVER_MACSEC_QCA - Kconfig_style_config DRIVER_MACSEC_LINUX - Kconfig_style_config MACSEC - fi - if use dbus ; then Kconfig_style_config CTRL_IFACE_DBUS Kconfig_style_config CTRL_IFACE_DBUS_NEW @@ -240,39 +213,19 @@ src_configure() { Kconfig_style_config SUITEB fi - # SSL authentication methods - if use ssl ; then - if use gnutls ; then - Kconfig_style_config TLS gnutls - Kconfig_style_config GNUTLS_EXTRA - Kconfig_style_config EAP_PWD n - Kconfig_style_config SAE n - Kconfig_style_config DPP n - else - #this fails for gnutls - Kconfig_style_config SUITEB192 - Kconfig_style_config TLS openssl - Kconfig_style_config FST - if ! use bindist; then - #this fails for gnutls - Kconfig_style_config EAP_PWD - Kconfig_style_config FILS - Kconfig_style_config FILS_SK_PFS - # SAE fails on gnutls and everything below here needs SAE - # Enabling mesh networks. - Kconfig_style_config MESH - #WPA3 - Kconfig_style_config OWE - Kconfig_style_config SAE - Kconfig_style_config DPP - fi - - fi - else - Kconfig_style_config TLS internal - Kconfig_style_config EAP_PWD n - Kconfig_style_config SAE n - Kconfig_style_config DPP n + Kconfig_style_config SUITEB192 + Kconfig_style_config TLS openssl + Kconfig_style_config FST + if ! use bindist; then + Kconfig_style_config EAP_PWD + Kconfig_style_config FILS + Kconfig_style_config FILS_SK_PFS + # Enabling mesh networks. + Kconfig_style_config MESH + #WPA3 + Kconfig_style_config OWE + Kconfig_style_config SAE + Kconfig_style_config DPP fi if use smartcard ; then @@ -293,6 +246,13 @@ src_configure() { Kconfig_style_config DRIVER_WEXT Kconfig_style_config DRIVER_WIRED + if use macsec ; then + #requires something, no idea what + #Kconfig_style_config DRIVER_MACSEC_QCA + Kconfig_style_config DRIVER_MACSEC_LINUX + Kconfig_style_config MACSEC + fi + if use ps3 ; then Kconfig_style_config DRIVER_PS3 fi @@ -449,9 +409,9 @@ pkg_postinst() { ewarn "needs to be moved to ${EROOT%/}/etc/wpa_supplicant/wpa_supplicant.conf" fi - if use bindist || use gnutls; then + if use bindist; then if ! use libressl; then - ewarn "Using bindist or gnutls use flags presently breaks WPA3 (specifically SAE, OWE, DPP, and FILS)." + ewarn "Using bindist use flags presently breaks WPA3 (specifically SAE, OWE, DPP, and FILS)." ewarn "This is incredibly undesirable" fi fi |