13 |
13 |
inherit git-r3
|
14 |
14 |
EGIT_REPO_URI="https://w1.fi/hostap.git"
|
15 |
15 |
else
|
16 |
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~sparc x86"
|
|
16 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
17 |
17 |
SRC_URI="https://w1.fi/releases/${P}.tar.gz"
|
18 |
18 |
fi
|
19 |
19 |
|
20 |
20 |
SLOT="0"
|
21 |
|
IUSE="ap broadcom-sta dbus eap-sim eapol-test fasteap +fils +hs2-0 macsec +mbo +mesh p2p privsep ps3 qt6 readline selinux smartcard tdls tkip uncommon-eap-types wep wimax wps"
|
|
21 |
IUSE="+ap broadcom-sta dbus eap-sim eapol-test +fils gui macsec +mbo +mesh p2p privsep readline selinux smartcard tkip uncommon-eap-types wep wps"
|
22 |
22 |
|
23 |
23 |
# CONFIG_PRIVSEP=y does not have sufficient support for the new driver
|
24 |
24 |
# interface functions used for MACsec, so this combination cannot be used
|
25 |
25 |
# at least for now. bug #684442
|
26 |
26 |
REQUIRED_USE="
|
27 |
27 |
macsec? ( !privsep )
|
|
28 |
mesh? ( ap )
|
|
29 |
p2p? ( ap wps )
|
28 |
30 |
privsep? ( !macsec )
|
29 |
31 |
broadcom-sta? ( !fils !mesh !mbo )
|
30 |
32 |
"
|
... | ... | |
37 |
39 |
eap-sim? ( sys-apps/pcsc-lite )
|
38 |
40 |
)
|
39 |
41 |
!kernel_linux? ( net-libs/libpcap )
|
40 |
|
qt6? (
|
|
42 |
gui? (
|
41 |
43 |
dev-qt/qtbase:6[gui,widgets]
|
42 |
44 |
dev-qt/qtsvg:6
|
43 |
45 |
)
|
... | ... | |
108 |
110 |
|
109 |
111 |
cd "${WORKDIR}/${P}" || die
|
110 |
112 |
|
111 |
|
if use wimax; then
|
112 |
|
# generate-libeap-peer.patch comes before
|
113 |
|
# fix-undefined-reference-to-random_get_bytes.patch
|
114 |
|
eapply "${FILESDIR}/${P}-generate-libeap-peer.patch"
|
115 |
|
|
116 |
|
# multilib-strict fix (bug #373685)
|
117 |
|
sed -e "s/\/usr\/lib/\/usr\/$(get_libdir)/" -i src/eap_peer/Makefile || die
|
118 |
|
fi
|
119 |
|
|
120 |
113 |
# bug (320097)
|
121 |
114 |
eapply "${FILESDIR}/${PN}-2.6-do-not-call-dbus-functions-with-NULL-path.patch"
|
122 |
115 |
|
123 |
116 |
# bug (912315)
|
124 |
117 |
eapply "${FILESDIR}/${PN}-2.10-allow-legacy-renegotiation.patch"
|
125 |
|
eapply "${FILESDIR}/${PN}-2.10-Drop-security-level-to-0-with-OpenSSL-3.0-wh.patch"
|
126 |
118 |
|
127 |
119 |
# bug (948052)
|
128 |
120 |
eapply "${FILESDIR}/${PN}-2.10-use-qt6.patch"
|
... | ... | |
193 |
185 |
Kconfig_style_config DEBUG_FILE
|
194 |
186 |
Kconfig_style_config DEBUG_SYSLOG
|
195 |
187 |
|
196 |
|
if use hs2-0 ; then
|
197 |
|
Kconfig_style_config INTERWORKING
|
198 |
|
Kconfig_style_config HS20
|
199 |
|
fi
|
200 |
|
|
201 |
188 |
if use mbo ; then
|
202 |
189 |
Kconfig_style_config MBO
|
203 |
190 |
else
|
... | ... | |
220 |
207 |
Kconfig_style_config PCSC
|
221 |
208 |
fi
|
222 |
209 |
|
223 |
|
if use fasteap ; then
|
224 |
|
Kconfig_style_config EAP_FAST
|
225 |
|
fi
|
226 |
|
|
227 |
210 |
if use readline ; then
|
228 |
211 |
# readline/history support for wpa_cli
|
229 |
212 |
Kconfig_style_config READLINE
|
... | ... | |
272 |
255 |
Kconfig_style_config SMARTCARD n
|
273 |
256 |
fi
|
274 |
257 |
|
275 |
|
if use tdls ; then
|
276 |
|
Kconfig_style_config TDLS
|
277 |
|
fi
|
278 |
|
|
279 |
258 |
if use kernel_linux ; then
|
280 |
259 |
# Linux specific drivers
|
281 |
260 |
Kconfig_style_config DRIVER_ATMEL
|
... | ... | |
296 |
275 |
Kconfig_style_config DRIVER_MACSEC_LINUX n
|
297 |
276 |
Kconfig_style_config MACSEC n
|
298 |
277 |
fi
|
299 |
|
|
300 |
|
if use ps3 ; then
|
301 |
|
Kconfig_style_config DRIVER_PS3
|
302 |
|
fi
|
303 |
278 |
fi
|
304 |
279 |
|
305 |
280 |
# Wi-Fi Protected Setup (WPS)
|
... | ... | |
359 |
334 |
Kconfig_style_config LIBNL32
|
360 |
335 |
fi
|
361 |
336 |
|
362 |
|
if use qt6 ; then
|
|
337 |
if use gui ; then
|
363 |
338 |
pushd "${S}"/wpa_gui-qt4 > /dev/null || die
|
364 |
339 |
eqmake6 wpa_gui.pro
|
365 |
340 |
popd > /dev/null || die
|
... | ... | |
370 |
345 |
einfo "Building wpa_supplicant"
|
371 |
346 |
emake V=1 BINDIR=/usr/sbin
|
372 |
347 |
|
373 |
|
if use wimax; then
|
374 |
|
emake -C ../src/eap_peer clean
|
375 |
|
emake -C ../src/eap_peer
|
376 |
|
fi
|
377 |
|
|
378 |
|
if use qt6; then
|
|
348 |
if use gui ; then
|
379 |
349 |
einfo "Building wpa_gui"
|
380 |
350 |
emake -C "${S}"/wpa_gui-qt4
|
381 |
351 |
fi
|
... | ... | |
406 |
376 |
doman doc/docbook/*.{5,8}
|
407 |
377 |
fi
|
408 |
378 |
|
409 |
|
if use qt6 ; then
|
|
379 |
if use gui ; then
|
410 |
380 |
into /usr
|
411 |
381 |
dobin wpa_gui-qt4/wpa_gui
|
412 |
382 |
doicon wpa_gui-qt4/icons/wpa_gui.svg
|
... | ... | |
415 |
385 |
rm "${ED}"/usr/share/man/man8/wpa_gui.8
|
416 |
386 |
fi
|
417 |
387 |
|
418 |
|
use wimax && emake DESTDIR="${D}" -C ../src/eap_peer install
|
419 |
|
|
420 |
388 |
if use dbus ; then
|
421 |
389 |
pushd "${S}"/dbus > /dev/null || die
|
422 |
390 |
insinto /etc/dbus-1/system.d
|