1 |
commit: 6b723509d2b1957d69ee100933375c8886728c31 |
2 |
Author: Zero_Chaos <zerochaos <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 16 14:23:11 2017 +0000 |
4 |
Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 16 14:46:47 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b723509 |
7 |
|
8 |
net-wireless/wpa_supplicant: remove one vuln ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.11, Repoman-2.3.3 |
11 |
|
12 |
.../wpa_supplicant/wpa_supplicant-2.6-r2.ebuild | 387 --------------------- |
13 |
1 file changed, 387 deletions(-) |
14 |
|
15 |
diff --git a/net-wireless/wpa_supplicant/wpa_supplicant-2.6-r2.ebuild b/net-wireless/wpa_supplicant/wpa_supplicant-2.6-r2.ebuild |
16 |
deleted file mode 100644 |
17 |
index f7b55a93253..00000000000 |
18 |
--- a/net-wireless/wpa_supplicant/wpa_supplicant-2.6-r2.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,387 +0,0 @@ |
21 |
-# Copyright 1999-2017 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=6 |
25 |
- |
26 |
-inherit eutils qmake-utils systemd toolchain-funcs |
27 |
- |
28 |
-DESCRIPTION="IEEE 802.1X/WPA supplicant for secure wireless transfers" |
29 |
-HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/" |
30 |
-SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz" |
31 |
-LICENSE="|| ( GPL-2 BSD )" |
32 |
- |
33 |
-SLOT="0" |
34 |
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~x86-fbsd" |
35 |
-IUSE="ap dbus gnutls eap-sim fasteap +hs2-0 libressl p2p ps3 qt5 readline selinux smartcard ssl tdls uncommon-eap-types wimax wps kernel_linux kernel_FreeBSD" |
36 |
-REQUIRED_USE="fasteap? ( !ssl ) smartcard? ( ssl )" |
37 |
- |
38 |
-CDEPEND="dbus? ( sys-apps/dbus ) |
39 |
- kernel_linux? ( |
40 |
- dev-libs/libnl:3 |
41 |
- net-wireless/crda |
42 |
- eap-sim? ( sys-apps/pcsc-lite ) |
43 |
- ) |
44 |
- !kernel_linux? ( net-libs/libpcap ) |
45 |
- qt5? ( |
46 |
- dev-qt/qtcore:5 |
47 |
- dev-qt/qtgui:5 |
48 |
- dev-qt/qtsvg:5 |
49 |
- dev-qt/qtwidgets:5 |
50 |
- ) |
51 |
- readline? ( |
52 |
- sys-libs/ncurses:0= |
53 |
- sys-libs/readline:0= |
54 |
- ) |
55 |
- ssl? ( |
56 |
- gnutls? ( |
57 |
- dev-libs/libgcrypt:0= |
58 |
- net-libs/gnutls:= |
59 |
- ) |
60 |
- !gnutls? ( |
61 |
- !libressl? ( dev-libs/openssl:0= ) |
62 |
- libressl? ( dev-libs/libressl:0= ) |
63 |
- ) |
64 |
- ) |
65 |
- !ssl? ( dev-libs/libtommath ) |
66 |
-" |
67 |
-DEPEND="${CDEPEND} |
68 |
- virtual/pkgconfig |
69 |
-" |
70 |
-RDEPEND="${CDEPEND} |
71 |
- selinux? ( sec-policy/selinux-networkmanager ) |
72 |
-" |
73 |
- |
74 |
-S="${WORKDIR}/${P}/${PN}" |
75 |
- |
76 |
-Kconfig_style_config() { |
77 |
- #param 1 is CONFIG_* item |
78 |
- #param 2 is what to set it = to, defaulting in y |
79 |
- CONFIG_PARAM="${CONFIG_HEADER:-CONFIG_}$1" |
80 |
- setting="${2:-y}" |
81 |
- |
82 |
- if [ ! $setting = n ]; then |
83 |
- #first remove any leading "# " if $2 is not n |
84 |
- sed -i "/^# *$CONFIG_PARAM=/s/^# *//" .config || echo "Kconfig_style_config error uncommenting $CONFIG_PARAM" |
85 |
- #set item = $setting (defaulting to y) |
86 |
- sed -i "/^$CONFIG_PARAM/s/=.*/=$setting/" .config || echo "Kconfig_style_config error setting $CONFIG_PARAM=$setting" |
87 |
- else |
88 |
- #ensure item commented out |
89 |
- sed -i "/^$CONFIG_PARAM/s/$CONFIG_PARAM/# $CONFIG_PARAM/" .config || echo "Kconfig_style_config error commenting $CONFIG_PARAM" |
90 |
- fi |
91 |
-} |
92 |
- |
93 |
-pkg_setup() { |
94 |
- if use ssl ; then |
95 |
- if use gnutls && use libressl ; then |
96 |
- elog "You have both 'gnutls' and 'libressl' USE flags enabled: defaulting to USE=\"gnutls\"" |
97 |
- fi |
98 |
- else |
99 |
- elog "You have 'ssl' USE flag disabled: defaulting to internal TLS implementation" |
100 |
- fi |
101 |
-} |
102 |
- |
103 |
-src_prepare() { |
104 |
- default |
105 |
- |
106 |
- # net/bpf.h needed for net-libs/libpcap on Gentoo/FreeBSD |
107 |
- sed -i \ |
108 |
- -e "s:\(#include <pcap\.h>\):#include <net/bpf.h>\n\1:" \ |
109 |
- ../src/l2_packet/l2_packet_freebsd.c || die |
110 |
- |
111 |
- # People seem to take the example configuration file too literally (bug #102361) |
112 |
- sed -i \ |
113 |
- -e "s:^\(opensc_engine_path\):#\1:" \ |
114 |
- -e "s:^\(pkcs11_engine_path\):#\1:" \ |
115 |
- -e "s:^\(pkcs11_module_path\):#\1:" \ |
116 |
- wpa_supplicant.conf || die |
117 |
- |
118 |
- # Change configuration to match Gentoo locations (bug #143750) |
119 |
- sed -i \ |
120 |
- -e "s:/usr/lib/opensc:/usr/$(get_libdir):" \ |
121 |
- -e "s:/usr/lib/pkcs11:/usr/$(get_libdir):" \ |
122 |
- wpa_supplicant.conf || die |
123 |
- |
124 |
- # systemd entries to D-Bus service files (bug #372877) |
125 |
- echo 'SystemdService=wpa_supplicant.service' \ |
126 |
- | tee -a dbus/*.service >/dev/null || die |
127 |
- |
128 |
- cd "${WORKDIR}/${P}" || die |
129 |
- |
130 |
- if use wimax; then |
131 |
- # generate-libeap-peer.patch comes before |
132 |
- # fix-undefined-reference-to-random_get_bytes.patch |
133 |
- eapply "${FILESDIR}/${P}-generate-libeap-peer.patch" |
134 |
- |
135 |
- # multilib-strict fix (bug #373685) |
136 |
- sed -e "s/\/usr\/lib/\/usr\/$(get_libdir)/" -i src/eap_peer/Makefile || die |
137 |
- fi |
138 |
- |
139 |
- # bug (320097) |
140 |
- eapply "${FILESDIR}/${P}-do-not-call-dbus-functions-with-NULL-path.patch" |
141 |
- |
142 |
- # bug (596332) |
143 |
- eapply "${FILESDIR}/${P}-libressl.patch" |
144 |
-} |
145 |
- |
146 |
-src_configure() { |
147 |
- # Toolchain setup |
148 |
- tc-export CC |
149 |
- |
150 |
- cp defconfig .config || die |
151 |
- |
152 |
- # Basic setup |
153 |
- Kconfig_style_config CTRL_IFACE |
154 |
- Kconfig_style_config MATCH_IFACE |
155 |
- Kconfig_style_config BACKEND file |
156 |
- Kconfig_style_config IBSS_RSN |
157 |
- Kconfig_style_config IEEE80211W |
158 |
- Kconfig_style_config IEEE80211R |
159 |
- |
160 |
- # Basic authentication methods |
161 |
- # NOTE: we don't set GPSK or SAKE as they conflict |
162 |
- # with the below options |
163 |
- Kconfig_style_config EAP_GTC |
164 |
- Kconfig_style_config EAP_MD5 |
165 |
- Kconfig_style_config EAP_OTP |
166 |
- Kconfig_style_config EAP_PAX |
167 |
- Kconfig_style_config EAP_PSK |
168 |
- Kconfig_style_config EAP_TLV |
169 |
- Kconfig_style_config EAP_EXE |
170 |
- Kconfig_style_config IEEE8021X_EAPOL |
171 |
- Kconfig_style_config PKCS12 |
172 |
- Kconfig_style_config PEERKEY |
173 |
- Kconfig_style_config EAP_LEAP |
174 |
- Kconfig_style_config EAP_MSCHAPV2 |
175 |
- Kconfig_style_config EAP_PEAP |
176 |
- Kconfig_style_config EAP_TLS |
177 |
- Kconfig_style_config EAP_TTLS |
178 |
- |
179 |
- # Enabling background scanning. |
180 |
- Kconfig_style_config BGSCAN_SIMPLE |
181 |
- Kconfig_style_config BGSCAN_LEARN |
182 |
- |
183 |
- # Enabling mesh networks. |
184 |
- Kconfig_style_config MESH |
185 |
- |
186 |
- if use dbus ; then |
187 |
- Kconfig_style_config CTRL_IFACE_DBUS |
188 |
- Kconfig_style_config CTRL_IFACE_DBUS_NEW |
189 |
- Kconfig_style_config CTRL_IFACE_DBUS_INTRO |
190 |
- fi |
191 |
- |
192 |
- # Enable support for writing debug info to a log file and syslog. |
193 |
- Kconfig_style_config DEBUG_FILE |
194 |
- Kconfig_style_config DEBUG_SYSLOG |
195 |
- |
196 |
- if use hs2-0 ; then |
197 |
- Kconfig_style_config INTERWORKING |
198 |
- Kconfig_style_config HS20 |
199 |
- fi |
200 |
- |
201 |
- if use uncommon-eap-types; then |
202 |
- Kconfig_style_config EAP_GPSK |
203 |
- Kconfig_style_config EAP_SAKE |
204 |
- Kconfig_style_config EAP_GPSK_SHA256 |
205 |
- Kconfig_style_config EAP_IKEV2 |
206 |
- Kconfig_style_config EAP_EKE |
207 |
- fi |
208 |
- |
209 |
- if use eap-sim ; then |
210 |
- # Smart card authentication |
211 |
- Kconfig_style_config EAP_SIM |
212 |
- Kconfig_style_config EAP_AKA |
213 |
- Kconfig_style_config EAP_AKA_PRIME |
214 |
- Kconfig_style_config PCSC |
215 |
- fi |
216 |
- |
217 |
- if use fasteap ; then |
218 |
- Kconfig_style_config EAP_FAST |
219 |
- fi |
220 |
- |
221 |
- if use readline ; then |
222 |
- # readline/history support for wpa_cli |
223 |
- Kconfig_style_config READLINE |
224 |
- else |
225 |
- #internal line edit mode for wpa_cli |
226 |
- Kconfig_style_config WPA_CLI_EDIT |
227 |
- fi |
228 |
- |
229 |
- # SSL authentication methods |
230 |
- if use ssl ; then |
231 |
- if use gnutls ; then |
232 |
- Kconfig_style_config TLS gnutls |
233 |
- Kconfig_style_config GNUTLS_EXTRA |
234 |
- else |
235 |
- Kconfig_style_config TLS openssl |
236 |
- fi |
237 |
- else |
238 |
- Kconfig_style_config TLS internal |
239 |
- fi |
240 |
- |
241 |
- if use smartcard ; then |
242 |
- Kconfig_style_config SMARTCARD |
243 |
- fi |
244 |
- |
245 |
- if use tdls ; then |
246 |
- Kconfig_style_config TDLS |
247 |
- fi |
248 |
- |
249 |
- if use kernel_linux ; then |
250 |
- # Linux specific drivers |
251 |
- Kconfig_style_config DRIVER_ATMEL |
252 |
- Kconfig_style_config DRIVER_HOSTAP |
253 |
- Kconfig_style_config DRIVER_IPW |
254 |
- Kconfig_style_config DRIVER_NL80211 |
255 |
- Kconfig_style_config DRIVER_RALINK |
256 |
- Kconfig_style_config DRIVER_WEXT |
257 |
- Kconfig_style_config DRIVER_WIRED |
258 |
- |
259 |
- if use ps3 ; then |
260 |
- Kconfig_style_config DRIVER_PS3 |
261 |
- fi |
262 |
- |
263 |
- elif use kernel_FreeBSD ; then |
264 |
- # FreeBSD specific driver |
265 |
- Kconfig_style_config DRIVER_BSD |
266 |
- fi |
267 |
- |
268 |
- # Wi-Fi Protected Setup (WPS) |
269 |
- if use wps ; then |
270 |
- Kconfig_style_config WPS |
271 |
- Kconfig_style_config WPS2 |
272 |
- # USB Flash Drive |
273 |
- Kconfig_style_config WPS_UFD |
274 |
- # External Registrar |
275 |
- Kconfig_style_config WPS_ER |
276 |
- # Universal Plug'n'Play |
277 |
- Kconfig_style_config WPS_UPNP |
278 |
- # Near Field Communication |
279 |
- Kconfig_style_config WPS_NFC |
280 |
- fi |
281 |
- |
282 |
- # Wi-Fi Direct (WiDi) |
283 |
- if use p2p ; then |
284 |
- Kconfig_style_config P2P |
285 |
- Kconfig_style_config WIFI_DISPLAY |
286 |
- fi |
287 |
- |
288 |
- # Access Point Mode |
289 |
- if use ap ; then |
290 |
- Kconfig_style_config AP |
291 |
- fi |
292 |
- |
293 |
- # Enable mitigation against certain attacks against TKIP |
294 |
- Kconfig_style_config DELAYED_MIC_ERROR_REPORT |
295 |
- |
296 |
- # If we are using libnl 2.0 and above, enable support for it |
297 |
- # Bug 382159 |
298 |
- # Removed for now, since the 3.2 version is broken, and we don't |
299 |
- # support it. |
300 |
- if has_version ">=dev-libs/libnl-3.2"; then |
301 |
- Kconfig_style_config LIBNL32 |
302 |
- fi |
303 |
- |
304 |
- if use qt5 ; then |
305 |
- pushd "${S}"/wpa_gui-qt4 > /dev/null || die |
306 |
- eqmake5 wpa_gui.pro |
307 |
- popd > /dev/null || die |
308 |
- fi |
309 |
-} |
310 |
- |
311 |
-src_compile() { |
312 |
- einfo "Building wpa_supplicant" |
313 |
- emake V=1 BINDIR=/usr/sbin |
314 |
- |
315 |
- if use wimax; then |
316 |
- emake -C ../src/eap_peer clean |
317 |
- emake -C ../src/eap_peer |
318 |
- fi |
319 |
- |
320 |
- if use qt5; then |
321 |
- einfo "Building wpa_gui" |
322 |
- emake -C "${S}"/wpa_gui-qt4 |
323 |
- fi |
324 |
-} |
325 |
- |
326 |
-src_install() { |
327 |
- dosbin wpa_supplicant |
328 |
- dobin wpa_cli wpa_passphrase |
329 |
- |
330 |
- # baselayout-1 compat |
331 |
- if has_version "<sys-apps/baselayout-2.0.0"; then |
332 |
- dodir /sbin |
333 |
- dosym /usr/sbin/wpa_supplicant /sbin/wpa_supplicant |
334 |
- dodir /bin |
335 |
- dosym /usr/bin/wpa_cli /bin/wpa_cli |
336 |
- fi |
337 |
- |
338 |
- if has_version ">=sys-apps/openrc-0.5.0"; then |
339 |
- newinitd "${FILESDIR}/${PN}-init.d" wpa_supplicant |
340 |
- newconfd "${FILESDIR}/${PN}-conf.d" wpa_supplicant |
341 |
- fi |
342 |
- |
343 |
- exeinto /etc/wpa_supplicant/ |
344 |
- newexe "${FILESDIR}/wpa_cli.sh" wpa_cli.sh |
345 |
- |
346 |
- dodoc ChangeLog {eap_testing,todo}.txt README{,-WPS} \ |
347 |
- wpa_supplicant.conf |
348 |
- |
349 |
- newdoc .config build-config |
350 |
- |
351 |
- doman doc/docbook/*.{5,8} |
352 |
- |
353 |
- if use qt5 ; then |
354 |
- into /usr |
355 |
- dobin wpa_gui-qt4/wpa_gui |
356 |
- doicon wpa_gui-qt4/icons/wpa_gui.svg |
357 |
- make_desktop_entry wpa_gui "WPA Supplicant Administration GUI" "wpa_gui" "Qt;Network;" |
358 |
- fi |
359 |
- |
360 |
- use wimax && emake DESTDIR="${D}" -C ../src/eap_peer install |
361 |
- |
362 |
- if use dbus ; then |
363 |
- pushd "${S}"/dbus > /dev/null || die |
364 |
- insinto /etc/dbus-1/system.d |
365 |
- newins dbus-wpa_supplicant.conf wpa_supplicant.conf |
366 |
- insinto /usr/share/dbus-1/system-services |
367 |
- doins fi.epitest.hostap.WPASupplicant.service fi.w1.wpa_supplicant1.service |
368 |
- popd > /dev/null || die |
369 |
- |
370 |
- # This unit relies on dbus support, bug 538600. |
371 |
- systemd_dounit systemd/wpa_supplicant.service |
372 |
- fi |
373 |
- |
374 |
- systemd_dounit "systemd/wpa_supplicant@.service" |
375 |
- systemd_dounit "systemd/wpa_supplicant-nl80211@.service" |
376 |
- systemd_dounit "systemd/wpa_supplicant-wired@.service" |
377 |
-} |
378 |
- |
379 |
-pkg_postinst() { |
380 |
- elog "If this is a clean installation of wpa_supplicant, you" |
381 |
- elog "have to create a configuration file named" |
382 |
- elog "${EROOT%/}/etc/wpa_supplicant/wpa_supplicant.conf" |
383 |
- elog |
384 |
- elog "An example configuration file is available for reference in" |
385 |
- elog "${EROOT%/}/usr/share/doc/${PF}/" |
386 |
- |
387 |
- if [[ -e "${EROOT%/}"/etc/wpa_supplicant.conf ]] ; then |
388 |
- echo |
389 |
- ewarn "WARNING: your old configuration file ${EROOT%/}/etc/wpa_supplicant.conf" |
390 |
- ewarn "needs to be moved to ${EROOT%/}/etc/wpa_supplicant/wpa_supplicant.conf" |
391 |
- fi |
392 |
- |
393 |
- # Mea culpa, feel free to remove that after some time --mgorny. |
394 |
- local fn |
395 |
- for fn in wpa_supplicant{,@wlan0}.service; do |
396 |
- if [[ -e "${EROOT%/}"/etc/systemd/system/network.target.wants/${fn} ]] |
397 |
- then |
398 |
- ebegin "Moving ${fn} to multi-user.target" |
399 |
- mv "${EROOT%/}"/etc/systemd/system/network.target.wants/${fn} \ |
400 |
- "${EROOT%/}"/etc/systemd/system/multi-user.target.wants/ || die |
401 |
- eend ${?} \ |
402 |
- "Please try to re-enable ${fn}" |
403 |
- fi |
404 |
- done |
405 |
- |
406 |
- systemd_reenable wpa_supplicant.service |
407 |
-} |