summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2010-07-25 13:29:03 +0000
committerAlexey Shvetsov <alexxy@gentoo.org>2010-07-25 13:29:03 +0000
commiteef36505e238a8c7b97d440359ace781788b1979 (patch)
tree50e627b5589056f18359d69b660ddf5b86c350a2 /net-wireless
parentStable on alpha, bug #321493 (diff)
downloadhistorical-eef36505e238a8c7b97d440359ace781788b1979.tar.gz
historical-eef36505e238a8c7b97d440359ace781788b1979.tar.bz2
historical-eef36505e238a8c7b97d440359ace781788b1979.zip
[net-wireless/wpa_supplicant] Add patch to support wimax-1.5 linux stack
Package-Manager: portage-2.2_rc67_p258/cvs/Linux x86_64
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/wpa_supplicant/ChangeLog9
-rw-r--r--net-wireless/wpa_supplicant/Manifest16
-rw-r--r--net-wireless/wpa_supplicant/files/wpa_supplicant-0.6.10-generate-libeap-peer.patch387
-rw-r--r--net-wireless/wpa_supplicant/metadata.xml6
-rw-r--r--net-wireless/wpa_supplicant/wpa_supplicant-0.6.10-r1.ebuild271
-rw-r--r--net-wireless/wpa_supplicant/wpa_supplicant-9999.ebuild4
6 files changed, 683 insertions, 10 deletions
diff --git a/net-wireless/wpa_supplicant/ChangeLog b/net-wireless/wpa_supplicant/ChangeLog
index a8118de125b7..3f39ae117991 100644
--- a/net-wireless/wpa_supplicant/ChangeLog
+++ b/net-wireless/wpa_supplicant/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-wireless/wpa_supplicant
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog,v 1.141 2010/07/19 19:05:02 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog,v 1.142 2010/07/25 13:29:03 alexxy Exp $
+
+*wpa_supplicant-0.6.10-r1 (25 Jul 2010)
+
+ 25 Jul 2010; Alexey Shvetsov <alexxy@gentoo.org>
+ +wpa_supplicant-0.6.10-r1.ebuild,
+ +files/wpa_supplicant-0.6.10-generate-libeap-peer.patch, metadata.xml:
+ Add patch to support wimax-1.5 linux stack
19 Jul 2010; Joseph Jezak <josejx@gentoo.org>
wpa_supplicant-0.6.10.ebuild:
diff --git a/net-wireless/wpa_supplicant/Manifest b/net-wireless/wpa_supplicant/Manifest
index b4ff7044e0a3..f302ae1e2a64 100644
--- a/net-wireless/wpa_supplicant/Manifest
+++ b/net-wireless/wpa_supplicant/Manifest
@@ -5,6 +5,7 @@ AUX dbus_path_fix.patch 286 RMD160 891b3b8dc1ed75089a5be31e4a6937fe52178ad0 SHA1
AUX do-not-call-dbus-functions-with-NULL-path.patch 1931 RMD160 9ba6cc14cb6816062ba208f136785d664e58d347 SHA1 9ae40351bd125d5be0a392bff5239b6f3ce85af4 SHA256 faa5d9bbc79ff719c61ed24bc173ad07699a0b21f9fc472f09157d001299395e
AUX fix-ssid-combo.patch 3713 RMD160 97e68ffcf2ae2a0d45ca5d868e0490ce531af8b4 SHA1 5f12d283fb7bf119807ae01783db99a1f1549c9a SHA256 68e351bf69eb9cba38c093b0f252a89d2b8794039def4697b5f6851feedc7831
AUX wpa_cli.sh 1312 RMD160 d894097c699d067068d2cace9bf71dd6c8c29908 SHA1 f2887f74eb053183d13fcb7d039d91c01fb3765a SHA256 f6b62c8b1db53e94c49ad717d10f5cbb3b08127ba9f8ab9c72da14ba52f995d8
+AUX wpa_supplicant-0.6.10-generate-libeap-peer.patch 10190 RMD160 f921ae640985974fb6dfd8875f2430d5e798bee5 SHA1 ed46c39d06702369895582a24ea980867f9d01f4 SHA256 f7b9dc867ff2120279b427b0b2e5e2d50875caaed4c6cac971c83b0f7ab55b69
AUX wpa_supplicant-0.7.1-dbus_path_fix.patch 316 RMD160 bb1b43b0d369a93fa01cef10ca5ad93d9b608853 SHA1 2f9715b648ceb8c67b15a3b1b345a27b5e1dc933 SHA256 3fdc64892399b158b912dac6902ea8c161e998591d4b3bcf56bc1ab06d7a4791
AUX wpa_supplicant-0.7.2-dbus_path_fix.patch 316 RMD160 bb1b43b0d369a93fa01cef10ca5ad93d9b608853 SHA1 2f9715b648ceb8c67b15a3b1b345a27b5e1dc933 SHA256 3fdc64892399b158b912dac6902ea8c161e998591d4b3bcf56bc1ab06d7a4791
AUX wpa_supplicant-9999-dbus_path_fix.patch 836 RMD160 f8928718fff167aed2b799c87111b805b24034f2 SHA1 740a2035ed876ba410c3ba20a3af8a02bd268f8e SHA256 dbcb1a9a84b5439e1a008f5c8ce7fd4e373be63d199abefd0bcc0e86a44b08ad
@@ -15,17 +16,18 @@ DIST wpa_supplicant-0.6.10.tar.gz 1190391 RMD160 3c2b5269fd261ba695a276204088588
DIST wpa_supplicant-0.6.9.tar.gz 1178238 RMD160 e8427935b17c354c2654250501236dcd3f239307 SHA1 3764f7bda4e5c87caac2b9e134cb59996f073f09 SHA256 6e5284fa3f7c56e001fae92486eaa31340db5dd925dcb38bd572d2e8ed70f570
DIST wpa_supplicant-0.7.1.tar.gz 1604885 RMD160 03e3adecc1754c3a6b0ecdeac13fd1a03131dd5b SHA1 ea641b046a04876827b76cda246689d0de0ed94e SHA256 9576e66703a2824cd7ed4b5cc1299112046529c8360c266a4fe1e9645acb493e
DIST wpa_supplicant-0.7.2.tar.gz 1634596 RMD160 d9c804dd92ef827a4640a53ae963ea520e2fdb99 SHA1 188dd2f0a53982a84ee6fb87ffb3d7eca4bcf42b SHA256 df002a75376fc3f8bc0082771d1accadf60891515e08ac5b7ca044fa9985dcbe
+EBUILD wpa_supplicant-0.6.10-r1.ebuild 7956 RMD160 09ec163e3d2ee0f95421f3272a27179d508a39e5 SHA1 d24c5d449bf887b93ac027f31fc9b42a04c6b96c SHA256 9e1f38b41c003be6043c2b9d51d133a7834c33877e98d5dc863d4104b725a88e
EBUILD wpa_supplicant-0.6.10.ebuild 7166 RMD160 18cd6343fa422326ea709deecdd652ca197a0cb1 SHA1 035ff2e9d7279c22692db71805ff6724f9f01b1e SHA256 dce26f37b953eaf16f5448d61fb020330e21fed15187a5e8a898b4669c7171a3
EBUILD wpa_supplicant-0.6.9.ebuild 7168 RMD160 3e0c9114b3f31aa0ab3ddca2feb85167446a0bfb SHA1 dad8e4a256c5958f39bf1810ec2a70ed34a63e80 SHA256 311b42783788e869b8879b25d869ac2dc3d38f836632b318572acec5e8ed6ad4
EBUILD wpa_supplicant-0.7.1.ebuild 7246 RMD160 6de3e1630c3f83e1cfb71d304aed3c039d6b778a SHA1 56e08ff2a0f533f509775455b3acac11aa004fa8 SHA256 70879398c73004cce30959c4795bcfe092ef0b08ad6194a91cc4170f09403105
EBUILD wpa_supplicant-0.7.2-r2.ebuild 7396 RMD160 0ac0d2c4a0835e527e9e5ea098a73cbd02d397a3 SHA1 f5feb3ab1c47767ee5141a3bda139e6b75675ec4 SHA256 ad50765bf48f445879bd8609c140db82eaa22f99cb8ac7bcaa79026ec34fb4b5
-EBUILD wpa_supplicant-9999.ebuild 7529 RMD160 65051207df5cf3ede7fda795ccd67d2e70487c7b SHA1 0bb0d2213a40d158dcf706728756fe1d06eba732 SHA256 4c3e380774a16cfd5ed1122d51bf6290ab56ca4a753024d559cbc9f68336a272
-MISC ChangeLog 30358 RMD160 d8b625964e4eef326765e4dbe112fc467b39f296 SHA1 ffac1d42378a1e2a15652205ebd6cbbd799e4338 SHA256 484d0fae5fa281f7ccd6c7b5a82cd4c4ad36db78c85d76f419fc055b591385b2
-MISC metadata.xml 651 RMD160 c1b0aca5e38265dbd80247ec686a0b7c3f8fb171 SHA1 6c5d98fa137ddb0f8a5866af68032cf769cc315c SHA256 88eec5cdc25fc735e42d5b581463e576a0f4a5df8e7694e1c8b9c24ea8358b93
+EBUILD wpa_supplicant-9999.ebuild 7524 RMD160 2cf7ad48c20af4f12feaf3f880ebf302338822b1 SHA1 51f1f20766c5aa57a33fb4eb3b2e723a85ecff77 SHA256 86418442df6697b96ed7835d97dc82cc10c4c524c321549dd7196f914f07dac8
+MISC ChangeLog 30605 RMD160 dc563176d30cbbf6b80ec574085492b52336ca41 SHA1 72857d04ab4f96672c35e6939e1f307fe2236348 SHA256 7845c61ed26c3b8734bd28de33e63d70c8226fbca1ca3249f4ab48a67fb37689
+MISC metadata.xml 832 RMD160 14771aa4f3533875b5f3f900ee513dcda354873d SHA1 01f054ebe9f2bebdf8814558085c65ce9d8a15f6 SHA256 a8de983e560152d0491219686afa13bde6e5aa9fcade3b79e77f179c61bb164c
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.15 (GNU/Linux)
+Version: GnuPG v2.0.16 (GNU/Linux)
-iEYEARECAAYFAkxEod0ACgkQcsIHjyDViGR2XwCeK3Lw6hApBC2mE3vjsg9/XVEx
-6IMAoMUcY13FIoYe1miwnKQHJyHDtumc
-=bOzz
+iEYEARECAAYFAkxMPEoACgkQ5BmOA85PVLivMQCcDdQYrlW6pIx4fM/KFQB1k85J
+FZcAn1uU8621iVwZiADCWvFIulZOA+3b
+=kKGp
-----END PGP SIGNATURE-----
diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-0.6.10-generate-libeap-peer.patch b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.6.10-generate-libeap-peer.patch
new file mode 100644
index 000000000000..ac2b8ec5f4ec
--- /dev/null
+++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.6.10-generate-libeap-peer.patch
@@ -0,0 +1,387 @@
+diff -urN wpa_supplicant-0.6.10.orig/src/eap_peer/eap_methods.c wpa_supplicant-0.6.10/src/eap_peer/eap_methods.c
+--- wpa_supplicant-0.6.10.orig/src/eap_peer/eap_methods.c 2010-01-12 17:55:02.000000000 +0300
++++ wpa_supplicant-0.6.10/src/eap_peer/eap_methods.c 2010-07-22 03:45:02.000000000 +0400
+@@ -339,6 +339,146 @@
+ }
+
+
++// ######################################################
++
++#ifdef EAP_MD5
++ int eap_peer_md5_register(void);
++#endif /* EAP_MD5 */
++
++#ifdef EAP_TLS
++ int eap_peer_tls_register(void);
++#endif /* EAP_TLS */
++
++#ifdef EAP_MSCHAPv2
++ int eap_peer_mschapv2_register(void);
++#endif /* EAP_MSCHAPv2 */
++
++#ifdef EAP_PEAP
++ int eap_peer_peap_register(void);
++#endif /* EAP_PEAP */
++
++#ifdef EAP_TTLS
++ int eap_peer_ttls_register(void);
++#endif /* EAP_TTLS */
++
++#ifdef EAP_GTC
++ int eap_peer_gtc_register(void);
++#endif /* EAP_GTC */
++
++#ifdef EAP_OTP
++ int eap_peer_otp_register(void);
++#endif /* EAP_OTP */
++
++#ifdef EAP_SIM
++ int eap_peer_sim_register(void);
++#endif /* EAP_SIM */
++
++#ifdef EAP_LEAP
++ int eap_peer_leap_register(void);
++#endif /* EAP_LEAP */
++
++#ifdef EAP_PSK
++ int eap_peer_psk_register(void);
++#endif /* EAP_PSK */
++
++#ifdef EAP_AKA
++ int eap_peer_aka_register(void);
++#endif /* EAP_AKA */
++
++#ifdef EAP_AKA_PRIME
++ int eap_peer_aka_prime_register(void);
++#endif /* EAP_AKA_PRIME */
++
++#ifdef EAP_FAST
++ int eap_peer_fast_register(void);
++#endif /* EAP_FAST */
++
++#ifdef EAP_PAX
++ int eap_peer_pax_register(void);
++#endif /* EAP_PAX */
++
++#ifdef EAP_SAKE
++ int eap_peer_sake_register(void);
++#endif /* EAP_SAKE */
++
++#ifdef EAP_GPSK
++ int eap_peer_gpsk_register(void);
++#endif /* EAP_GPSK */
++
++#ifdef EAP_WSC
++ int eap_peer_wsc_register(void);
++#endif /* EAP_WSC */
++
++#ifdef EAP_IKEV2
++ int eap_peer_ikev2_register(void);
++#endif /* EAP_IKEV2 */
++
++#ifdef EAP_VENDOR_TEST
++ int eap_peer_vendor_test_register(void);
++#endif /* EAP_VENDOR_TEST */
++
++#ifdef EAP_TNC
++ int eap_peer_tnc_register(void);
++#endif
++
++// ######################################################
++
++int eap_peer_set_method(int eap_method)
++{
++ typedef int (*eap_method_register)();
++
++ static eap_method_register eap_method_register_funcs[] =
++ {
++ NULL, /* EAP_TYPE_NONE = 0, */
++ NULL, /* EAP_TYPE_IDENTITY */
++ NULL, /* EAP_TYPE_NOTIFICATION */
++ NULL, /* EAP_TYPE_NAK */
++#ifdef EAP_MD5
++ eap_peer_md5_register,
++#else
++ NULL, /* EAP_TYPE_MD5 */
++#endif
++ NULL, // EAP_TYPE_OTP
++ NULL, // EAP_TYPE_GTC
++ NULL, // EAP_TYPE_LEAP
++ NULL, // EAP_TYPE_SIM
++ NULL, // EAP_TYPE_AKA
++
++ NULL, // EAP_TYPE_PEAP
++ NULL, // EAP_TYPE_MSCHAPV2
++ NULL, // EAP_TYPE_TLV
++#ifdef EAP_TLS
++ eap_peer_tls_register,
++#else
++ NULL, // EAP_TYPE_TLS
++#endif
++ NULL, // EAP_TYPE_TNC
++ NULL, // EAP_TYPE_FAST
++ NULL, // EAP_TYPE_PAX
++ NULL, // EAP_TYPE_PSK
++ NULL, // EAP_TYPE_SAKE
++ NULL, // EAP_TYPE_IKEV2
++ NULL, // EAP_TYPE_AKA_PRIME
++#ifdef EAP_TTLS
++ eap_peer_ttls_register,
++#else
++ NULL, // EAP_TYPE_TTLS
++#endif
++ NULL // EAP_TYPE_GPSK
++
++ };
++
++
++ if ( eap_method_register_funcs[eap_method] != NULL )
++ {
++ eap_method_register_funcs[eap_method]();
++ return 1;
++ }
++ else
++ return -1;
++}
++
++
+ /**
+ * eap_peer_register_methods - Register statically linked EAP peer methods
+ * Returns: 0 on success, -1 on failure
+diff -urN wpa_supplicant-0.6.10.orig/src/eap_peer/libeap0.pc wpa_supplicant-0.6.10/src/eap_peer/libeap0.pc
+--- wpa_supplicant-0.6.10.orig/src/eap_peer/libeap0.pc 1970-01-01 03:00:00.000000000 +0300
++++ wpa_supplicant-0.6.10/src/eap_peer/libeap0.pc 2010-07-22 03:45:02.000000000 +0400
+@@ -0,0 +1,10 @@
++prefix=/usr
++exec_prefix=/usr
++libdir=${exec_prefix}/lib
++includedir=${prefix}/include/eap_peer
++
++Name: libeap0
++Description: EAP Peer Library API
++Version: 0.6.7
++Libs: -L${libdir} -leap
++Cflags: -I${includedir}
+diff -urN wpa_supplicant-0.6.10.orig/src/eap_peer/Makefile wpa_supplicant-0.6.10/src/eap_peer/Makefile
+--- wpa_supplicant-0.6.10.orig/src/eap_peer/Makefile 2010-01-12 17:55:02.000000000 +0300
++++ wpa_supplicant-0.6.10/src/eap_peer/Makefile 2010-07-22 03:45:31.000000000 +0400
+@@ -1,12 +1,179 @@
+-all:
+- @echo Nothing to be made.
++LIBEAP_NAME = libeap
++LIBEAP_CURRENT = 0
++LIBEAP_REVISION = 0
++LIBEAP_AGE = 0
++
++LIBEAP = $(LIBEAP_NAME).so.$(LIBEAP_CURRENT).$(LIBEAP_REVISION).$(LIBEAP_AGE)
++LIBEAP_SO = $(LIBEAP_NAME).so.$(LIBEAP_CURRENT)
++
++.PHONY: all clean install uninstall
++
++all: $(LIBEAP)
++
++ifndef CC
++CC=gcc
++endif
++
++ifndef CFLAGS
++CFLAGS = -MMD -O2 -Wall -g
++endif
++
++CFLAGS += -fPIC
++
++CONFIG_TLS=openssl
++
++INCLUDE_INSTALL_DIR=/usr/include/eap_peer
++
++CFLAGS += -I.
++CFLAGS += -I ..
++CFLAGS += -I ../crypto
++CFLAGS += -I ../utils
++CFLAGS += -I ../common
++
++# at least for now, need to include config_ssid.h and config_blob.h from
++# wpa_supplicant directory
++CFLAGS += -I ../../wpa_supplicant
++
++OBJS_both += ../utils/common.o
++OBJS_both += ../utils/os_unix.o
++OBJS_both += ../utils/wpa_debug.o
++OBJS_both += ../utils/base64.o
++OBJS_both += ../utils/wpabuf.o
++OBJS_both += ../crypto/md5.o
++OBJS_both += ../crypto/rc4.o
++OBJS_both += ../crypto/md4.o
++OBJS_both += ../crypto/sha1.o
++OBJS_both += ../crypto/des.o
++OBJS_both += ../crypto/aes_wrap.o
++OBJS_both += ../crypto/aes.o
++OBJS_both += ../crypto/ms_funcs.o
++OBJS_both += ../crypto/sha256.o
++
++
++OBJS_both += ../eap_common/eap_peap_common.o
++OBJS_both += ../eap_common/eap_psk_common.o
++OBJS_both += ../eap_common/eap_pax_common.o
++OBJS_both += ../eap_common/eap_sake_common.o
++OBJS_both += ../eap_common/eap_gpsk_common.o
++OBJS_both += ../eap_common/chap.o
++
++OBJS_peer += ../eap_peer/eap_tls.o
++OBJS_peer += ../eap_peer/eap_peap.o
++OBJS_peer += ../eap_peer/eap_ttls.o
++OBJS_peer += ../eap_peer/eap_md5.o
++OBJS_peer += ../eap_peer/eap_mschapv2.o
++OBJS_peer += ../eap_peer/mschapv2.o
++OBJS_peer += ../eap_peer/eap_otp.o
++OBJS_peer += ../eap_peer/eap_gtc.o
++OBJS_peer += ../eap_peer/eap_leap.o
++OBJS_peer += ../eap_peer/eap_psk.o
++OBJS_peer += ../eap_peer/eap_pax.o
++OBJS_peer += ../eap_peer/eap_sake.o
++OBJS_peer += ../eap_peer/eap_gpsk.o
++OBJS_peer += ../eap_peer/eap.o
++OBJS_peer += ../eap_common/eap_common.o
++OBJS_peer += ../eap_peer/eap_methods.o
++OBJS_peer += ../eap_peer/eap_tls_common.o
++
++CFLAGS += -DEAP_TLS
++CFLAGS += -DEAP_PEAP
++CFLAGS += -DEAP_TTLS
++CFLAGS += -DEAP_MD5
++CFLAGS += -DEAP_MSCHAPv2
++CFLAGS += -DEAP_GTC
++CFLAGS += -DEAP_OTP
++CFLAGS += -DEAP_LEAP
++CFLAGS += -DEAP_PSK
++CFLAGS += -DEAP_PAX
++CFLAGS += -DEAP_SAKE
++CFLAGS += -DEAP_GPSK -DEAP_GPSK_SHA256
++CFLAGS += -DEAP_TLS_FUNCS
++
++CFLAGS += -DIEEE8021X_EAPOL
++
++ifeq ($(CONFIG_TLS), openssl)
++CFLAGS += -DEAP_TLS_OPENSSL
++OBJS_both += ../crypto/tls_openssl.o
++OBJS_both += ../crypto/crypto_openssl.o
++LIBS += -lssl -lcrypto
++CFLAGS += -DINTERNAL_SHA256
++endif
++
++ifeq ($(CONFIG_TLS), internal)
++OBJS_both += ../crypto/tls_internal.o
++OBJS_both += ../tls/tlsv1_common.o ../../tls/tlsv1_record.o
++OBJS_both += ../tls/tlsv1_cred.o
++OBJS_both += ../tls/asn1.o ../../tls/x509v3.o
++OBJS_both += ../crypto/crypto_internal.o ../../tls/rsa.o ../../tls/bignum.o
++
++OBJS_peer += ../tls/tlsv1_client.o
++OBJS_peer += ../tls/tlsv1_client_write.o ../../tls/tlsv1_client_read.o
++CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT
++
++OBJS_server += ../tls/tlsv1_server.o
++OBJS_server += ../tls/tlsv1_server_write.o ../../tls/tlsv1_server_read.o
++CFLAGS += -DCONFIG_TLS_INTERNAL_SERVER
++
++CFLAGS += -DCONFIG_TLS_INTERNAL
++CFLAGS += -DCONFIG_CRYPTO_INTERNAL
++CFLAGS += -DCONFIG_INTERNAL_X509
++CFLAGS += -DINTERNAL_AES
++CFLAGS += -DINTERNAL_SHA1
++CFLAGS += -DINTERNAL_SHA256
++CFLAGS += -DINTERNAL_MD5
++CFLAGS += -DINTERNAL_MD4
++CFLAGS += -DINTERNAL_DES
++ifdef CONFIG_INTERNAL_LIBTOMMATH
++CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
++else
++LIBS += -ltommath
++endif
++endif
++
++ifndef LDO
++LDO=$(CC)
++endif
++
++
++OBJS_lib=$(OBJS_both) $(OBJS_peer)
++
++ #$(OBJS_server)
++
++CFLAGS += -fPIC -DPIC
++LDFLAGS += -shared
++
++$(LIBEAP): $(OBJS_lib)
++ $(LDO) $(LDFLAGS) $(OBJS_lib) -Wl,-soname -Wl,$(LIBEAP_SO) -o $(LIBEAP) $(LIBS)
++
++
++INCLUDE_HEADERS = ../utils/includes.h ../utils/common.h eap.h ../common/defs.h ../eap_common/eap_defs.h eap_methods.h eap_config.h ../utils/wpabuf.h ../crypto/tls.h ../utils/build_config.h ../utils/os.h ../utils/wpa_debug.h
++
++install:
++
++ mkdir -p $(DESTDIR)/usr/lib
++# copy the lib file to std lib location
++ cp $(LIBEAP) $(DESTDIR)/usr/lib
++
++# copy the headers reqd by apps using eap peer library in its own subfolder under /usr/include
++ test -z $(DESTDIR)/$(INCLUDE_INSTALL_DIR) || mkdir -p $(DESTDIR)/$(INCLUDE_INSTALL_DIR)
++
++# the header folder structure needs to be preserved.
++ test -z $(DESTDIR)/$(INCLUDE_INSTALL_DIR)/eap_common || mkdir -p $(DESTDIR)/$(INCLUDE_INSTALL_DIR)/eap_common
++
++ cp $(INCLUDE_HEADERS) $(DESTDIR)/$(INCLUDE_INSTALL_DIR)
++
++ mv $(DESTDIR)/$(INCLUDE_INSTALL_DIR)/eap_defs.h $(DESTDIR)/$(INCLUDE_INSTALL_DIR)/eap_common
++
++ mkdir -p $(DESTDIR)/usr/lib/pkgconfig
++ cp libeap0.pc $(DESTDIR)/usr/lib/pkgconfig
++
++uninstall:
++
++ rm $(DESTDIR)/usr/lib/$(LIBEAP)
++ rm -fr $(DESTDIR)/$(INCLUDE_INSTALL_DIR)
++ rm -f $(DESTDIR)/usr/lib/pkgconfig/libeap0.pc
+
+ clean:
+- for d in $(SUBDIRS); do make -C $$d clean; done
+- rm -f *~ *.o *.so *.d
++ rm -f core *~ *.o *.d libeap.a $(LIBEAP)
+
+-install:
+- if ls *.so >/dev/null 2>&1; then \
+- install -d $(DESTDIR)$(LIBDIR)/wpa_supplicant && \
+- cp *.so $(DESTDIR)$(LIBDIR)/wpa_supplicant \
+- ; fi
++-include $(OBJS:%.o=%.d)
+diff -urN wpa_supplicant-0.6.10.orig/wpa_supplicant/Makefile wpa_supplicant-0.6.10/wpa_supplicant/Makefile
+--- wpa_supplicant-0.6.10.orig/wpa_supplicant/Makefile 2010-01-12 17:55:02.000000000 +0300
++++ wpa_supplicant-0.6.10/wpa_supplicant/Makefile 2010-07-22 04:04:36.000000000 +0400
+@@ -6,6 +6,8 @@
+ CFLAGS = -MMD -O2 -Wall -g
+ endif
+
++CFLAGS += -fPIC
++
+ export LIBDIR ?= /usr/local/lib/
+ export BINDIR ?= /usr/local/sbin/
+
+@@ -17,7 +19,7 @@
+
+ ALL=wpa_supplicant wpa_passphrase wpa_cli
+
+-all: verify_config $(ALL) dynamic_eap_methods
++all: verify_config $(ALL) dynamic_eap_methods eap_peer_lib
+
+ verify_config:
+ @if [ ! -r .config ]; then \
+@@ -1102,6 +1104,9 @@
+ wpa_cli: $(OBJS_c)
+ $(LDO) $(LDFLAGS) -o wpa_cli $(OBJS_c) $(LIBS_c)
+
++eap_peer_lib:
++ $(MAKE) -C ../src/eap_peer
++
+ link_test: $(OBJS) $(OBJS_h) tests/link_test.o
+ $(LDO) $(LDFLAGS) -o link_test $(OBJS) $(OBJS_h) tests/link_test.o $(LIBS)
+
diff --git a/net-wireless/wpa_supplicant/metadata.xml b/net-wireless/wpa_supplicant/metadata.xml
index efaff3713119..dd5be8ca581f 100644
--- a/net-wireless/wpa_supplicant/metadata.xml
+++ b/net-wireless/wpa_supplicant/metadata.xml
@@ -5,6 +5,10 @@
<email>gurligebis@gentoo.org</email>
<name>Bjarke Istrup Pedersen</name>
</maintainer>
+ <maintainer>
+ <email>alexxy@gentoo.org</email>
+ <name>Alexey Shvetsov</name>
+ </maintainer>
<herd>mobile</herd>
<use>
<flag name='eap-sim'>Add support for EAP-SIM authentication algorithm</flag>
@@ -12,5 +16,7 @@
<flag name='madwifi'>Add support for madwifi (Atheros chipset)</flag>
<flag name='ps3'>Add support for ps3 hypervisor driven gelic wifi</flag>
<flag name='wps'>Add support for Wi-Fi Protected Setup</flag>
+ <flag name='wimax'>Add support for Wimax EAP-PEER authentication
+ algorithm</flag>
</use>
</pkgmetadata>
diff --git a/net-wireless/wpa_supplicant/wpa_supplicant-0.6.10-r1.ebuild b/net-wireless/wpa_supplicant/wpa_supplicant-0.6.10-r1.ebuild
new file mode 100644
index 000000000000..3633427736ff
--- /dev/null
+++ b/net-wireless/wpa_supplicant/wpa_supplicant-0.6.10-r1.ebuild
@@ -0,0 +1,271 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/wpa_supplicant-0.6.10-r1.ebuild,v 1.1 2010/07/25 13:29:03 alexxy Exp $
+
+EAPI="2"
+
+inherit eutils toolchain-funcs qt4
+
+DESCRIPTION="IEEE 802.1X/WPA supplicant for secure wireless transfers"
+HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/"
+SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz"
+LICENSE="|| ( GPL-2 BSD )"
+
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd"
+IUSE="dbus debug gnutls eap-sim fasteap madwifi ps3 qt4 readline ssl wimax wps kernel_linux kernel_FreeBSD"
+
+RDEPEND="dbus? ( sys-apps/dbus )
+ kernel_linux? (
+ eap-sim? ( sys-apps/pcsc-lite )
+ madwifi? ( ||
+ ( >net-wireless/madwifi-ng-tools-0.9.3
+ net-wireless/madwifi-old )
+ )
+ dev-libs/libnl
+ )
+ !kernel_linux? ( net-libs/libpcap )
+ qt4? ( x11-libs/qt-gui:4
+ x11-libs/qt-svg:4 )
+ readline? ( sys-libs/ncurses sys-libs/readline )
+ ssl? ( dev-libs/openssl )
+ !ssl? ( gnutls? ( net-libs/gnutls ) )
+ !ssl? ( !gnutls? ( dev-libs/libtommath ) )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S="${WORKDIR}/${P}/${PN}"
+
+pkg_setup() {
+ if use fasteap && (use gnutls || use ssl) ; then
+ die "If you use fasteap, you must build with wpa_supplicant's internal TLS implementation. That is, both 'gnutls' and 'ssl' USE flags must be disabled"
+ fi
+
+ if use gnutls && use ssl ; then
+ einfo "You have both 'gnutls' and 'ssl' USE flags enabled: defaulting to USE=\"ssl\""
+ fi
+}
+
+src_prepare() {
+ # net/bpf.h needed for net-libs/libpcap on Gentoo/FreeBSD
+ sed -i \
+ -e "s:\(#include <pcap\.h>\):#include <net/bpf.h>\n\1:" \
+ ../src/l2_packet/l2_packet_freebsd.c || die
+
+ # People seem to take the example configuration file too literally (bug #102361)
+ sed -i \
+ -e "s:^\(opensc_engine_path\):#\1:" \
+ -e "s:^\(pkcs11_engine_path\):#\1:" \
+ -e "s:^\(pkcs11_module_path\):#\1:" \
+ wpa_supplicant.conf || die
+
+ # Change configuration to match Gentoo locations (bug #143750)
+ sed -i \
+ -e "s:/usr/lib/opensc:/usr/$(get_libdir):" \
+ -e "s:/usr/lib/pkcs11:/usr/$(get_libdir):" \
+ wpa_supplicant.conf || die
+
+ epatch "${FILESDIR}"/dbus_path_fix.patch
+
+ if use wimax; then
+ cd "${WORKDIR}/${P}"
+ epatch "${FILESDIR}/${P}-generate-libeap-peer.patch"
+ fi
+}
+
+src_configure() {
+ # Toolchain setup
+ echo "CC = $(tc-getCC)" > .config
+
+ # Basic setup
+ echo "CONFIG_CTRL_IFACE=y" >> .config
+ echo "CONFIG_BACKEND=file" >> .config
+
+ # Basic authentication methods
+ # NOTE: we don't set GPSK or SAKE as they conflict
+ # with the below options
+ echo "CONFIG_EAP_GTC=y" >> .config
+ echo "CONFIG_EAP_MD5=y" >> .config
+ echo "CONFIG_EAP_OTP=y" >> .config
+ echo "CONFIG_EAP_PAX=y" >> .config
+ echo "CONFIG_EAP_PSK=y" >> .config
+ echo "CONFIG_EAP_TLV=y" >> .config
+ echo "CONFIG_IEEE8021X_EAPOL=y" >> .config
+ echo "CONFIG_PKCS12=y" >> .config
+ echo "CONFIG_PEERKEY=y" >> .config
+ echo "CONFIG_EAP_LEAP=y" >> .config
+ echo "CONFIG_EAP_MSCHAPV2=y" >> .config
+ echo "CONFIG_EAP_PEAP=y" >> .config
+ echo "CONFIG_EAP_TLS=y" >> .config
+ echo "CONFIG_EAP_TTLS=y" >> .config
+
+ if use dbus ; then
+ echo "CONFIG_CTRL_IFACE_DBUS=y" >> .config
+ fi
+
+ if use debug ; then
+ echo "CONFIG_DEBUG_FILE=y" >> .config
+ fi
+
+ if use eap-sim ; then
+ # Smart card authentication
+ echo "CONFIG_EAP_SIM=y" >> .config
+ echo "CONFIG_EAP_AKA=y" >> .config
+ echo "CONFIG_EAP_AKA_PRIME=y" >> .config
+ echo "CONFIG_PCSC=y" >> .config
+ fi
+
+ if use fasteap ; then
+ echo "CONFIG_EAP_FAST=y" >> .config
+ fi
+
+ if use readline ; then
+ # readline/history support for wpa_cli
+ echo "CONFIG_READLINE=y" >> .config
+ fi
+
+ # SSL authentication methods
+ if use ssl ; then
+ echo "CONFIG_TLS=openssl" >> .config
+ echo "CONFIG_SMARTCARD=y" >> .config
+ elif use gnutls ; then
+ echo "CONFIG_TLS=gnutls" >> .config
+ echo "CONFIG_GNUTLS_EXTRA=y" >> .config
+ else
+ echo "CONFIG_TLS=internal" >> .config
+ fi
+
+ if use kernel_linux ; then
+ # Linux specific drivers
+ echo "CONFIG_DRIVER_ATMEL=y" >> .config
+ #echo "CONFIG_DRIVER_BROADCOM=y" >> .config
+ #echo "CONFIG_DRIVER_HERMES=y" >> .config
+ echo "CONFIG_DRIVER_HOSTAP=y" >> .config
+ echo "CONFIG_DRIVER_IPW=y" >> .config
+ echo "CONFIG_DRIVER_NDISWRAPPER=y" >> .config
+ echo "CONFIG_DRIVER_NL80211=y" >> .config
+ #echo "CONFIG_DRIVER_PRISM54=y" >> .config
+ echo "CONFIG_DRIVER_RALINK=y" >> .config
+ echo "CONFIG_DRIVER_WEXT=y" >> .config
+ echo "CONFIG_DRIVER_WIRED=y" >> .config
+
+ if use madwifi ; then
+ # Add include path for madwifi-driver headers
+ echo "CFLAGS += -I/usr/include/madwifi" >> .config
+ echo "CONFIG_DRIVER_MADWIFI=y" >> .config
+ fi
+
+ if use ps3 ; then
+ echo "CONFIG_DRIVER_PS3=y" >> .config
+ fi
+
+ elif use kernel_FreeBSD ; then
+ # FreeBSD specific driver
+ echo "CONFIG_DRIVER_BSD=y" >> .config
+ fi
+
+ # Wi-Fi Protected Setup (WPS)
+ if use wps ; then
+ echo "CONFIG_WPS=y" >> .config
+ fi
+
+ # Enable mitigation against certain attacks against TKIP
+ echo "CONFIG_DELAYED_MIC_ERROR_REPORT=y" >> .config
+}
+
+src_compile() {
+ emake || die "emake failed"
+
+ if use qt4 ; then
+ cd "${S}"/wpa_gui-qt4
+ eqmake4 wpa_gui.pro
+ emake || die "Qt4 wpa_gui compilation failed"
+ fi
+}
+
+src_install() {
+ dosbin wpa_supplicant || die
+ dobin wpa_cli wpa_passphrase || die
+
+ # baselayout-1 compat
+ if has_version "<sys-apps/baselayout-2.0.0"; then
+ dodir /sbin
+ dosym /usr/sbin/wpa_supplicant /sbin/wpa_supplicant || die
+ dodir /bin
+ dosym /usr/bin/wpa_cli /bin/wpa_cli || die
+ fi
+
+ if has_version ">=sys-apps/openrc-0.5.0"; then
+ newinitd "$FILESDIR"/${PN}-init.d wpa_supplicant
+ newconfd "$FILESDIR"/${PN}-conf.d wpa_supplicant
+ fi
+
+ exeinto /etc/wpa_supplicant/
+ newexe "${FILESDIR}"/wpa_cli.sh wpa_cli.sh
+
+ dodoc ChangeLog {eap_testing,todo}.txt README{,-WPS} \
+ wpa_supplicant.conf || die "dodoc failed"
+
+ doman doc/docbook/*.{5,8} || die "doman failed"
+
+ if use qt4 ; then
+ into /usr
+ dobin wpa_gui-qt4/wpa_gui || die
+ fi
+
+ if use qt4 ; then
+ doicon wpa_gui-qt4/icons/wpa_gui.svg || die "Icon not found"
+ make_desktop_entry wpa_gui "WPA Supplicant Administration GUI" "wpa_gui" "Qt;Network;"
+ fi
+
+ if use wimax; then
+ insinto /usr/include/eap_peer
+ doins ../src/utils/includes.h
+ doins ../src/utils/common.h
+ doins ../src/eap_peer/eap.h
+ doins ../src/common/defs.h
+ doins ../src/eap_peer/eap_methods.h
+ doins ../src/eap_peer/eap_config.h
+ doins ../src/utils/wpabuf.h
+ doins ../src/crypto/tls.h
+ doins ../src/utils/build_config.h
+ doins ../src/utils/os.h
+ doins ../src/utils/wpa_debug.h
+ insinto /usr/include/eap_peer/eap_common
+ doins ../src/eap_common/eap_defs.h || die
+ insinto /usr/lib/pkgconfig
+ doins ../src/eap_peer/libeap0.pc
+ dolib.so ../src/eap_peer/libeap.so.0.0.0
+ dosym /usr/$(get_libdir)/libeap.so.0.0.0 /usr/$(get_libdir)/libeap.so.0
+ fi
+
+ if use dbus ; then
+ insinto /etc/dbus-1/system.d
+ newins dbus-wpa_supplicant.conf wpa_supplicant.conf || die
+ insinto /usr/share/dbus-1/system-services
+ newins dbus-wpa_supplicant.service 'fi.epitest.hostap.WPASupplicant.service' || die
+ keepdir /var/run/wpa_supplicant
+ fi
+}
+
+pkg_postinst() {
+ einfo "If this is a clean installation of wpa_supplicant, you"
+ einfo "have to create a configuration file named"
+ einfo "/etc/wpa_supplicant/wpa_supplicant.conf"
+ einfo
+ einfo "An example configuration file is available for reference in"
+ einfo "/usr/share/doc/${PF}/"
+
+ if [[ -e ${ROOT}etc/wpa_supplicant.conf ]] ; then
+ echo
+ ewarn "WARNING: your old configuration file ${ROOT}etc/wpa_supplicant.conf"
+ ewarn "needs to be moved to ${ROOT}etc/wpa_supplicant/wpa_supplicant.conf"
+ fi
+
+ if use madwifi ; then
+ echo
+ einfo "This package compiles against the headers installed by"
+ einfo "madwifi-old, madwifi-ng or madwifi-ng-tools."
+ einfo "You should re-emerge ${PN} after upgrading these packages."
+ fi
+}
diff --git a/net-wireless/wpa_supplicant/wpa_supplicant-9999.ebuild b/net-wireless/wpa_supplicant/wpa_supplicant-9999.ebuild
index 8fdda2ced7c8..39eca79b9b1b 100644
--- a/net-wireless/wpa_supplicant/wpa_supplicant-9999.ebuild
+++ b/net-wireless/wpa_supplicant/wpa_supplicant-9999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/wpa_supplicant-9999.ebuild,v 1.4 2010/03/22 08:51:09 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/wpa_supplicant-9999.ebuild,v 1.5 2010/07/25 13:29:03 alexxy Exp $
EAPI="2"
@@ -22,7 +22,7 @@ HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/"
LICENSE="|| ( GPL-2 BSD )"
SLOT="0"
-KEYWORDS="-*"
+KEYWORDS=""
IUSE="dbus debug gnutls eap-sim fasteap madwifi ps3 qt4 readline ssl wps kernel_linux kernel_FreeBSD"
DEPEND="dev-libs/libnl