Gentoo Archives: gentoo-commits

From: Quentin Retornaz <gentoo@××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/libressl:master commit in: net-wireless/hostapd/
Date: Mon, 03 May 2021 00:07:17
Message-Id: 1619999761.6aad0c80f854a56147acceb4574d7f5f85cbd12b.quentin@gentoo
1 commit: 6aad0c80f854a56147acceb4574d7f5f85cbd12b
2 Author: Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
3 AuthorDate: Sun May 2 23:56:01 2021 +0000
4 Commit: Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
5 CommitDate: Sun May 2 23:56:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=6aad0c80
7
8 net-wireless/hostapd: remove libressl USE flag
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>
12
13 net-wireless/hostapd/hostapd-2.6.ebuild | 9 ++---
14 net-wireless/hostapd/hostapd-2.9-r3.ebuild | 64 ++++++++----------------------
15 net-wireless/hostapd/metadata.xml | 2 -
16 3 files changed, 20 insertions(+), 55 deletions(-)
17
18 diff --git a/net-wireless/hostapd/hostapd-2.6.ebuild b/net-wireless/hostapd/hostapd-2.6.ebuild
19 index 68f116a..d85b6d4 100644
20 --- a/net-wireless/hostapd/hostapd-2.6.ebuild
21 +++ b/net-wireless/hostapd/hostapd-2.6.ebuild
22 @@ -1,4 +1,4 @@
23 -# Copyright 1999-2017 Gentoo Foundation
24 +# Copyright 1999-2021 Gentoo Authors
25 # Distributed under the terms of the GNU General Public License v2
26
27 EAPI="6"
28 @@ -14,12 +14,9 @@ SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz"
29 LICENSE="|| ( GPL-2 BSD )"
30 SLOT="0"
31 KEYWORDS="amd64 ~arm ~mips ppc x86"
32 -IUSE="ipv6 libressl logwatch netlink sqlite +ssl +wps +crda"
33 +IUSE="ipv6 logwatch netlink sqlite +ssl +wps +crda"
34
35 -DEPEND="ssl? (
36 - !libressl? ( dev-libs/openssl:*[-bindist] )
37 - libressl? ( dev-libs/libressl:= )
38 - )
39 +DEPEND="ssl? ( dev-libs/openssl:*[-bindist] )
40 kernel_linux? (
41 dev-libs/libnl:3
42 crda? ( net-wireless/crda )
43
44 diff --git a/net-wireless/hostapd/hostapd-2.9-r3.ebuild b/net-wireless/hostapd/hostapd-2.9-r3.ebuild
45 index 61cac6a..a2a5bdf 100644
46 --- a/net-wireless/hostapd/hostapd-2.9-r3.ebuild
47 +++ b/net-wireless/hostapd/hostapd-2.9-r3.ebuild
48 @@ -28,17 +28,10 @@ fi
49
50 LICENSE="BSD"
51 SLOT="0"
52 -IUSE="internal-tls ipv6 libressl logwatch netlink sqlite +suiteb +wps +crda"
53 -
54 -# suiteb impl uses openssl feature not available in libressl, see bug 710992
55 -REQUIRED_USE="?? ( libressl suiteb )"
56 +IUSE="ipv6 logwatch netlink sqlite +wps +crda"
57
58 DEPEND="
59 - libressl? ( dev-libs/libressl:0= )
60 - !libressl? (
61 - internal-tls? ( dev-libs/libtommath )
62 - !internal-tls? ( dev-libs/openssl:0=[-bindist] )
63 - )
64 + dev-libs/openssl:0=[-bindist]
65 kernel_linux? (
66 dev-libs/libnl:3
67 crda? ( net-wireless/crda )
68 @@ -48,16 +41,6 @@ DEPEND="
69
70 RDEPEND="${DEPEND}"
71
72 -pkg_pretend() {
73 - if use internal-tls; then
74 - if use libressl; then
75 - elog "libressl flag takes precedence over internal-tls"
76 - else
77 - ewarn "internal-tls implementation is experimental and provides fewer features"
78 - fi
79 - fi
80 -}
81 -
82 src_unpack() {
83 # Override default one because we need the SRC_URI ones even in case of 9999 ebuilds
84 default
85 @@ -102,27 +85,18 @@ src_configure() {
86 echo "CONFIG_ERP=y" >> ${CONFIG} || die
87 echo "CONFIG_EAP_MD5=y" >> ${CONFIG} || die
88
89 - if use suiteb; then
90 - echo "CONFIG_SUITEB=y" >> ${CONFIG} || die
91 - echo "CONFIG_SUITEB192=y" >> ${CONFIG} || die
92 - fi
93 -
94 - if use internal-tls && ! use libressl; then
95 - echo "CONFIG_TLS=internal" >> ${CONFIG} || die
96 - else
97 - # SSL authentication methods
98 - echo "CONFIG_DPP=y" >> ${CONFIG} || die
99 - echo "CONFIG_EAP_FAST=y" >> ${CONFIG} || die
100 - echo "CONFIG_EAP_MSCHAPV2=y" >> ${CONFIG} || die
101 - echo "CONFIG_EAP_PEAP=y" >> ${CONFIG} || die
102 - echo "CONFIG_EAP_PWD=y" >> ${CONFIG} || die
103 - echo "CONFIG_EAP_TLS=y" >> ${CONFIG} || die
104 - echo "CONFIG_EAP_TTLS=y" >> ${CONFIG} || die
105 - echo "CONFIG_OWE=y" >> ${CONFIG} || die
106 - echo "CONFIG_SAE=y" >> ${CONFIG} || die
107 - echo "CONFIG_TLSV11=y" >> ${CONFIG} || die
108 - echo "CONFIG_TLSV12=y" >> ${CONFIG} || die
109 - fi
110 + # SSL authentication methods
111 + echo "CONFIG_DPP=y" >> ${CONFIG} || die
112 + echo "CONFIG_EAP_FAST=y" >> ${CONFIG} || die
113 + echo "CONFIG_EAP_MSCHAPV2=y" >> ${CONFIG} || die
114 + echo "CONFIG_EAP_PEAP=y" >> ${CONFIG} || die
115 + echo "CONFIG_EAP_PWD=y" >> ${CONFIG} || die
116 + echo "CONFIG_EAP_TLS=y" >> ${CONFIG} || die
117 + echo "CONFIG_EAP_TTLS=y" >> ${CONFIG} || die
118 + echo "CONFIG_OWE=y" >> ${CONFIG} || die
119 + echo "CONFIG_SAE=y" >> ${CONFIG} || die
120 + echo "CONFIG_TLSV11=y" >> ${CONFIG} || die
121 + echo "CONFIG_TLSV12=y" >> ${CONFIG} || die
122
123 if use wps; then
124 # Enable Wi-Fi Protected Setup
125 @@ -211,10 +185,8 @@ src_configure() {
126 src_compile() {
127 emake V=1
128
129 - if use libressl || ! use internal-tls; then
130 - emake V=1 nt_password_hash
131 - emake V=1 hlr_auc_gw
132 - fi
133 + emake V=1 nt_password_hash
134 + emake V=1 hlr_auc_gw
135 }
136
137 src_install() {
138 @@ -226,9 +198,7 @@ src_install() {
139 dosbin ${PN}
140 dobin ${PN}_cli
141
142 - if use libressl || ! use internal-tls; then
143 - dobin nt_password_hash hlr_auc_gw
144 - fi
145 + dobin nt_password_hash hlr_auc_gw
146
147 newinitd "${WORKDIR}/${EXTRAS_NAME}"/${PN}-init.d ${PN}
148 newconfd "${WORKDIR}/${EXTRAS_NAME}"/${PN}-conf.d ${PN}
149
150 diff --git a/net-wireless/hostapd/metadata.xml b/net-wireless/hostapd/metadata.xml
151 index b5dc25e..9de6b97 100644
152 --- a/net-wireless/hostapd/metadata.xml
153 +++ b/net-wireless/hostapd/metadata.xml
154 @@ -8,12 +8,10 @@
155 </longdescription>
156 <use>
157 <flag name="crda">Add CRDA support</flag>
158 - <flag name="internal-tls">Use internal TLSv1 implementation instead of depending on OpenSSL, LibreSSL or GnuTLS</flag>
159 <flag name="logwatch">Install support files for
160 <pkg>sys-apps/logwatch</pkg></flag>
161 <flag name="netlink">Adding support for using netlink to create VLANs</flag>
162 <flag name="sqlite">Adding sqlite support</flag>
163 - <flag name="suiteb">Adding support for NSA Suite B Cryptography</flag>
164 <flag name="wps">Add support for Wi-Fi Protected Setup</flag>
165 </use>
166 <maintainer type="person">