diff options
author | Roy Marples <uberlord@gentoo.org> | 2007-01-23 14:08:41 +0000 |
---|---|---|
committer | Roy Marples <uberlord@gentoo.org> | 2007-01-23 14:08:41 +0000 |
commit | 0d61716fb9a88255349d528fcb65a0a38e78b0f2 (patch) | |
tree | ba1621424deba2482d0a083744aec622d11f2cfa /net-wireless/wpa_supplicant | |
parent | Added ~x86-fbsd keyword. (diff) | |
download | gentoo-2-0d61716fb9a88255349d528fcb65a0a38e78b0f2.tar.gz gentoo-2-0d61716fb9a88255349d528fcb65a0a38e78b0f2.tar.bz2 gentoo-2-0d61716fb9a88255349d528fcb65a0a38e78b0f2.zip |
Add support for gnutls and internal tls, #163390 thanks to
Nikolas 'Atrus' Coukouma.
(Portage version: 2.1.2-r2)
Diffstat (limited to 'net-wireless/wpa_supplicant')
-rw-r--r-- | net-wireless/wpa_supplicant/ChangeLog | 7 | ||||
-rw-r--r-- | net-wireless/wpa_supplicant/files/wpa_supplicant-0.5.7-gnutls.patch | 15 | ||||
-rw-r--r-- | net-wireless/wpa_supplicant/wpa_supplicant-0.5.7.ebuild | 38 |
3 files changed, 41 insertions, 19 deletions
diff --git a/net-wireless/wpa_supplicant/ChangeLog b/net-wireless/wpa_supplicant/ChangeLog index 073876453ea6..c6519a8a37b3 100644 --- a/net-wireless/wpa_supplicant/ChangeLog +++ b/net-wireless/wpa_supplicant/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-wireless/wpa_supplicant # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog,v 1.89 2007/01/15 14:34:19 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog,v 1.90 2007/01/23 14:08:41 uberlord Exp $ + + 23 Jan 2007; Roy Marples <uberlord@gentoo.org> + +files/wpa_supplicant-0.5.7-gnutls.patch, wpa_supplicant-0.5.7.ebuild: + Add support for gnutls and internal tls, #163390 thanks to + Nikolas 'Atrus' Coukouma. *wpa_supplicant-0.5.7 (15 Jan 2007) diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-0.5.7-gnutls.patch b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.5.7-gnutls.patch new file mode 100644 index 000000000000..9278e7a31962 --- /dev/null +++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.5.7-gnutls.patch @@ -0,0 +1,15 @@ +--- tls_gnutls.c.orig 2006-09-09 03:47:28 +0100 ++++ tls_gnutls.c 2007-01-23 13:39:44 +0000 +@@ -1029,8 +1029,11 @@ + const u8 *in_data, size_t in_len, + size_t *out_len) + { ++ u8 *appl_data = NULL; ++ size_t appl_data_len = 0; ++ + return tls_connection_handshake(ssl_ctx, conn, in_data, in_len, +- out_len); ++ out_len, appl_data, appl_data_len); + } + + diff --git a/net-wireless/wpa_supplicant/wpa_supplicant-0.5.7.ebuild b/net-wireless/wpa_supplicant/wpa_supplicant-0.5.7.ebuild index d3ddf55a58b8..49969548901a 100644 --- a/net-wireless/wpa_supplicant/wpa_supplicant-0.5.7.ebuild +++ b/net-wireless/wpa_supplicant/wpa_supplicant-0.5.7.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 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.5.7.ebuild,v 1.1 2007/01/15 14:34:19 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/wpa_supplicant-0.5.7.ebuild,v 1.2 2007/01/23 14:08:41 uberlord Exp $ inherit eutils toolchain-funcs @@ -11,7 +11,7 @@ LICENSE="|| ( GPL-2 BSD )" SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" -IUSE="dbus gsm madwifi qt3 qt4 readline ssl kernel_linux kernel_FreeBSD" +IUSE="dbus gnutls gsm madwifi qt3 qt4 readline ssl kernel_linux kernel_FreeBSD" RDEPEND="dbus? ( sys-apps/dbus ) kernel_linux? ( @@ -24,15 +24,11 @@ RDEPEND="dbus? ( sys-apps/dbus ) qt4? ( =x11-libs/qt-4* ) !qt4? ( qt3? ( =x11-libs/qt-3* ) ) readline? ( sys-libs/ncurses sys-libs/readline ) - ssl? ( dev-libs/openssl )" + ssl? ( dev-libs/openssl ) + gnutls? ( net-libs/gnutls ) + !ssl? ( !gnutls? ( dev-libs/libtommath ) )" pkg_setup() { - if use kernel_linux ; then - ewarn - ewarn "${PN} requires kernel support for Packet Socket (CONFIG_PACKET)." - ewarn - fi - if use qt3 && use qt4; then einfo "You have USE=\"qt3 qt4\" selected, defaulting to USE=\"qt4\"" fi @@ -49,6 +45,8 @@ src_unpack() { unpack ${A} cd "${S}" + epatch "${FILESDIR}/${P}"-gnutls.patch + # net/bpf.h needed for net-libs/libpcap on Gentoo FreeBSD sed -i \ -e "s:\(#include <pcap\.h>\):#include <net/bpf.h>\n\1:" \ @@ -73,6 +71,11 @@ src_unpack() { 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 @@ -92,12 +95,13 @@ src_unpack() { if use ssl ; then # SSL authentication methods - 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 - echo "CONFIG_SMARTCARD=y" >> .config + 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 @@ -117,9 +121,7 @@ src_unpack() { echo "CFLAGS += -I${ROOT}/usr/include/madwifi" >> .config echo "CONFIG_DRIVER_MADWIFI=y" >> .config fi - fi - - if use kernel_FreeBSD ; then + elif use kernel_FreeBSD ; then # FreeBSD specific driver echo "CONFIG_DRIVER_BSD=y" >> .config fi |