summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-06-27 11:34:37 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-06-27 11:34:37 +0000
commit55afee71ec111d8960d79f70a50810d24814c030 (patch)
treeef7680bdbf7533689bcb013ef4a96046b7fdde53 /net-wireless
parentmarked stable (diff)
downloadgentoo-2-55afee71ec111d8960d79f70a50810d24814c030.tar.gz
gentoo-2-55afee71ec111d8960d79f70a50810d24814c030.tar.bz2
gentoo-2-55afee71ec111d8960d79f70a50810d24814c030.zip
New development snapshot.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/hostapd/ChangeLog8
-rw-r--r--net-wireless/hostapd/Manifest32
-rw-r--r--net-wireless/hostapd/files/digest-hostapd-0.4.32
-rw-r--r--net-wireless/hostapd/files/hostapd-0.4.3-conf.d12
-rw-r--r--net-wireless/hostapd/files/hostapd-0.4.3-init.d50
-rw-r--r--net-wireless/hostapd/hostapd-0.4.3.ebuild86
-rw-r--r--net-wireless/wpa_supplicant/ChangeLog8
-rw-r--r--net-wireless/wpa_supplicant/Manifest5
-rw-r--r--net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.4.32
-rw-r--r--net-wireless/wpa_supplicant/files/wpa_supplicant-0.4.3-wpa_cli.action44
-rw-r--r--net-wireless/wpa_supplicant/wpa_supplicant-0.4.3.ebuild125
11 files changed, 357 insertions, 17 deletions
diff --git a/net-wireless/hostapd/ChangeLog b/net-wireless/hostapd/ChangeLog
index cb2d7d0a5262..2f63c93ca641 100644
--- a/net-wireless/hostapd/ChangeLog
+++ b/net-wireless/hostapd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-wireless/hostapd
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.33 2005/06/27 09:05:23 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.34 2005/06/27 11:33:15 brix Exp $
+
+*hostapd-0.4.3 (27 Jun 2005)
+
+ 27 Jun 2005; <brix@gentoo.org> +files/hostapd-0.4.3-conf.d,
+ +files/hostapd-0.4.3-init.d, +hostapd-0.4.3.ebuild:
+ New development snapshot.
27 Jun 2005; David Holm <dholm@gentoo.org> hostapd-0.3.7.ebuild:
Stable on ppc.
diff --git a/net-wireless/hostapd/Manifest b/net-wireless/hostapd/Manifest
index f0f2268c778a..e67558926013 100644
--- a/net-wireless/hostapd/Manifest
+++ b/net-wireless/hostapd/Manifest
@@ -1,27 +1,31 @@
-MD5 fca772d8bfa159a23166d5ecdbe184de ChangeLog 4878
-MD5 52a4b928b36a98e530ae455b73f868f5 metadata.xml 462
MD5 ffda06509787f2a0d4d8687072ab000d hostapd-0.2.5.ebuild 1020
-MD5 e1948d4ae3d8cd344d53ecb6166d2192 hostapd-0.2.6.ebuild 1021
-MD5 af5eab4f574180ae6131fa5cb8efc005 hostapd-0.3.7.ebuild 2115
-MD5 a1ffc69d43fb9333ba712a41d0966775 hostapd-0.4.0-r1.ebuild 2161
MD5 c5e8b64dc57b18327f36d8530dda4921 hostapd-0.4.1.ebuild 2158
-MD5 59cf930e66933184877c5d9e78d35df1 hostapd-0.3.9.ebuild 2133
+MD5 a1ffc69d43fb9333ba712a41d0966775 hostapd-0.4.0-r1.ebuild 2161
+MD5 6312e6f3a5a4efeb82ec380a55d6869a hostapd-0.4.3.ebuild 2074
+MD5 af5eab4f574180ae6131fa5cb8efc005 hostapd-0.3.7.ebuild 2115
+MD5 e1948d4ae3d8cd344d53ecb6166d2192 hostapd-0.2.6.ebuild 1021
MD5 df7a44d04011b96eea1b367a9a7715d6 hostapd-0.3.9-r1.ebuild 2113
+MD5 59cf930e66933184877c5d9e78d35df1 hostapd-0.3.9.ebuild 2133
MD5 c5bc427b16f6deda6899a2a5d032fb64 hostapd-0.4.2.ebuild 2175
-MD5 cf287b50f0ccd832a08fb3031281cd4f files/hostapd.init.d 858
+MD5 16fbc93e6d59dfb0e386a1bbef90fbda ChangeLog 5053
+MD5 52a4b928b36a98e530ae455b73f868f5 metadata.xml 462
+MD5 15c56fec11babac2ba5846b20fa571df files/hostapd-0.4.1-conf.d 425
MD5 ba14f3282c1fe345b2b9bc3233bc2f6d files/digest-hostapd-0.2.5 65
MD5 9cbbd29bd90ddbddaa1abe1e726e2fd1 files/digest-hostapd-0.2.6 65
MD5 3cb68569c34f2c059da88220513d9af4 files/digest-hostapd-0.3.7 150
-MD5 e3ffdcd25f6e6c941ad878a0f71a7645 files/digest-hostapd-0.4.0-r1 150
-MD5 13619655135f469a5538e99c1d17efa6 files/hostapd-0.4.0-conf.d 425
-MD5 91e2e21afb898a103e2ac8fd7656b78d files/hostapd-0.4.0-init.d 982
+MD5 1a5ea229c1f23346e39a4af2abd08add files/digest-hostapd-0.3.9 150
MD5 26b88f2fe60b7f9aaed70cd87d172f87 files/digest-hostapd-0.4.1 150
-MD5 15c56fec11babac2ba5846b20fa571df files/hostapd-0.4.1-conf.d 425
+MD5 48ddb5c7bc3b09ae1c09257c010f0e0f files/digest-hostapd-0.4.2 150
+MD5 f627c86eb7a966449fda4ef56a1ada36 files/digest-hostapd-0.4.3 150
+MD5 cf287b50f0ccd832a08fb3031281cd4f files/hostapd.init.d 858
MD5 7f75e4d61b1b99452beb1027fc61462e files/hostapd-0.4.1-init.d 982
-MD5 1a5ea229c1f23346e39a4af2abd08add files/digest-hostapd-0.3.9 150
MD5 1a5ea229c1f23346e39a4af2abd08add files/digest-hostapd-0.3.9-r1 150
-MD5 48ddb5c7bc3b09ae1c09257c010f0e0f files/digest-hostapd-0.4.2 150
+MD5 e3ffdcd25f6e6c941ad878a0f71a7645 files/digest-hostapd-0.4.0-r1 150
+MD5 9e6b7c9bb07f39226dc8b8968cc9293b files/hostapd-0.4.3-conf.d 318
+MD5 6a6711056cbe6f6ae10887e99db76f60 files/hostapd-0.4.3-init.d 875
+MD5 13619655135f469a5538e99c1d17efa6 files/hostapd-0.4.0-conf.d 425
+MD5 91e2e21afb898a103e2ac8fd7656b78d files/hostapd-0.4.0-init.d 982
MD5 e4b30b5fade1fe4a257be477129ae36d files/hostapd-0.3.9-conf.d 425
-MD5 9f51596dd3a60ecf3aebee6f82f750f8 files/hostapd-0.3.9-init.d 982
MD5 ba2d0cabbec32aeb72ccf09d7ae533e1 files/hostapd-0.4.2-conf.d 425
+MD5 9f51596dd3a60ecf3aebee6f82f750f8 files/hostapd-0.3.9-init.d 982
MD5 72d6c0b18b4dc9acae696b254c2735e1 files/hostapd-0.4.2-init.d 982
diff --git a/net-wireless/hostapd/files/digest-hostapd-0.4.3 b/net-wireless/hostapd/files/digest-hostapd-0.4.3
new file mode 100644
index 000000000000..23aac7c677e6
--- /dev/null
+++ b/net-wireless/hostapd/files/digest-hostapd-0.4.3
@@ -0,0 +1,2 @@
+MD5 2222632066dfb1f7fc3a802192e536ce hostapd-0.4.3.tar.gz 269967
+MD5 efb9130cf1dcb829caa43af4e0bee2fb madwifi-cvs-snapshot-2005-04-20.tar.bz2 1968548
diff --git a/net-wireless/hostapd/files/hostapd-0.4.3-conf.d b/net-wireless/hostapd/files/hostapd-0.4.3-conf.d
new file mode 100644
index 000000000000..ff9da4751ff5
--- /dev/null
+++ b/net-wireless/hostapd/files/hostapd-0.4.3-conf.d
@@ -0,0 +1,12 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-0.4.3-conf.d,v 1.1 2005/06/27 11:33:15 brix Exp $
+
+# List of interfaces which needs to be started before hostapd
+INTERFACES="wlan0"
+
+# List of configuration files
+CONFIGS="/etc/hostapd/hostapd.conf"
+
+# Extra options to pass to hostapd
+OPTIONS="-B"
diff --git a/net-wireless/hostapd/files/hostapd-0.4.3-init.d b/net-wireless/hostapd/files/hostapd-0.4.3-init.d
new file mode 100644
index 000000000000..9f54a42ddc25
--- /dev/null
+++ b/net-wireless/hostapd/files/hostapd-0.4.3-init.d
@@ -0,0 +1,50 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-0.4.3-init.d,v 1.1 2005/06/27 11:33:15 brix Exp $
+
+opts="start stop reload"
+
+depend() {
+ local iface
+
+ for iface in ${INTERFACES}; do
+ need net.${iface}
+ done
+
+ use logger
+}
+
+checkconfig() {
+ local file
+
+ for file in ${CONFIGS}; do
+ if [[ ! -r ${file} ]]; then
+ eerror "hostapd configuration file (${CONFIG}) not found"
+ return 1
+ fi
+ done
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting hostapd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/hostapd \
+ -- ${OPTIONS} ${CONFIGS}
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping hostapd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/hostapd
+ eend ${?}
+}
+
+reload() {
+ checkconfig || return 1
+
+ ebegin "Reloading hostapd configuration"
+ start-stop-daemon --stop --signal 1 --quiet --exec /usr/sbin/hostapd
+ eend ${?}
+}
diff --git a/net-wireless/hostapd/hostapd-0.4.3.ebuild b/net-wireless/hostapd/hostapd-0.4.3.ebuild
new file mode 100644
index 000000000000..2987eeb89acc
--- /dev/null
+++ b/net-wireless/hostapd/hostapd-0.4.3.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/hostapd-0.4.3.ebuild,v 1.1 2005/06/27 11:33:15 brix Exp $
+
+inherit toolchain-funcs
+
+MADWIFI_VERSION="2005-04-20"
+
+DESCRIPTION="IEEE 802.11 wireless LAN Host AP daemon"
+HOMEPAGE="http://hostap.epitest.fi"
+SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz
+ mirror://gentoo/madwifi-cvs-snapshot-${MADWIFI_VERSION}.tar.bz2"
+
+LICENSE="|| ( GPL-2 BSD )"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+
+IUSE="ipv6 ssl"
+
+DEPEND="sys-apps/sed"
+RDEPEND="ssl? ( dev-libs/openssl )"
+
+src_unpack() {
+ local CONFIG=${S}/.config
+
+ unpack ${A}
+
+ sed -i -e "s:/etc/hostapd:/etc/hostapd/hostapd:g" \
+ ${S}/hostapd.conf
+
+ # toolchain setup
+ echo "CC = $(tc-getCC)" > ${CONFIG}
+
+ # authentication methods
+ echo "CONFIG_EAP=y" >> ${CONFIG}
+ echo "CONFIG_EAP_MD5=y" >> ${CONFIG}
+ echo "CONFIG_EAP_GTC=y" >> ${CONFIG}
+ echo "CONFIG_IAPP=y" >> ${CONFIG}
+ echo "CONFIG_PKCS12=y" >> ${CONFIG}
+ echo "CONFIG_RADIUS_SERVER=y" >> ${CONFIG}
+ echo "CONFIG_RSN_PREAUTH=y" >> ${CONFIG}
+ echo "CONFIG_EAP_SIM=y" >> ${CONFIG}
+
+ if use ssl; then
+ # SSL authentication methods
+ echo "CONFIG_EAP_MSCHAPV2=y" >> ${CONFIG}
+ echo "CONFIG_EAP_PEAP=y" >> ${CONFIG}
+ echo "CONFIG_EAP_TLS=y" >> ${CONFIG}
+ echo "CONFIG_EAP_TTLS=y" >> ${CONFIG}
+ fi
+
+ if use ipv6; then
+ echo "CONFIG_IPV6=y" >> ${CONFIG}
+ fi
+
+ # Linux specific drivers
+ echo "CONFIG_DRIVER_HOSTAP=y" >> ${CONFIG}
+ echo "CONFIG_DRIVER_WIRED=y" >> ${CONFIG}
+ echo "CONFIG_DRIVER_PRISM54=y" >> ${CONFIG}
+
+ # Add include path for madwifi-driver headers
+ echo "CFLAGS += -I${WORKDIR}/madwifi" >> ${CONFIG}
+ echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG}
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ insinto /etc/hostapd
+ doins hostapd.conf hostapd.accept hostapd.deny
+
+ dosbin hostapd
+ dobin hostapd_cli
+
+ newinitd ${FILESDIR}/${P}-init.d hostapd
+ newconfd ${FILESDIR}/${P}-conf.d hostapd
+
+ doman hostapd.8 hostapd_cli.1
+
+ dodoc ChangeLog developer.txt README
+
+ docinto examples
+ dodoc madwifi.conf wired.conf
+}
diff --git a/net-wireless/wpa_supplicant/ChangeLog b/net-wireless/wpa_supplicant/ChangeLog
index 8d47610fbb78..5d3206364be5 100644
--- a/net-wireless/wpa_supplicant/ChangeLog
+++ b/net-wireless/wpa_supplicant/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-wireless/wpa_supplicant
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog,v 1.26 2005/06/13 14:39:35 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog,v 1.27 2005/06/27 11:34:37 brix Exp $
+
+*wpa_supplicant-0.4.3 (27 Jun 2005)
+
+ 27 Jun 2005; <brix@gentoo.org> +files/wpa_supplicant-0.4.3-wpa_cli.action,
+ +wpa_supplicant-0.4.3.ebuild:
+ New development snapshot.
*wpa_supplicant-0.4.2 (13 Jun 2005)
diff --git a/net-wireless/wpa_supplicant/Manifest b/net-wireless/wpa_supplicant/Manifest
index b23f0e94995e..10505e88decf 100644
--- a/net-wireless/wpa_supplicant/Manifest
+++ b/net-wireless/wpa_supplicant/Manifest
@@ -3,9 +3,11 @@ MD5 b4ddf565dac4d001c9fcb0e247f3f9bd wpa_supplicant-0.4.2.ebuild 3514
MD5 5c367e1ee7f780b0d5539c68d1ec1100 wpa_supplicant-0.3.8.ebuild 3127
MD5 7093cee7143930fcf60e66ab0b5df1b1 wpa_supplicant-0.4.1.ebuild 3497
MD5 4d2fd49e3994d5cabec6b9c26b92ea11 wpa_supplicant-0.2.7.ebuild 2722
-MD5 458ac8e87e0c70b992c66a833ed4acf3 ChangeLog 7577
+MD5 fd657a399bd96f58d0e85e820d1cf25f wpa_supplicant-0.4.3.ebuild 3351
+MD5 f154b789a70a5f4b75cb253155c6ceaf ChangeLog 7752
MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255
MD5 8a525c1c0f9610f81add0b4e6fcf762d wpa_supplicant-0.4.0.ebuild 3291
+MD5 c1c8e0ca5f5a3781e3612def405f4f5d files/wpa_supplicant-0.4.3-wpa_cli.action 1104
MD5 f4d3db02fc7399a77922cb2f975e1700 files/wpa_supplicant-0.4.2-wpa_cli.action 1233
MD5 78e1b4e6585e53e08ba3210eb53d4258 files/wpa_supplicant-0.3.8-conf.d 394
MD5 1e84620fc5d91acb84e7a280c9adc0ea files/wpa_supplicant-0.4.1-conf.d 394
@@ -15,6 +17,7 @@ MD5 a5d385e515e9989ba56f4c89fd83091a files/digest-wpa_supplicant-0.3.9 157
MD5 8a187dfdf8f03c84c486378b2b165f06 files/digest-wpa_supplicant-0.4.0 157
MD5 5f93177414c5f5e6a21efb7aeb83ddb8 files/digest-wpa_supplicant-0.4.1 157
MD5 69dc9f23d912811fa86cac58246f0343 files/digest-wpa_supplicant-0.4.2 157
+MD5 9d6a7df32d449a9bc76e908d47d27f0c files/digest-wpa_supplicant-0.4.3 157
MD5 95a04705cb8e47f8d4611186cffb6a96 files/wpa_supplicant-0.3.8-init.d 975
MD5 aa75bd008ca09560a1567034a989b283 files/wpa_supplicant-0.4.1-init.d 975
MD5 38d9ee18b195a6ceb213c1c74a57aab9 files/wpa_supplicant-0.2.7-conf.d 398
diff --git a/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.4.3 b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.4.3
new file mode 100644
index 000000000000..6babad7a72d1
--- /dev/null
+++ b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.4.3
@@ -0,0 +1,2 @@
+MD5 ebcdf680d9092afa9f6249171d2387ca wpa_supplicant-0.4.3.tar.gz 373052
+MD5 efb9130cf1dcb829caa43af4e0bee2fb madwifi-cvs-snapshot-2005-04-20.tar.bz2 1968548
diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-0.4.3-wpa_cli.action b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.4.3-wpa_cli.action
new file mode 100644
index 000000000000..834ec1dfe7ac
--- /dev/null
+++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.4.3-wpa_cli.action
@@ -0,0 +1,44 @@
+#!/bin/sh
+# Copyright 1999-2005 Gentoo Foundation
+# Written by Roy Marples <uberlord@gentoo.org>
+# Distributed under the terms of the GNU General Public License v2
+# Alternatively, this file may be distributed under the terms of the BSD License
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/files/wpa_supplicant-0.4.3-wpa_cli.action,v 1.1 2005/06/27 11:34:37 brix Exp $
+
+if [ -z "$1" -o -z "$2" ]; then
+ echo "Insufficient parameters" > /dev/stderr
+ exit 1
+fi
+
+INTERFACE="$1"
+ACTION="$2"
+
+# Note, the below action must NOT mark the interface down via ifconfig, ip or
+# similar. Addresses can be removed, changed and daemons can be stopped, but
+# the interface must remain up for wpa_supplicant to work.
+
+if [ -f /etc/gentoo-release ]; then
+ EXEC="/etc/init.d/net.${INTERFACE} --quiet"
+else
+ echo "I don't know what to do with this distro!" > /dev/stderr
+ exit 1
+fi
+
+case ${ACTION} in
+ CONNECTED)
+ EXEC="${EXEC} start"
+ ;;
+ DISCONNECTED)
+ EXEC="${EXEC} stop"
+ ;;
+ *)
+ echo "Unknown action ${ACTION}" > /dev/stderr
+ exit 1
+ ;;
+esac
+
+# ${EXEC} can use ${IN_BACKGROUND} so that it knows that the user isn't
+# stopping the interface and a background process - like wpa_cli - is.
+export IN_BACKGROUND=true
+
+${EXEC}
diff --git a/net-wireless/wpa_supplicant/wpa_supplicant-0.4.3.ebuild b/net-wireless/wpa_supplicant/wpa_supplicant-0.4.3.ebuild
new file mode 100644
index 000000000000..11ccea4ef30d
--- /dev/null
+++ b/net-wireless/wpa_supplicant/wpa_supplicant-0.4.3.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2005 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.4.3.ebuild,v 1.1 2005/06/27 11:34:37 brix Exp $
+
+inherit eutils toolchain-funcs
+
+MY_P=${PN}-${PV/_/-}
+S=${WORKDIR}/${MY_P}
+
+MADWIFI_VERSION="2005-04-20"
+
+DESCRIPTION="IEEE 802.1X/WPA supplicant for secure wireless transfers"
+HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/"
+SRC_URI="http://hostap.epitest.fi/releases/${MY_P}.tar.gz
+ mirror://gentoo/madwifi-cvs-snapshot-${MADWIFI_VERSION}.tar.bz2"
+LICENSE="|| ( GPL-2 BSD )"
+
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE="debug gsm qt readline ssl"
+
+DEPEND="gsm? ( sys-apps/pcsc-lite )
+ qt? ( x11-libs/qt )
+ readline? ( sys-libs/ncurses
+ sys-libs/readline )
+ ssl? ( dev-libs/openssl )"
+
+src_unpack() {
+ local CONFIG=${S}/.config
+
+ unpack ${A}
+
+ # toolchain setup
+ echo "CC = $(tc-getCC)" > ${CONFIG}
+
+ # basic setup
+ echo "CONFIG_CTRL_IFACE=y" >> ${CONFIG}
+
+ # basic authentication methods
+ echo "CONFIG_EAP_GTC=y" >> ${CONFIG}
+ echo "CONFIG_EAP_MD5=y" >> ${CONFIG}
+ echo "CONFIG_EAP_OTP=y" >> ${CONFIG}
+ echo "CONFIG_EAP_PSK=y" >> ${CONFIG}
+ echo "CONFIG_IEEE8021X_EAPOL=y" >> ${CONFIG}
+ echo "CONFIG_PKCS12=y" >> ${CONFIG}
+
+ if ! use debug; then
+ echo "CONFIG_NO_STDOUT_DEBUG=y" >> ${CONFIG}
+ fi
+
+ if use gsm; then
+ # smart card authentication
+ echo "CONFIG_EAP_SIM=y" >> ${CONFIG}
+ echo "CONFIG_EAP_AKA=y" >> ${CONFIG}
+ echo "CONFIG_PCSC=y" >> ${CONFIG}
+ fi
+
+ if use readline; then
+ # readline/history support for wpa_cli
+ echo "CONFIG_READLINE=y" >> ${CONFIG}
+ fi
+
+ 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}
+ fi
+
+ # Linux specific drivers
+ echo "CONFIG_WIRELESS_EXTENSION=y" >> ${CONFIG}
+ echo "CONFIG_DRIVER_ATMEL=y" >> ${CONFIG}
+ echo "CONFIG_DRIVER_HOSTAP=y" >> ${CONFIG}
+ echo "CONFIG_DRIVER_IPW=y" >> ${CONFIG}
+ echo "CONFIG_DRIVER_NDISWRAPPER=y" >> ${CONFIG}
+ echo "CONFIG_DRIVER_PRISM54=y" >> ${CONFIG}
+ echo "CONFIG_DRIVER_WEXT=y" >> ${CONFIG}
+ echo "CONFIG_DRIVER_WIRED=y" >> ${CONFIG}
+
+ # Add include path for madwifi-driver headers
+ echo "CFLAGS += -I${WORKDIR}/madwifi" >> ${CONFIG}
+ echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG}
+}
+
+src_compile() {
+ emake || die "emake failed"
+
+ if use qt; then
+ [[ -d ${QTDIR}/etc/settings ]] && addwrite ${QTDIR}/etc/settings
+ emake wpa_gui || die "emake wpa_gui failed"
+ fi
+}
+
+src_install() {
+ dosbin wpa_supplicant
+ dobin wpa_cli wpa_passphrase
+
+ if use qt; then
+ dobin wpa_gui/wpa_gui
+ fi
+
+ newsbin ${FILESDIR}/${MY_P}-wpa_cli.action wpa_cli.action
+
+ dodoc ChangeLog COPYING developer.txt eap_testing.txt README todo.txt
+ dodoc doc/wpa_supplicant.fig
+
+ insinto /etc
+ newins wpa_supplicant.conf wpa_supplicant.conf.example
+}
+
+pkg_postinst() {
+ einfo
+ einfo "To use ${MY_P} you must create the configuration file"
+ einfo "/etc/wpa_supplicant.conf"
+ einfo
+ einfo "An example configuration file has been installed as"
+ einfo "/etc/wpa_supplicant.conf.example"
+ einfo
+ einfo "Please note that the wpa_supplicant init script has been"
+ einfo "removed in favor of sys-apps/baselayout-1.11.x"
+ einfo
+}