1 |
commit: bb73625312855527c8e7cd509dc8b226fd98af0b |
2 |
Author: Felix Janda <felix.janda <AT> posteo <DOT> de> |
3 |
AuthorDate: Thu Apr 30 17:58:46 2015 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 2 23:42:49 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-dev.git/commit/?id=bb736253 |
7 |
|
8 |
net-wireless/wpa_supplicant: In tree version works |
9 |
|
10 |
net-wireless/wpa_supplicant/files/wpa_cli.sh | 47 --- |
11 |
.../files/wpa_supplicant-2.0-linux_wext.patch | 20 -- |
12 |
.../files/wpa_supplicant-2.2-dbus-path-fix.patch | 20 -- |
13 |
...do-not-call-dbus-functions-with-NULL-path.patch | 60 ---- |
14 |
...x-undefined-reference-to-random_get_bytes.patch | 19 -- |
15 |
.../wpa_supplicant-2.2-generate-libeap-peer.patch | 349 --------------------- |
16 |
.../wpa_supplicant/files/wpa_supplicant-conf.d | 6 - |
17 |
.../wpa_supplicant/files/wpa_supplicant-init.d | 70 ----- |
18 |
.../wpa_supplicant/files/wpa_supplicant.conf | 7 - |
19 |
.../wpa_supplicant/files/wpa_supplicant.service | 11 - |
20 |
.../wpa_supplicant/files/wpa_supplicant_at.service | 11 - |
21 |
net-wireless/wpa_supplicant/metadata.xml | 29 -- |
22 |
.../wpa_supplicant/wpa_supplicant-2.2-r99.ebuild | 325 ------------------- |
23 |
13 files changed, 974 deletions(-) |
24 |
|
25 |
diff --git a/net-wireless/wpa_supplicant/files/wpa_cli.sh b/net-wireless/wpa_supplicant/files/wpa_cli.sh |
26 |
deleted file mode 100644 |
27 |
index 4fd0d2c..0000000 |
28 |
--- a/net-wireless/wpa_supplicant/files/wpa_cli.sh |
29 |
+++ /dev/null |
30 |
@@ -1,47 +0,0 @@ |
31 |
-#!/bin/sh |
32 |
-# Copyright 1999-2011 Gentoo Foundation |
33 |
-# Written by Roy Marples <uberlord@g.o> |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
-# Alternatively, this file may be distributed under the terms of the BSD License |
36 |
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/files/wpa_cli.sh,v 1.3 2011/07/08 07:06:21 gurligebis Exp $ |
37 |
- |
38 |
-if [ -z "$1" -o -z "$2" ]; then |
39 |
- logger -t wpa_cli "Insufficient parameters" |
40 |
- exit 1 |
41 |
-fi |
42 |
- |
43 |
-INTERFACE="$1" |
44 |
-ACTION="$2" |
45 |
- |
46 |
-# Note, the below action must NOT mark the interface down via ifconfig, ip or |
47 |
-# similar. Addresses can be removed, changed and daemons can be stopped, but |
48 |
-# the interface must remain up for wpa_supplicant to work. |
49 |
- |
50 |
-if [ -f /etc/gentoo-release ]; then |
51 |
- EXEC="/etc/init.d/net.${INTERFACE} --quiet" |
52 |
-else |
53 |
- logger -t wpa_cli "I don't know what to do with this distro!" |
54 |
- exit 1 |
55 |
-fi |
56 |
- |
57 |
-case ${ACTION} in |
58 |
- CONNECTED) |
59 |
- EXEC="${EXEC} start" |
60 |
- ;; |
61 |
- DISCONNECTED) |
62 |
- # Deactivated, since stopping /etc/init.d/net.wlanX |
63 |
- # stops the network completly. |
64 |
- EXEC="false ${EXEC} stop" |
65 |
- ;; |
66 |
- *) |
67 |
- logger -t wpa_cli "Unknown action ${ACTION}" |
68 |
- exit 1 |
69 |
- ;; |
70 |
-esac |
71 |
- |
72 |
-# ${EXEC} can use ${IN_BACKGROUND} so that it knows that the user isn't |
73 |
-# stopping the interface and a background process - like wpa_cli - is. |
74 |
-export IN_BACKGROUND=true |
75 |
- |
76 |
-logger -t wpa_cli "interface ${INTERFACE} ${ACTION}" |
77 |
-${EXEC} || logger -t wpa_cli "executing '${EXEC}' failed" |
78 |
|
79 |
diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-2.0-linux_wext.patch b/net-wireless/wpa_supplicant/files/wpa_supplicant-2.0-linux_wext.patch |
80 |
deleted file mode 100644 |
81 |
index 5fee991..0000000 |
82 |
--- a/net-wireless/wpa_supplicant/files/wpa_supplicant-2.0-linux_wext.patch |
83 |
+++ /dev/null |
84 |
@@ -1,20 +0,0 @@ |
85 |
---- a/wpa_supplicant-2.0/src/drivers/linux_wext.h |
86 |
-+++ b/wpa_supplicant-2.0/src/drivers/linux_wext.h |
87 |
-@@ -21,11 +21,12 @@ |
88 |
- |
89 |
- #include <sys/types.h> |
90 |
- #include <net/if.h> |
91 |
--typedef __uint32_t __u32; |
92 |
--typedef __int32_t __s32; |
93 |
--typedef __uint16_t __u16; |
94 |
--typedef __int16_t __s16; |
95 |
--typedef __uint8_t __u8; |
96 |
-+#include <stdint.h> |
97 |
-+typedef uint32_t __u32; |
98 |
-+typedef int32_t __s32; |
99 |
-+typedef uint16_t __u16; |
100 |
-+typedef int16_t __s16; |
101 |
-+typedef uint8_t __u8; |
102 |
- #ifndef __user |
103 |
- #define __user |
104 |
- #endif /* __user */ |
105 |
|
106 |
diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-2.2-dbus-path-fix.patch b/net-wireless/wpa_supplicant/files/wpa_supplicant-2.2-dbus-path-fix.patch |
107 |
deleted file mode 100644 |
108 |
index 976d71b..0000000 |
109 |
--- a/net-wireless/wpa_supplicant/files/wpa_supplicant-2.2-dbus-path-fix.patch |
110 |
+++ /dev/null |
111 |
@@ -1,20 +0,0 @@ |
112 |
-diff -aurp a/wpa_supplicant/dbus/fi.epitest.hostap.WPASupplicant.service.in b/wpa_supplicant/dbus/fi.epitest.hostap.WPASupplicant.service.in |
113 |
---- a/wpa_supplicant/dbus/fi.epitest.hostap.WPASupplicant.service.in 2012-05-15 09:00:03.048545044 +0000 |
114 |
-+++ b/wpa_supplicant/dbus/fi.epitest.hostap.WPASupplicant.service.in 2012-05-15 09:01:19.759550509 +0000 |
115 |
-@@ -1,5 +1,5 @@ |
116 |
- [D-BUS Service] |
117 |
- Name=fi.epitest.hostap.WPASupplicant |
118 |
--Exec=@BINDIR@/wpa_supplicant -u |
119 |
-+Exec=/usr/sbin/wpa_supplicant -u |
120 |
- User=root |
121 |
- SystemdService=wpa_supplicant.service |
122 |
-diff -aurp a/wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service.in b/wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service.in |
123 |
---- a/wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service.in 2012-05-15 09:00:03.048545044 +0000 |
124 |
-+++ b/wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service.in 2012-05-15 09:01:28.727551913 +0000 |
125 |
-@@ -1,5 +1,5 @@ |
126 |
- [D-BUS Service] |
127 |
- Name=fi.w1.wpa_supplicant1 |
128 |
--Exec=@BINDIR@/wpa_supplicant -u |
129 |
-+Exec=/usr/sbin/wpa_supplicant -u |
130 |
- User=root |
131 |
- SystemdService=wpa_supplicant.service |
132 |
|
133 |
diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-2.2-do-not-call-dbus-functions-with-NULL-path.patch b/net-wireless/wpa_supplicant/files/wpa_supplicant-2.2-do-not-call-dbus-functions-with-NULL-path.patch |
134 |
deleted file mode 100644 |
135 |
index bbff73e..0000000 |
136 |
--- a/net-wireless/wpa_supplicant/files/wpa_supplicant-2.2-do-not-call-dbus-functions-with-NULL-path.patch |
137 |
+++ /dev/null |
138 |
@@ -1,60 +0,0 @@ |
139 |
-diff -aurp a/wpa_supplicant/dbus/dbus_new_helpers.c b/wpa_supplicant/dbus/dbus_new_helpers.c |
140 |
---- a/wpa_supplicant/dbus/dbus_new_helpers.c 2012-05-15 07:28:37.616150164 +0000 |
141 |
-+++ b/wpa_supplicant/dbus/dbus_new_helpers.c 2012-05-15 07:30:21.904157611 +0000 |
142 |
-@@ -882,7 +882,7 @@ void wpa_dbus_mark_property_changed(stru |
143 |
- const struct wpa_dbus_property_desc *dsc; |
144 |
- int i = 0; |
145 |
- |
146 |
-- if (iface == NULL) |
147 |
-+ if (iface == NULL || path == NULL) |
148 |
- return; |
149 |
- |
150 |
- dbus_connection_get_object_path_data(iface->con, path, |
151 |
-diff -aurp a/wpa_supplicant/dbus/dbus_old.c b/wpa_supplicant/dbus/dbus_old.c |
152 |
---- a/wpa_supplicant/dbus/dbus_old.c 2012-05-15 07:28:29.502149373 +0000 |
153 |
-+++ b/wpa_supplicant/dbus/dbus_old.c 2012-05-15 07:30:48.859162441 +0000 |
154 |
-@@ -379,7 +379,7 @@ void wpa_supplicant_dbus_notify_scan_res |
155 |
- DBusMessage *_signal; |
156 |
- |
157 |
- /* Do nothing if the control interface is not turned on */ |
158 |
-- if (iface == NULL) |
159 |
-+ if (iface == NULL || wpa_s->dbus_path == NULL) |
160 |
- return; |
161 |
- |
162 |
- _signal = dbus_message_new_signal(wpa_s->dbus_path, |
163 |
-@@ -419,7 +419,7 @@ void wpa_supplicant_dbus_notify_state_ch |
164 |
- if (wpa_s->global == NULL) |
165 |
- return; |
166 |
- iface = wpa_s->global->dbus; |
167 |
-- if (iface == NULL) |
168 |
-+ if (iface == NULL || wpa_s->dbus_path == NULL) |
169 |
- return; |
170 |
- |
171 |
- /* Only send signal if state really changed */ |
172 |
-@@ -478,7 +478,7 @@ void wpa_supplicant_dbus_notify_scanning |
173 |
- dbus_bool_t scanning = wpa_s->scanning ? TRUE : FALSE; |
174 |
- |
175 |
- /* Do nothing if the control interface is not turned on */ |
176 |
-- if (iface == NULL) |
177 |
-+ if (iface == NULL || wpa_s->dbus_path == NULL) |
178 |
- return; |
179 |
- |
180 |
- _signal = dbus_message_new_signal(wpa_s->dbus_path, |
181 |
-@@ -513,7 +513,7 @@ void wpa_supplicant_dbus_notify_wps_cred |
182 |
- if (wpa_s->global == NULL) |
183 |
- return; |
184 |
- iface = wpa_s->global->dbus; |
185 |
-- if (iface == NULL) |
186 |
-+ if (iface == NULL || wpa_s->dbus_path == NULL) |
187 |
- return; |
188 |
- |
189 |
- _signal = dbus_message_new_signal(wpa_s->dbus_path, |
190 |
-@@ -564,7 +564,7 @@ void wpa_supplicant_dbus_notify_certific |
191 |
- if (wpa_s->global == NULL) |
192 |
- return; |
193 |
- iface = wpa_s->global->dbus; |
194 |
-- if (iface == NULL) |
195 |
-+ if (iface == NULL || wpa_s->dbus_path == NULL) |
196 |
- return; |
197 |
- |
198 |
- _signal = dbus_message_new_signal(wpa_s->dbus_path, |
199 |
|
200 |
diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-2.2-fix-undefined-reference-to-random_get_bytes.patch b/net-wireless/wpa_supplicant/files/wpa_supplicant-2.2-fix-undefined-reference-to-random_get_bytes.patch |
201 |
deleted file mode 100644 |
202 |
index def43a2..0000000 |
203 |
--- a/net-wireless/wpa_supplicant/files/wpa_supplicant-2.2-fix-undefined-reference-to-random_get_bytes.patch |
204 |
+++ /dev/null |
205 |
@@ -1,19 +0,0 @@ |
206 |
-diff -Naur a/src/eap_peer/Makefile b/src/eap_peer/Makefile |
207 |
---- a/src/eap_peer/Makefile 2013-05-17 09:51:55.000000000 +0000 |
208 |
-+++ b/src/eap_peer/Makefile 2013-05-17 09:54:03.010830904 +0000 |
209 |
-@@ -36,6 +36,7 @@ |
210 |
- OBJS_both += ../utils/wpa_debug.o |
211 |
- OBJS_both += ../utils/base64.o |
212 |
- OBJS_both += ../utils/wpabuf.o |
213 |
-+OBJS_both += ../utils/eloop.o |
214 |
- OBJS_both += ../crypto/md5.o |
215 |
- ifneq ($(CONFIG_TLS), openssl) |
216 |
- OBJS_both += ../crypto/sha1.o |
217 |
-@@ -48,6 +49,7 @@ |
218 |
- OBJS_both += ../crypto/aes-omac1.o |
219 |
- OBJS_both += ../crypto/ms_funcs.o |
220 |
- OBJS_both += ../crypto/sha256.o |
221 |
-+OBJS_both += ../crypto/random.o |
222 |
- |
223 |
- |
224 |
- OBJS_both += ../eap_common/eap_peap_common.o |
225 |
|
226 |
diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-2.2-generate-libeap-peer.patch b/net-wireless/wpa_supplicant/files/wpa_supplicant-2.2-generate-libeap-peer.patch |
227 |
deleted file mode 100644 |
228 |
index 391338b..0000000 |
229 |
--- a/net-wireless/wpa_supplicant/files/wpa_supplicant-2.2-generate-libeap-peer.patch |
230 |
+++ /dev/null |
231 |
@@ -1,349 +0,0 @@ |
232 |
-diff -Naurp a/src/eap_peer/eap_methods.c b/src/eap_peer/eap_methods.c |
233 |
---- a/src/eap_peer/eap_methods.c 2012-05-15 08:23:17.151386999 +0000 |
234 |
-+++ b/src/eap_peer/eap_methods.c 2012-05-15 08:23:57.403389760 +0000 |
235 |
-@@ -342,6 +342,120 @@ int eap_peer_method_register(struct eap_ |
236 |
- |
237 |
- |
238 |
- /** |
239 |
-+ * eap_peer_register_methods - Register all known EAP peer methods |
240 |
-+ * |
241 |
-+ * This function is called at program start to register all compiled |
242 |
-+ * in EAP peer methods. |
243 |
-+ */ |
244 |
-+int eap_peer_register_methods(void) |
245 |
-+{ |
246 |
-+ int ret = 0; |
247 |
-+ |
248 |
-+#ifdef EAP_MD5 |
249 |
-+ if (ret == 0) |
250 |
-+ ret = eap_peer_md5_register(); |
251 |
-+#endif /* EAP_MD5 */ |
252 |
-+ |
253 |
-+#ifdef EAP_TLS |
254 |
-+ if (ret == 0) |
255 |
-+ ret = eap_peer_tls_register(); |
256 |
-+#endif /* EAP_TLS */ |
257 |
-+ |
258 |
-+#ifdef EAP_MSCHAPv2 |
259 |
-+ if (ret == 0) |
260 |
-+ ret = eap_peer_mschapv2_register(); |
261 |
-+#endif /* EAP_MSCHAPv2 */ |
262 |
-+ |
263 |
-+#ifdef EAP_PEAP |
264 |
-+ if (ret == 0) |
265 |
-+ ret = eap_peer_peap_register(); |
266 |
-+#endif /* EAP_PEAP */ |
267 |
-+ |
268 |
-+#ifdef EAP_TTLS |
269 |
-+ if (ret == 0) |
270 |
-+ ret = eap_peer_ttls_register(); |
271 |
-+#endif /* EAP_TTLS */ |
272 |
-+ |
273 |
-+#ifdef EAP_GTC |
274 |
-+ if (ret == 0) |
275 |
-+ ret = eap_peer_gtc_register(); |
276 |
-+#endif /* EAP_GTC */ |
277 |
-+ |
278 |
-+#ifdef EAP_OTP |
279 |
-+ if (ret == 0) |
280 |
-+ ret = eap_peer_otp_register(); |
281 |
-+#endif /* EAP_OTP */ |
282 |
-+ |
283 |
-+#ifdef EAP_SIM |
284 |
-+ if (ret == 0) |
285 |
-+ ret = eap_peer_sim_register(); |
286 |
-+#endif /* EAP_SIM */ |
287 |
-+ |
288 |
-+#ifdef EAP_LEAP |
289 |
-+ if (ret == 0) |
290 |
-+ ret = eap_peer_leap_register(); |
291 |
-+#endif /* EAP_LEAP */ |
292 |
-+ |
293 |
-+#ifdef EAP_PSK |
294 |
-+ if (ret == 0) |
295 |
-+ ret = eap_peer_psk_register(); |
296 |
-+#endif /* EAP_PSK */ |
297 |
-+ |
298 |
-+#ifdef EAP_AKA |
299 |
-+ if (ret == 0) |
300 |
-+ ret = eap_peer_aka_register(); |
301 |
-+#endif /* EAP_AKA */ |
302 |
-+ |
303 |
-+#ifdef EAP_AKA_PRIME |
304 |
-+ if (ret == 0) |
305 |
-+ ret = eap_peer_aka_prime_register(); |
306 |
-+#endif /* EAP_AKA_PRIME */ |
307 |
-+ |
308 |
-+#ifdef EAP_FAST |
309 |
-+ if (ret == 0) |
310 |
-+ ret = eap_peer_fast_register(); |
311 |
-+#endif /* EAP_FAST */ |
312 |
-+ |
313 |
-+#ifdef EAP_PAX |
314 |
-+ if (ret == 0) |
315 |
-+ ret = eap_peer_pax_register(); |
316 |
-+#endif /* EAP_PAX */ |
317 |
-+ |
318 |
-+#ifdef EAP_SAKE |
319 |
-+ if (ret == 0) |
320 |
-+ ret = eap_peer_sake_register(); |
321 |
-+#endif /* EAP_SAKE */ |
322 |
-+ |
323 |
-+#ifdef EAP_GPSK |
324 |
-+ if (ret == 0) |
325 |
-+ ret = eap_peer_gpsk_register(); |
326 |
-+#endif /* EAP_GPSK */ |
327 |
-+ |
328 |
-+#ifdef EAP_WSC |
329 |
-+ if (ret == 0) |
330 |
-+ ret = eap_peer_wsc_register(); |
331 |
-+#endif /* EAP_WSC */ |
332 |
-+ |
333 |
-+#ifdef EAP_IKEV2 |
334 |
-+ if (ret == 0) |
335 |
-+ ret = eap_peer_ikev2_register(); |
336 |
-+#endif /* EAP_IKEV2 */ |
337 |
-+ |
338 |
-+#ifdef EAP_VENDOR_TEST |
339 |
-+ if (ret == 0) |
340 |
-+ ret = eap_peer_vendor_test_register(); |
341 |
-+#endif /* EAP_VENDOR_TEST */ |
342 |
-+ |
343 |
-+#ifdef EAP_TNC |
344 |
-+ if (ret == 0) |
345 |
-+ ret = eap_peer_tnc_register(); |
346 |
-+#endif /* EAP_TNC */ |
347 |
-+ |
348 |
-+ return ret; |
349 |
-+} |
350 |
-+ |
351 |
-+ |
352 |
-+/** |
353 |
- * eap_peer_unregister_methods - Unregister EAP peer methods |
354 |
- * |
355 |
- * This function is called at program termination to unregister all EAP peer |
356 |
-diff -Naurp a/src/eap_peer/eap_methods.h b/src/eap_peer/eap_methods.h |
357 |
---- a/src/eap_peer/eap_methods.h 2012-05-15 08:23:17.151386999 +0000 |
358 |
-+++ b/src/eap_peer/eap_methods.h 2012-05-15 08:23:57.404389735 +0000 |
359 |
-@@ -32,6 +32,7 @@ EapType eap_peer_get_type(const char *na |
360 |
- const char * eap_get_name(int vendor, EapType type); |
361 |
- size_t eap_get_names(char *buf, size_t buflen); |
362 |
- char ** eap_get_names_as_string_array(size_t *num); |
363 |
-+int eap_peer_register_methods(void); |
364 |
- void eap_peer_unregister_methods(void); |
365 |
- |
366 |
- #else /* IEEE8021X_EAPOL */ |
367 |
-diff -Naurp a/src/eap_peer/libeap0.pc b/src/eap_peer/libeap0.pc |
368 |
---- a/src/eap_peer/libeap0.pc 1970-01-01 00:00:00.000000000 +0000 |
369 |
-+++ b/src/eap_peer/libeap0.pc 2012-05-15 08:23:57.404389735 +0000 |
370 |
-@@ -0,0 +1,10 @@ |
371 |
-+prefix=/usr |
372 |
-+exec_prefix=/usr |
373 |
-+libdir=${exec_prefix}/lib |
374 |
-+includedir=${prefix}/include/eap_peer |
375 |
-+ |
376 |
-+Name: libeap0 |
377 |
-+Description: EAP Peer Library API |
378 |
-+Version: 0.7.2 |
379 |
-+Libs: -L${libdir} -leap |
380 |
-+Cflags: -I${includedir} |
381 |
-diff -Naurp a/src/eap_peer/Makefile b/src/eap_peer/Makefile |
382 |
---- a/src/eap_peer/Makefile 2012-05-15 08:23:17.152386964 +0000 |
383 |
-+++ b/src/eap_peer/Makefile 2012-05-15 08:23:57.403389760 +0000 |
384 |
-@@ -1,11 +1,188 @@ |
385 |
--all: |
386 |
-- @echo Nothing to be made. |
387 |
-+LIBEAP_NAME = libeap |
388 |
-+LIBEAP_CURRENT = 0 |
389 |
-+LIBEAP_REVISION = 0 |
390 |
-+LIBEAP_AGE = 0 |
391 |
-+ |
392 |
-+LIBEAP = $(LIBEAP_NAME).so.$(LIBEAP_CURRENT).$(LIBEAP_REVISION).$(LIBEAP_AGE) |
393 |
-+LIBEAP_SO = $(LIBEAP_NAME).so.$(LIBEAP_CURRENT) |
394 |
-+ |
395 |
-+.PHONY: all clean install uninstall |
396 |
-+ |
397 |
-+all: $(LIBEAP) |
398 |
-+ |
399 |
-+ifndef CC |
400 |
-+CC=gcc |
401 |
-+endif |
402 |
-+ |
403 |
-+ifndef CFLAGS |
404 |
-+CFLAGS = -MMD -O0 -Wall -g |
405 |
-+endif |
406 |
-+ |
407 |
-+CONFIG_TLS=openssl |
408 |
-+ |
409 |
-+INCLUDE_INSTALL_DIR=/usr/include/eap_peer |
410 |
-+ |
411 |
-+# Got to use override all across the board, otherwise a 'make |
412 |
-+# CFLAGS=XX' will kill us because the command line's CFLAGS will |
413 |
-+# overwrite Make's and we'll loose all the infrastructure it sets. |
414 |
-+override CFLAGS += -I. -I.. -I../crypto -I../utils -I../common |
415 |
-+ |
416 |
-+# at least for now, need to include config_ssid.h and config_blob.h from |
417 |
-+# wpa_supplicant directory |
418 |
-+override CFLAGS += -I ../../wpa_supplicant |
419 |
-+ |
420 |
-+OBJS_both += ../utils/common.o |
421 |
-+OBJS_both += ../utils/os_unix.o |
422 |
-+OBJS_both += ../utils/wpa_debug.o |
423 |
-+OBJS_both += ../utils/base64.o |
424 |
-+OBJS_both += ../utils/wpabuf.o |
425 |
-+OBJS_both += ../crypto/md5.o |
426 |
-+ifneq ($(CONFIG_TLS), openssl) |
427 |
-+OBJS_both += ../crypto/sha1.o |
428 |
-+endif |
429 |
-+OBJS_both += ../crypto/sha1-tlsprf.o |
430 |
-+OBJS_both += ../crypto/aes-encblock.o |
431 |
-+OBJS_both += ../crypto/aes-wrap.o |
432 |
-+OBJS_both += ../crypto/aes-ctr.o |
433 |
-+OBJS_both += ../crypto/aes-eax.o |
434 |
-+OBJS_both += ../crypto/aes-omac1.o |
435 |
-+OBJS_both += ../crypto/ms_funcs.o |
436 |
-+OBJS_both += ../crypto/sha256.o |
437 |
-+ |
438 |
-+ |
439 |
-+OBJS_both += ../eap_common/eap_peap_common.o |
440 |
-+OBJS_both += ../eap_common/eap_psk_common.o |
441 |
-+OBJS_both += ../eap_common/eap_pax_common.o |
442 |
-+OBJS_both += ../eap_common/eap_sake_common.o |
443 |
-+OBJS_both += ../eap_common/eap_gpsk_common.o |
444 |
-+OBJS_both += ../eap_common/chap.o |
445 |
-+ |
446 |
-+OBJS_peer += ../eap_peer/eap_tls.o |
447 |
-+OBJS_peer += ../eap_peer/eap_peap.o |
448 |
-+OBJS_peer += ../eap_peer/eap_ttls.o |
449 |
-+OBJS_peer += ../eap_peer/eap_md5.o |
450 |
-+OBJS_peer += ../eap_peer/eap_mschapv2.o |
451 |
-+OBJS_peer += ../eap_peer/mschapv2.o |
452 |
-+OBJS_peer += ../eap_peer/eap_otp.o |
453 |
-+OBJS_peer += ../eap_peer/eap_gtc.o |
454 |
-+OBJS_peer += ../eap_peer/eap_leap.o |
455 |
-+OBJS_peer += ../eap_peer/eap_psk.o |
456 |
-+OBJS_peer += ../eap_peer/eap_pax.o |
457 |
-+OBJS_peer += ../eap_peer/eap_sake.o |
458 |
-+OBJS_peer += ../eap_peer/eap_gpsk.o |
459 |
-+OBJS_peer += ../eap_peer/eap.o |
460 |
-+OBJS_peer += ../eap_common/eap_common.o |
461 |
-+OBJS_peer += ../eap_peer/eap_methods.o |
462 |
-+OBJS_peer += ../eap_peer/eap_tls_common.o |
463 |
-+ |
464 |
-+override CFLAGS += -DEAP_TLS |
465 |
-+override CFLAGS += -DEAP_PEAP |
466 |
-+override CFLAGS += -DEAP_TTLS |
467 |
-+override CFLAGS += -DEAP_MD5 |
468 |
-+override CFLAGS += -DEAP_MSCHAPv2 |
469 |
-+override CFLAGS += -DEAP_GTC |
470 |
-+override CFLAGS += -DEAP_OTP |
471 |
-+override CFLAGS += -DEAP_LEAP |
472 |
-+override CFLAGS += -DEAP_PSK |
473 |
-+override CFLAGS += -DEAP_PAX |
474 |
-+override CFLAGS += -DEAP_SAKE |
475 |
-+override CFLAGS += -DEAP_GPSK -DEAP_GPSK_SHA256 |
476 |
-+override CFLAGS += -DEAP_TLS_FUNCS |
477 |
-+ |
478 |
-+override CFLAGS += -DIEEE8021X_EAPOL |
479 |
-+ |
480 |
-+ifeq ($(CONFIG_TLS), openssl) |
481 |
-+override CFLAGS += -DEAP_TLS_OPENSSL |
482 |
-+OBJS_both += ../crypto/tls_openssl.o |
483 |
-+OBJS_both += ../crypto/crypto_openssl.o |
484 |
-+LIBS += -lssl -lcrypto |
485 |
-+override CFLAGS += -DINTERNAL_SHA256 |
486 |
-+endif |
487 |
-+ |
488 |
-+ifeq ($(CONFIG_TLS), internal) |
489 |
-+OBJS_both += ../crypto/tls_internal.o |
490 |
-+OBJS_both += ../tls/tlsv1_common.o ../../tls/tlsv1_record.o |
491 |
-+OBJS_both += ../tls/tlsv1_cred.o |
492 |
-+OBJS_both += ../tls/asn1.o ../../tls/x509v3.o |
493 |
-+OBJS_both += ../crypto/crypto_internal.o ../../tls/rsa.o ../../tls/bignum.o |
494 |
-+ |
495 |
-+OBJS_peer += ../tls/tlsv1_client.o |
496 |
-+OBJS_peer += ../tls/tlsv1_client_write.o ../../tls/tlsv1_client_read.o |
497 |
-+override CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT |
498 |
-+ |
499 |
-+OBJS_server += ../tls/tlsv1_server.o |
500 |
-+OBJS_server += ../tls/tlsv1_server_write.o ../../tls/tlsv1_server_read.o |
501 |
-+override CFLAGS += -DCONFIG_TLS_INTERNAL_SERVER |
502 |
-+ |
503 |
-+override CFLAGS += -DCONFIG_TLS_INTERNAL |
504 |
-+override CFLAGS += -DCONFIG_CRYPTO_INTERNAL |
505 |
-+override CFLAGS += -DCONFIG_INTERNAL_X509 |
506 |
-+override CFLAGS += -DINTERNAL_AES |
507 |
-+override CFLAGS += -DINTERNAL_SHA1 |
508 |
-+override CFLAGS += -DINTERNAL_SHA256 |
509 |
-+override CFLAGS += -DINTERNAL_MD5 |
510 |
-+override CFLAGS += -DINTERNAL_MD4 |
511 |
-+override CFLAGS += -DINTERNAL_DES |
512 |
-+ifdef CONFIG_INTERNAL_LIBTOMMATH |
513 |
-+override CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH |
514 |
-+else |
515 |
-+LIBS += -ltommath |
516 |
-+endif |
517 |
-+endif |
518 |
-+ |
519 |
-+ifndef LDO |
520 |
-+LDO=$(CC) |
521 |
-+endif |
522 |
-+ |
523 |
-+ |
524 |
-+OBJS_lib=$(OBJS_both) $(OBJS_peer) |
525 |
-+ |
526 |
-+ #$(OBJS_server) |
527 |
-+ |
528 |
-+override CFLAGS += -fPIC -DPIC |
529 |
-+LDFLAGS += -shared |
530 |
-+ |
531 |
-+$(LIBEAP): $(OBJS_lib) |
532 |
-+ $(LDO) $(LDFLAGS) $(OBJS_lib) -Wl,-soname -Wl,$(LIBEAP_SO) -o $(LIBEAP) $(LIBS) |
533 |
-+ |
534 |
-+ |
535 |
-+UTIL_HEADERS = ../utils/includes.h ../utils/common.h \ |
536 |
-+ ../utils/wpabuf.h ../utils/build_config.h \ |
537 |
-+ ../utils/os.h ../utils/wpa_debug.h |
538 |
-+COMMON_HEADERS = ../common/defs.h |
539 |
-+EAP_COMMON_HEADERS = ../eap_common/eap_defs.h |
540 |
-+MAIN_HEADERS = eap.h eap_methods.h eap_config.h |
541 |
-+CRYPTO_HEADERS = ../crypto/tls.h |
542 |
-+ |
543 |
-+install: |
544 |
-+ |
545 |
-+ mkdir -p $(DESTDIR)/usr/lib |
546 |
-+# copy the lib file to std lib location |
547 |
-+ cp $(LIBEAP) $(DESTDIR)/usr/lib |
548 |
-+ ln -fs $(LIBEAP_SO) $(DESTDIR)/usr/lib/$(LIBEAP_NAME).so |
549 |
-+ ln -fs $(LIBEAP_NAME).so.0.0.0 $(DESTDIR)/usr/lib/$(LIBEAP_NAME).so.0 |
550 |
-+ |
551 |
-+# copy the headers reqd by apps using eap peer library in its own subfolder under /usr/include |
552 |
-+ mkdir -p \ |
553 |
-+ $(DESTDIR)/$(INCLUDE_INSTALL_DIR)/eap_common \ |
554 |
-+ $(DESTDIR)/$(INCLUDE_INSTALL_DIR)/common \ |
555 |
-+ $(DESTDIR)/$(INCLUDE_INSTALL_DIR)/util \ |
556 |
-+ $(DESTDIR)/$(INCLUDE_INSTALL_DIR)/crypto |
557 |
-+ install -m 0644 $(EAP_COMMON_HEADERS) $(DESTDIR)/$(INCLUDE_INSTALL_DIR)/eap_common |
558 |
-+ install -m 0644 $(COMMON_HEADERS) $(DESTDIR)/$(INCLUDE_INSTALL_DIR)/common |
559 |
-+ install -m 0644 $(CRYPTO_HEADERS) $(DESTDIR)/$(INCLUDE_INSTALL_DIR)/crypto |
560 |
-+ install -m 0644 $(UTIL_HEADERS) $(DESTDIR)/$(INCLUDE_INSTALL_DIR)/util |
561 |
-+ install -m 0644 $(MAIN_HEADERS) $(DESTDIR)/$(INCLUDE_INSTALL_DIR)/ |
562 |
-+ |
563 |
-+ mkdir -p $(DESTDIR)/usr/lib/pkgconfig |
564 |
-+ cp libeap0.pc $(DESTDIR)/usr/lib/pkgconfig |
565 |
-+ |
566 |
-+uninstall: |
567 |
-+ |
568 |
-+ rm $(DESTDIR)/usr/lib/$(LIBEAP) |
569 |
-+ rm -fr $(DESTDIR)/$(INCLUDE_INSTALL_DIR) |
570 |
-+ rm -f $(DESTDIR)/usr/lib/pkgconfig/libeap0.pc |
571 |
- |
572 |
- clean: |
573 |
-- rm -f *~ *.o *.so *.d *.gcno *.gcda *.gcov |
574 |
-+ rm -f *~ *.o *.so *.d *.gcno *.gcda *.gcov libeap.a $(LIBEAP) $(OBJS_lib) |
575 |
- |
576 |
--install: |
577 |
-- if ls *.so >/dev/null 2>&1; then \ |
578 |
-- install -d $(DESTDIR)$(LIBDIR)/wpa_supplicant && \ |
579 |
-- cp *.so $(DESTDIR)$(LIBDIR)/wpa_supplicant \ |
580 |
-- ; fi |
581 |
|
582 |
diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-conf.d b/net-wireless/wpa_supplicant/files/wpa_supplicant-conf.d |
583 |
deleted file mode 100644 |
584 |
index 104b9dc..0000000 |
585 |
--- a/net-wireless/wpa_supplicant/files/wpa_supplicant-conf.d |
586 |
+++ /dev/null |
587 |
@@ -1,6 +0,0 @@ |
588 |
-# conf.d file for wpa_supplicant |
589 |
-# |
590 |
-# Please check man 8 wpa_supplicant for more information about the options |
591 |
-# wpa_supplicant accepts. |
592 |
-# |
593 |
-wpa_supplicant_args="" |
594 |
|
595 |
diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-init.d b/net-wireless/wpa_supplicant/files/wpa_supplicant-init.d |
596 |
deleted file mode 100644 |
597 |
index 8429a37..0000000 |
598 |
--- a/net-wireless/wpa_supplicant/files/wpa_supplicant-init.d |
599 |
+++ /dev/null |
600 |
@@ -1,70 +0,0 @@ |
601 |
-#!/sbin/runscript |
602 |
-# Copyright (c) 2009 Roy Marples <roy@×××××××.name> |
603 |
-# All rights reserved. Released under the 2-clause BSD license. |
604 |
- |
605 |
-command=/usr/sbin/wpa_supplicant |
606 |
-: ${wpa_supplicant_conf:=/etc/wpa_supplicant/wpa_supplicant.conf} |
607 |
-wpa_supplicant_if=${wpa_supplicant_if:+-i}$wpa_supplicant_if |
608 |
-command_args="$wpa_supplicant_args -B -c$wpa_supplicant_conf $wpa_supplicant_if" |
609 |
-name="WPA Supplicant Daemon" |
610 |
- |
611 |
-depend() |
612 |
-{ |
613 |
- need localmount |
614 |
- use logger |
615 |
- after bootmisc modules |
616 |
- before dns dhcpcd net |
617 |
- keyword -shutdown |
618 |
-} |
619 |
- |
620 |
-find_wireless() |
621 |
-{ |
622 |
- local iface= |
623 |
- |
624 |
- case "$RC_UNAME" in |
625 |
- Linux) |
626 |
- for iface in /sys/class/net/*; do |
627 |
- if [ -e "$iface"/wireless -o \ |
628 |
- -e "$iface"/phy80211 ] |
629 |
- then |
630 |
- echo "${iface##*/}" |
631 |
- return 0 |
632 |
- fi |
633 |
- done |
634 |
- ;; |
635 |
- *) |
636 |
- for iface in /dev/net/* $(ifconfig -l 2>/dev/null); do |
637 |
- if ifconfig "${iface##*/}" 2>/dev/null | \ |
638 |
- grep -q "[ ]*ssid " |
639 |
- then |
640 |
- echo "${iface##*/}" |
641 |
- return 0 |
642 |
- fi |
643 |
- done |
644 |
- ;; |
645 |
- esac |
646 |
- |
647 |
- return 1 |
648 |
-} |
649 |
- |
650 |
-append_wireless() |
651 |
-{ |
652 |
- local iface= i= |
653 |
- |
654 |
- iface=$(find_wireless) |
655 |
- if [ -n "$iface" ]; then |
656 |
- for i in $iface; do |
657 |
- command_args="$command_args -i$i" |
658 |
- done |
659 |
- else |
660 |
- eerror "Could not find a wireless interface" |
661 |
- fi |
662 |
-} |
663 |
- |
664 |
-start_pre() |
665 |
-{ |
666 |
- case " $command_args" in |
667 |
- *" -i"*) ;; |
668 |
- *) append_wireless;; |
669 |
- esac |
670 |
-} |
671 |
|
672 |
diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant.conf b/net-wireless/wpa_supplicant/files/wpa_supplicant.conf |
673 |
deleted file mode 100644 |
674 |
index c3a29e5..0000000 |
675 |
--- a/net-wireless/wpa_supplicant/files/wpa_supplicant.conf |
676 |
+++ /dev/null |
677 |
@@ -1,7 +0,0 @@ |
678 |
-# This is a network block that connects to any unsecured access point. |
679 |
-# We give it a low priority so any defined blocks are preferred. |
680 |
-network={ |
681 |
- key_mgmt=NONE |
682 |
- priority=-9999999 |
683 |
-} |
684 |
- |
685 |
|
686 |
diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant.service b/net-wireless/wpa_supplicant/files/wpa_supplicant.service |
687 |
deleted file mode 100644 |
688 |
index e1e75b1..0000000 |
689 |
--- a/net-wireless/wpa_supplicant/files/wpa_supplicant.service |
690 |
+++ /dev/null |
691 |
@@ -1,11 +0,0 @@ |
692 |
-[Unit] |
693 |
-Description=WPA supplicant |
694 |
- |
695 |
-[Service] |
696 |
-Type=dbus |
697 |
-BusName=fi.epitest.hostap.WPASupplicant |
698 |
-ExecStart=/usr/sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -u |
699 |
- |
700 |
-[Install] |
701 |
-WantedBy=multi-user.target |
702 |
-Alias=dbus-fi.epitest.hostap.WPASupplicant.service |
703 |
|
704 |
diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant_at.service b/net-wireless/wpa_supplicant/files/wpa_supplicant_at.service |
705 |
deleted file mode 100644 |
706 |
index af0cebf..0000000 |
707 |
--- a/net-wireless/wpa_supplicant/files/wpa_supplicant_at.service |
708 |
+++ /dev/null |
709 |
@@ -1,11 +0,0 @@ |
710 |
-[Unit] |
711 |
-Description=WPA supplicant daemon (interface-specific version) |
712 |
- |
713 |
-# NetworkManager users will probably want the dbus version instead. |
714 |
- |
715 |
-[Service] |
716 |
-Type=simple |
717 |
-ExecStart=/usr/sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -i%I |
718 |
- |
719 |
-[Install] |
720 |
-Alias=multi-user.target.wants/wpa_supplicant@×××××.service |
721 |
|
722 |
diff --git a/net-wireless/wpa_supplicant/metadata.xml b/net-wireless/wpa_supplicant/metadata.xml |
723 |
deleted file mode 100644 |
724 |
index 935c73e..0000000 |
725 |
--- a/net-wireless/wpa_supplicant/metadata.xml |
726 |
+++ /dev/null |
727 |
@@ -1,29 +0,0 @@ |
728 |
-<?xml version="1.0" encoding="UTF-8"?> |
729 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
730 |
-<pkgmetadata> |
731 |
- <maintainer> |
732 |
- <email>gurligebis@g.o</email> |
733 |
- <name>Bjarke Istrup Pedersen</name> |
734 |
- </maintainer> |
735 |
- <maintainer> |
736 |
- <email>alexxy@g.o</email> |
737 |
- <name>Alexey Shvetsov</name> |
738 |
- </maintainer> |
739 |
- <maintainer> |
740 |
- <email>zerochaos@g.o</email> |
741 |
- <name>Rick Farina</name> |
742 |
- </maintainer> |
743 |
- <use> |
744 |
- <flag name='ap'>Add support for access point mode</flag> |
745 |
- <flag name='eap-sim'>Add support for EAP-SIM authentication algorithm</flag> |
746 |
- <flag name='fasteap'>Add support for FAST-EAP authentication algorithm</flag> |
747 |
- <flag name='p2p'>Add support for Wi-Fi Direct mode</flag> |
748 |
- <flag name='ps3'>Add support for ps3 hypervisor driven gelic wifi</flag> |
749 |
- <flag name='wps'>Add support for Wi-Fi Protected Setup</flag> |
750 |
- <flag name='wimax'>Add support for Wimax EAP-PEER authentication algorithm</flag> |
751 |
- <flag name='smartcard'>Add support for smartcards</flag> |
752 |
- </use> |
753 |
- <upstream> |
754 |
- <remote-id type="cpe">cpe:/a:wpa_supplicant:wpa_supplicant</remote-id> |
755 |
- </upstream> |
756 |
-</pkgmetadata> |
757 |
|
758 |
diff --git a/net-wireless/wpa_supplicant/wpa_supplicant-2.2-r99.ebuild b/net-wireless/wpa_supplicant/wpa_supplicant-2.2-r99.ebuild |
759 |
deleted file mode 100644 |
760 |
index a63ee12..0000000 |
761 |
--- a/net-wireless/wpa_supplicant/wpa_supplicant-2.2-r99.ebuild |
762 |
+++ /dev/null |
763 |
@@ -1,325 +0,0 @@ |
764 |
-# Copyright 1999-2014 Gentoo Foundation |
765 |
-# Distributed under the terms of the GNU General Public License v2 |
766 |
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/wpa_supplicant-2.2-r1.ebuild,v 1.4 2014/10/05 19:07:17 zerochaos Exp $ |
767 |
- |
768 |
-EAPI=4 |
769 |
- |
770 |
-inherit eutils toolchain-funcs qt4-r2 systemd multilib |
771 |
- |
772 |
-DESCRIPTION="IEEE 802.1X/WPA supplicant for secure wireless transfers" |
773 |
-HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/" |
774 |
-SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz" |
775 |
-LICENSE="|| ( GPL-2 BSD )" |
776 |
- |
777 |
-SLOT="0" |
778 |
-KEYWORDS="amd64 arm ~mips ppc x86" |
779 |
-IUSE="ap dbus gnutls eap-sim fasteap p2p ps3 qt4 readline selinux smartcard ssl wimax wps kernel_linux kernel_FreeBSD" |
780 |
-REQUIRED_USE="fasteap? ( !gnutls !ssl ) smartcard? ( ssl )" |
781 |
- |
782 |
-RDEPEND="dbus? ( sys-apps/dbus ) |
783 |
- kernel_linux? ( |
784 |
- eap-sim? ( sys-apps/pcsc-lite ) |
785 |
- dev-libs/libnl:3 |
786 |
- net-wireless/crda |
787 |
- ) |
788 |
- !kernel_linux? ( net-libs/libpcap ) |
789 |
- qt4? ( |
790 |
- dev-qt/qtcore:4 |
791 |
- dev-qt/qtgui:4 |
792 |
- dev-qt/qtsvg:4 |
793 |
- ) |
794 |
- readline? ( |
795 |
- sys-libs/ncurses |
796 |
- sys-libs/readline |
797 |
- ) |
798 |
- ssl? ( dev-libs/openssl ) |
799 |
- !ssl? ( gnutls? ( net-libs/gnutls ) ) |
800 |
- !ssl? ( !gnutls? ( dev-libs/libtommath ) ) |
801 |
- selinux? ( sec-policy/selinux-networkmanager )" |
802 |
-DEPEND="${RDEPEND} |
803 |
- virtual/pkgconfig" |
804 |
- |
805 |
-S="${WORKDIR}/${P}/${PN}" |
806 |
- |
807 |
-pkg_setup() { |
808 |
- if use gnutls && use ssl ; then |
809 |
- elog "You have both 'gnutls' and 'ssl' USE flags enabled: defaulting to USE=\"ssl\"" |
810 |
- fi |
811 |
-} |
812 |
- |
813 |
-src_prepare() { |
814 |
- # net/bpf.h needed for net-libs/libpcap on Gentoo/FreeBSD |
815 |
- sed -i \ |
816 |
- -e "s:\(#include <pcap\.h>\):#include <net/bpf.h>\n\1:" \ |
817 |
- ../src/l2_packet/l2_packet_freebsd.c || die |
818 |
- |
819 |
- # People seem to take the example configuration file too literally (bug #102361) |
820 |
- sed -i \ |
821 |
- -e "s:^\(opensc_engine_path\):#\1:" \ |
822 |
- -e "s:^\(pkcs11_engine_path\):#\1:" \ |
823 |
- -e "s:^\(pkcs11_module_path\):#\1:" \ |
824 |
- wpa_supplicant.conf || die |
825 |
- |
826 |
- # Change configuration to match Gentoo locations (bug #143750) |
827 |
- sed -i \ |
828 |
- -e "s:/usr/lib/opensc:/usr/$(get_libdir):" \ |
829 |
- -e "s:/usr/lib/pkcs11:/usr/$(get_libdir):" \ |
830 |
- wpa_supplicant.conf || die |
831 |
- |
832 |
- if use dbus; then |
833 |
- epatch "${FILESDIR}/${P}-dbus-path-fix.patch" |
834 |
- fi |
835 |
- |
836 |
- # systemd entries to D-Bus service files (bug #372877) |
837 |
- echo 'SystemdService=wpa_supplicant.service' \ |
838 |
- | tee -a dbus/*.service >/dev/null || die |
839 |
- |
840 |
- cd "${WORKDIR}/${P}" |
841 |
- |
842 |
- if use wimax; then |
843 |
- # generate-libeap-peer.patch comes before |
844 |
- # fix-undefined-reference-to-random_get_bytes.patch |
845 |
- epatch "${FILESDIR}/${P}-generate-libeap-peer.patch" |
846 |
- epatch "${FILESDIR}/${P}-fix-undefined-reference-to-random_get_bytes.patch" |
847 |
- |
848 |
- # multilib-strict fix (bug #373685) |
849 |
- sed -e "s/\/usr\/lib/\/usr\/$(get_libdir)/" -i src/eap_peer/Makefile |
850 |
- fi |
851 |
- |
852 |
- # bug (320097) |
853 |
- epatch "${FILESDIR}/${P}-do-not-call-dbus-functions-with-NULL-path.patch" |
854 |
- |
855 |
- # for musl |
856 |
- epatch "${FILESDIR}/${PN}-2.0-linux_wext.patch" |
857 |
- |
858 |
- # TODO - NEED TESTING TO SEE IF STILL NEEDED, NOT COMPATIBLE WITH 1.0 OUT OF THE BOX, |
859 |
- # SO WOULD BE NICE TO JUST DROP IT, IF IT IS NOT NEEDED. |
860 |
- # bug (374089) |
861 |
- #epatch "${FILESDIR}/${P}-dbus-WPAIE-fix.patch" |
862 |
-} |
863 |
- |
864 |
-src_configure() { |
865 |
- # Toolchain setup |
866 |
- tc-export CC |
867 |
- |
868 |
- # Basic setup |
869 |
- echo "CONFIG_CTRL_IFACE=y" >> .config |
870 |
- echo "CONFIG_BACKEND=file" >> .config |
871 |
- echo "CONFIG_IBSS_RSN=y" >> .config |
872 |
- |
873 |
- # Basic authentication methods |
874 |
- # NOTE: we don't set GPSK or SAKE as they conflict |
875 |
- # with the below options |
876 |
- echo "CONFIG_EAP_GTC=y" >> .config |
877 |
- echo "CONFIG_EAP_MD5=y" >> .config |
878 |
- echo "CONFIG_EAP_OTP=y" >> .config |
879 |
- echo "CONFIG_EAP_PAX=y" >> .config |
880 |
- echo "CONFIG_EAP_PSK=y" >> .config |
881 |
- echo "CONFIG_EAP_TLV=y" >> .config |
882 |
- echo "CONFIG_EAP_EXE=y" >> .config |
883 |
- echo "CONFIG_IEEE8021X_EAPOL=y" >> .config |
884 |
- echo "CONFIG_PKCS12=y" >> .config |
885 |
- echo "CONFIG_PEERKEY=y" >> .config |
886 |
- echo "CONFIG_EAP_LEAP=y" >> .config |
887 |
- echo "CONFIG_EAP_MSCHAPV2=y" >> .config |
888 |
- echo "CONFIG_EAP_PEAP=y" >> .config |
889 |
- echo "CONFIG_EAP_TLS=y" >> .config |
890 |
- echo "CONFIG_EAP_TTLS=y" >> .config |
891 |
- |
892 |
- # Enabling background scanning. |
893 |
- echo "CONFIG_BGSCAN_SIMPLE=y" >> .config |
894 |
- echo "CONFIG_BGSCAN_LEARN=y" >> .config |
895 |
- |
896 |
- if use dbus ; then |
897 |
- echo "CONFIG_CTRL_IFACE_DBUS=y" >> .config |
898 |
- echo "CONFIG_CTRL_IFACE_DBUS_NEW=y" >> .config |
899 |
- echo "CONFIG_CTRL_IFACE_DBUS_INTRO=y" >> .config |
900 |
- fi |
901 |
- |
902 |
- # Enable support for writing debug info to a log file. |
903 |
- echo "CONFIG_DEBUG_FILE=y" >> .config |
904 |
- |
905 |
- if use eap-sim ; then |
906 |
- # Smart card authentication |
907 |
- echo "CONFIG_EAP_SIM=y" >> .config |
908 |
- echo "CONFIG_EAP_AKA=y" >> .config |
909 |
- echo "CONFIG_EAP_AKA_PRIME=y" >> .config |
910 |
- echo "CONFIG_PCSC=y" >> .config |
911 |
- fi |
912 |
- |
913 |
- if use fasteap ; then |
914 |
- echo "CONFIG_EAP_FAST=y" >> .config |
915 |
- fi |
916 |
- |
917 |
- if use readline ; then |
918 |
- # readline/history support for wpa_cli |
919 |
- echo "CONFIG_READLINE=y" >> .config |
920 |
- fi |
921 |
- |
922 |
- # SSL authentication methods |
923 |
- if use ssl ; then |
924 |
- echo "CONFIG_TLS=openssl" >> .config |
925 |
- elif use gnutls ; then |
926 |
- echo "CONFIG_TLS=gnutls" >> .config |
927 |
- echo "CONFIG_GNUTLS_EXTRA=y" >> .config |
928 |
- else |
929 |
- echo "CONFIG_TLS=internal" >> .config |
930 |
- fi |
931 |
- |
932 |
- if use smartcard ; then |
933 |
- echo "CONFIG_SMARTCARD=y" >> .config |
934 |
- fi |
935 |
- |
936 |
- if use kernel_linux ; then |
937 |
- # Linux specific drivers |
938 |
- echo "CONFIG_DRIVER_ATMEL=y" >> .config |
939 |
- echo "CONFIG_DRIVER_HOSTAP=y" >> .config |
940 |
- echo "CONFIG_DRIVER_IPW=y" >> .config |
941 |
- echo "CONFIG_DRIVER_NL80211=y" >> .config |
942 |
- echo "CONFIG_DRIVER_RALINK=y" >> .config |
943 |
- echo "CONFIG_DRIVER_WEXT=y" >> .config |
944 |
- echo "CONFIG_DRIVER_WIRED=y" >> .config |
945 |
- |
946 |
- if use ps3 ; then |
947 |
- echo "CONFIG_DRIVER_PS3=y" >> .config |
948 |
- fi |
949 |
- |
950 |
- elif use kernel_FreeBSD ; then |
951 |
- # FreeBSD specific driver |
952 |
- echo "CONFIG_DRIVER_BSD=y" >> .config |
953 |
- fi |
954 |
- |
955 |
- # Wi-Fi Protected Setup (WPS) |
956 |
- if use wps ; then |
957 |
- echo "CONFIG_WPS=y" >> .config |
958 |
- echo "CONFIG_WPS2=y" >> .config |
959 |
- # USB Flash Drive |
960 |
- echo "CONFIG_WPS_UFD=y" >> .config |
961 |
- # External Registrar |
962 |
- echo "CONFIG_WPS_ER=y" >> .config |
963 |
- # Universal Plug'n'Play |
964 |
- echo "CONFIG_WPS_UPNP=y" >> .config |
965 |
- # Near Field Communication |
966 |
- echo "CONFIG_WPS_NFC=y" >> .config |
967 |
- fi |
968 |
- |
969 |
- # Wi-Fi Direct (WiDi) |
970 |
- if use p2p ; then |
971 |
- echo "CONFIG_P2P=y" >> .config |
972 |
- fi |
973 |
- |
974 |
- # Access Point Mode |
975 |
- if use ap ; then |
976 |
- echo "CONFIG_AP=y" >> .config |
977 |
- fi |
978 |
- |
979 |
- # Enable mitigation against certain attacks against TKIP |
980 |
- echo "CONFIG_DELAYED_MIC_ERROR_REPORT=y" >> .config |
981 |
- |
982 |
- # If we are using libnl 2.0 and above, enable support for it |
983 |
- # Bug 382159 |
984 |
- # Removed for now, since the 3.2 version is broken, and we don't |
985 |
- # support it. |
986 |
- if has_version ">=dev-libs/libnl-3.2"; then |
987 |
- echo "CONFIG_LIBNL32=y" >> .config |
988 |
- fi |
989 |
- |
990 |
- if use qt4 ; then |
991 |
- pushd "${S}"/wpa_gui-qt4 > /dev/null |
992 |
- eqmake4 wpa_gui.pro |
993 |
- popd > /dev/null |
994 |
- fi |
995 |
-} |
996 |
- |
997 |
-src_compile() { |
998 |
- einfo "Building wpa_supplicant" |
999 |
- emake V=1 |
1000 |
- |
1001 |
- if use wimax; then |
1002 |
- emake -C ../src/eap_peer clean |
1003 |
- emake -C ../src/eap_peer |
1004 |
- fi |
1005 |
- |
1006 |
- if use qt4 ; then |
1007 |
- pushd "${S}"/wpa_gui-qt4 > /dev/null |
1008 |
- einfo "Building wpa_gui" |
1009 |
- emake |
1010 |
- popd > /dev/null |
1011 |
- fi |
1012 |
-} |
1013 |
- |
1014 |
-src_install() { |
1015 |
- dosbin wpa_supplicant |
1016 |
- dobin wpa_cli wpa_passphrase |
1017 |
- |
1018 |
- # baselayout-1 compat |
1019 |
- if has_version "<sys-apps/baselayout-2.0.0"; then |
1020 |
- dodir /sbin |
1021 |
- dosym /usr/sbin/wpa_supplicant /sbin/wpa_supplicant |
1022 |
- dodir /bin |
1023 |
- dosym /usr/bin/wpa_cli /bin/wpa_cli |
1024 |
- fi |
1025 |
- |
1026 |
- if has_version ">=sys-apps/openrc-0.5.0"; then |
1027 |
- newinitd "${FILESDIR}/${PN}-init.d" wpa_supplicant |
1028 |
- newconfd "${FILESDIR}/${PN}-conf.d" wpa_supplicant |
1029 |
- fi |
1030 |
- |
1031 |
- exeinto /etc/wpa_supplicant/ |
1032 |
- newexe "${FILESDIR}/wpa_cli.sh" wpa_cli.sh |
1033 |
- |
1034 |
- dodoc ChangeLog {eap_testing,todo}.txt README{,-WPS} \ |
1035 |
- wpa_supplicant.conf |
1036 |
- |
1037 |
- doman doc/docbook/*.{5,8} |
1038 |
- |
1039 |
- if use qt4 ; then |
1040 |
- into /usr |
1041 |
- dobin wpa_gui-qt4/wpa_gui |
1042 |
- doicon wpa_gui-qt4/icons/wpa_gui.svg |
1043 |
- make_desktop_entry wpa_gui "WPA Supplicant Administration GUI" "wpa_gui" "Qt;Network;" |
1044 |
- fi |
1045 |
- |
1046 |
- use wimax && emake DESTDIR="${D}" -C ../src/eap_peer install |
1047 |
- |
1048 |
- if use dbus ; then |
1049 |
- pushd "${S}"/dbus > /dev/null |
1050 |
- insinto /etc/dbus-1/system.d |
1051 |
- newins dbus-wpa_supplicant.conf wpa_supplicant.conf |
1052 |
- insinto /usr/share/dbus-1/system-services |
1053 |
- doins fi.epitest.hostap.WPASupplicant.service fi.w1.wpa_supplicant1.service |
1054 |
- popd > /dev/null |
1055 |
- fi |
1056 |
- |
1057 |
- # systemd stuff |
1058 |
- systemd_dounit "${FILESDIR}"/wpa_supplicant.service |
1059 |
- systemd_newunit "${FILESDIR}"/wpa_supplicant_at.service 'wpa_supplicant@.service' |
1060 |
-} |
1061 |
- |
1062 |
-pkg_postinst() { |
1063 |
- elog "If this is a clean installation of wpa_supplicant, you" |
1064 |
- elog "have to create a configuration file named" |
1065 |
- elog "/etc/wpa_supplicant/wpa_supplicant.conf" |
1066 |
- elog |
1067 |
- elog "An example configuration file is available for reference in" |
1068 |
- elog "/usr/share/doc/${PF}/" |
1069 |
- |
1070 |
- if [[ -e ${ROOT}etc/wpa_supplicant.conf ]] ; then |
1071 |
- echo |
1072 |
- ewarn "WARNING: your old configuration file ${ROOT}etc/wpa_supplicant.conf" |
1073 |
- ewarn "needs to be moved to ${ROOT}etc/wpa_supplicant/wpa_supplicant.conf" |
1074 |
- fi |
1075 |
- |
1076 |
- # Mea culpa, feel free to remove that after some time --mgorny. |
1077 |
- local fn |
1078 |
- for fn in wpa_supplicant{,@wlan0}.service; do |
1079 |
- if [[ -e "${ROOT}"/etc/systemd/system/network.target.wants/${fn} ]] |
1080 |
- then |
1081 |
- ebegin "Moving ${fn} to multi-user.target" |
1082 |
- mv "${ROOT}"/etc/systemd/system/network.target.wants/${fn} \ |
1083 |
- "${ROOT}"/etc/systemd/system/multi-user.target.wants/ |
1084 |
- eend ${?} \ |
1085 |
- "Please try to re-enable ${fn}" |
1086 |
- fi |
1087 |
- done |
1088 |
-} |