summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-07-13 18:18:51 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-07-13 18:18:51 +0000
commit9df1b4a39fe2d256c005b70d5649bdda87af4b22 (patch)
tree2d1526467222abd0678fc3b7d219a703ae80240c /net-wireless/wpa_supplicant
parentInstall to /sbin instead of /usr/sbin, bug #96654. (diff)
downloadgentoo-2-9df1b4a39fe2d256c005b70d5649bdda87af4b22.tar.gz
gentoo-2-9df1b4a39fe2d256c005b70d5649bdda87af4b22.tar.bz2
gentoo-2-9df1b4a39fe2d256c005b70d5649bdda87af4b22.zip
Install to / instead of /usr/
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'net-wireless/wpa_supplicant')
-rw-r--r--net-wireless/wpa_supplicant/ChangeLog11
-rw-r--r--net-wireless/wpa_supplicant/Manifest18
-rw-r--r--net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.3.8-r12
-rw-r--r--net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.3.9-r12
-rw-r--r--net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.4.3-r12
-rw-r--r--net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.8-r1-conf.d12
-rw-r--r--net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.8-r1-init.d41
-rw-r--r--net-wireless/wpa_supplicant/wpa_supplicant-0.3.8-r1.ebuild111
-rw-r--r--net-wireless/wpa_supplicant/wpa_supplicant-0.3.9-r1.ebuild114
-rw-r--r--net-wireless/wpa_supplicant/wpa_supplicant-0.4.3-r1.ebuild129
10 files changed, 431 insertions, 11 deletions
diff --git a/net-wireless/wpa_supplicant/ChangeLog b/net-wireless/wpa_supplicant/ChangeLog
index 8749cec492ee..b1a06fa6bf4e 100644
--- a/net-wireless/wpa_supplicant/ChangeLog
+++ b/net-wireless/wpa_supplicant/ChangeLog
@@ -1,6 +1,15 @@
# 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.28 2005/07/13 10:20:12 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog,v 1.29 2005/07/13 18:18:51 brix Exp $
+
+*wpa_supplicant-0.4.3-r1 (13 Jul 2005)
+*wpa_supplicant-0.3.9-r1 (13 Jul 2005)
+*wpa_supplicant-0.3.8-r1 (13 Jul 2005)
+
+ 13 Jul 2005; <brix@gentoo.org> +files/wpa_supplicant-0.3.8-r1-conf.d,
+ +files/wpa_supplicant-0.3.8-r1-init.d, +wpa_supplicant-0.3.8-r1.ebuild,
+ +wpa_supplicant-0.3.9-r1.ebuild, +wpa_supplicant-0.4.3-r1.ebuild:
+ Install to / instead of /usr/
13 Jul 2005; <brix@gentoo.org> -files/wpa_supplicant-0.2.7-conf.d,
-files/wpa_supplicant-0.2.7-init.d, -files/wpa_supplicant-0.4.0-conf.d,
diff --git a/net-wireless/wpa_supplicant/Manifest b/net-wireless/wpa_supplicant/Manifest
index f2fc6dfea399..0b2bfd3c1dd6 100644
--- a/net-wireless/wpa_supplicant/Manifest
+++ b/net-wireless/wpa_supplicant/Manifest
@@ -1,11 +1,9 @@
-MD5 5e615cd1c73e242110ec4966f5a9e270 wpa_supplicant-0.3.9.ebuild 3193
-MD5 5c367e1ee7f780b0d5539c68d1ec1100 wpa_supplicant-0.3.8.ebuild 3127
-MD5 769a980b823be6448acc744275c97617 wpa_supplicant-0.4.3.ebuild 3466
-MD5 d66ff2aa72342c56d9f9528864199594 ChangeLog 8292
-MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255
+MD5 eb6b2d253698646f1e88fecebc3330c3 wpa_supplicant-0.4.3-r1.ebuild 3404
+MD5 ea51609ffd2ac79f7fbdc154c57203c9 wpa_supplicant-0.3.9-r1.ebuild 3119
+MD5 5a65b061467839ce80bc6b4279829444 wpa_supplicant-0.3.8-r1.ebuild 3056
MD5 d1bbf5c729fef085e916e0a02c65782e files/wpa_supplicant-0.4.3-wpa_cli.action 1233
-MD5 78e1b4e6585e53e08ba3210eb53d4258 files/wpa_supplicant-0.3.8-conf.d 394
-MD5 6b30dfb43745d57ea0280e9fb1467546 files/digest-wpa_supplicant-0.3.8 157
-MD5 a5d385e515e9989ba56f4c89fd83091a files/digest-wpa_supplicant-0.3.9 157
-MD5 9d6a7df32d449a9bc76e908d47d27f0c files/digest-wpa_supplicant-0.4.3 157
-MD5 95a04705cb8e47f8d4611186cffb6a96 files/wpa_supplicant-0.3.8-init.d 975
+MD5 6b30dfb43745d57ea0280e9fb1467546 files/digest-wpa_supplicant-0.3.8-r1 157
+MD5 a5d385e515e9989ba56f4c89fd83091a files/digest-wpa_supplicant-0.3.9-r1 157
+MD5 9d6a7df32d449a9bc76e908d47d27f0c files/digest-wpa_supplicant-0.4.3-r1 157
+MD5 63fa501149770015ad087c2f73237a73 files/wpa_supplicant-0.3.8-r1-conf.d 273
+MD5 c749d4792c1450c52fd9bdcc81f0fa8d files/wpa_supplicant-0.3.8-r1-init.d 845
diff --git a/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.3.8-r1 b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.3.8-r1
new file mode 100644
index 000000000000..411f97af04d3
--- /dev/null
+++ b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.3.8-r1
@@ -0,0 +1,2 @@
+MD5 c9ced104f0322f834a84336c293b4b57 wpa_supplicant-0.3.8.tar.gz 301163
+MD5 8237d57be31464ddd7a710704e6755f0 madwifi-cvs-snapshot-2005-01-07.tar.bz2 1586914
diff --git a/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.3.9-r1 b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.3.9-r1
new file mode 100644
index 000000000000..ad7be5d42221
--- /dev/null
+++ b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.3.9-r1
@@ -0,0 +1,2 @@
+MD5 113873aafc4fcaa0515841a6f0a17fd0 wpa_supplicant-0.3.9.tar.gz 310421
+MD5 efb9130cf1dcb829caa43af4e0bee2fb madwifi-cvs-snapshot-2005-04-20.tar.bz2 1968548
diff --git a/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.4.3-r1 b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.4.3-r1
new file mode 100644
index 000000000000..6babad7a72d1
--- /dev/null
+++ b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.4.3-r1
@@ -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.3.8-r1-conf.d b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.8-r1-conf.d
new file mode 100644
index 000000000000..2be808844cc5
--- /dev/null
+++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.8-r1-conf.d
@@ -0,0 +1,12 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.8-r1-conf.d,v 1.1 2005/07/13 18:18:51 brix Exp $
+
+# List of interfaces
+INTERFACES="eth1"
+
+# Common arguments to all wpa_supplicant instances
+ARGS="-w"
+
+# Interface specific arguments
+#ARGS_eth1="-Dipw"
diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.8-r1-init.d b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.8-r1-init.d
new file mode 100644
index 000000000000..35c214e6e3ba
--- /dev/null
+++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.8-r1-init.d
@@ -0,0 +1,41 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.8-r1-init.d,v 1.1 2005/07/13 18:18:51 brix Exp $
+
+depend() {
+ before net
+}
+
+start() {
+ ebegin "Starting wpa_supplicant"
+
+ if [ ! -f /etc/wpa_supplicant.conf ]; then
+ eerror "Configuration file /etc/wpa_supplicant.conf not found"
+ return 1
+ fi
+
+ if [ -z "$INTERFACES" ]; then
+ eerror "No interfaces specified in /etc/conf.d/wpa_supplicant"
+ return 1
+ fi
+
+ for IFACE in $INTERFACES; do
+ ebegin " ${IFACE}"
+
+ eval ARGS_IFACE=\"\$\{ARGS_$IFACE\}\"
+
+ /sbin/ifconfig ${IFACE} up
+
+ start-stop-daemon --start --quiet --exec /sbin/wpa_supplicant \
+ -- -B -i${IFACE} -c/etc/wpa_supplicant.conf ${ARGS} ${ARGS_IFACE}
+ eend $?
+ done
+}
+
+stop() {
+ ebegin "Stopping wpa_supplicant"
+
+ start-stop-daemon --stop --quiet --exec /sbin/wpa_supplicant
+ eend ${?}
+}
diff --git a/net-wireless/wpa_supplicant/wpa_supplicant-0.3.8-r1.ebuild b/net-wireless/wpa_supplicant/wpa_supplicant-0.3.8-r1.ebuild
new file mode 100644
index 000000000000..61ed1dd18707
--- /dev/null
+++ b/net-wireless/wpa_supplicant/wpa_supplicant-0.3.8-r1.ebuild
@@ -0,0 +1,111 @@
+# 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.3.8-r1.ebuild,v 1.1 2005/07/13 18:18:51 brix Exp $
+
+inherit toolchain-funcs
+
+MADWIFI_VERSION="2005-01-07"
+
+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
+ mirror://gentoo/madwifi-cvs-snapshot-${MADWIFI_VERSION}.tar.bz2"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="gsm readline ssl"
+
+DEPEND="gsm? ( sys-apps/pcsc-lite )
+ readline? ( sys-libs/ncurses
+ sys-libs/readline )
+ ssl? ( dev-libs/openssl )
+ >=sys-apps/baselayout-1.11.13"
+
+src_unpack() {
+ local CONFIG=${S}/.config
+
+ unpack ${A}
+
+ # toolchain setup
+ echo "CC = $(tc-getCC)" > ${CONFIG}
+
+ # basic setup
+ echo "CONFIG_CTRL_IFACE=y" >> ${CONFIG}
+ echo "CONFIG_XSUPPLICANT_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 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}
+ 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}
+
+ # 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() {
+ into /
+
+ dosbin wpa_supplicant
+ dobin wpa_cli wpa_passphrase
+
+ 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
+
+ newinitd ${FILESDIR}/${PF}-init.d wpa_supplicant || die
+ newconfd ${FILESDIR}/${PF}-conf.d wpa_supplicant || die
+}
+
+pkg_postinst() {
+ einfo
+ einfo "To use ${P} you must create the configuration file"
+ einfo "/etc/wpa_supplicant.conf"
+ einfo
+ einfo "Please notice that the ipw2100 driver has changed name"
+ einfo "to ipw, meaning you will need to specify -Dipw to ${PN}"
+ einfo
+ einfo "An example configuration file has been installed as"
+ einfo "/etc/wpa_supplicant.conf.example"
+ einfo
+}
diff --git a/net-wireless/wpa_supplicant/wpa_supplicant-0.3.9-r1.ebuild b/net-wireless/wpa_supplicant/wpa_supplicant-0.3.9-r1.ebuild
new file mode 100644
index 000000000000..5e862a40ffae
--- /dev/null
+++ b/net-wireless/wpa_supplicant/wpa_supplicant-0.3.9-r1.ebuild
@@ -0,0 +1,114 @@
+# 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.3.9-r1.ebuild,v 1.1 2005/07/13 18:18:51 brix Exp $
+
+inherit 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"
+
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="gsm readline ssl"
+
+DEPEND="gsm? ( sys-apps/pcsc-lite )
+ readline? ( sys-libs/ncurses
+ sys-libs/readline )
+ ssl? ( dev-libs/openssl )
+ >=sys-apps/baselayout-1.11.13"
+
+src_unpack() {
+ local CONFIG=${S}/.config
+
+ unpack ${A}
+
+ # toolchain setup
+ echo "CC = $(tc-getCC)" > ${CONFIG}
+
+ # basic setup
+ echo "CONFIG_CTRL_IFACE=y" >> ${CONFIG}
+ echo "CONFIG_XSUPPLICANT_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 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}
+ 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}
+
+ # 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() {
+ into /
+
+ dosbin wpa_supplicant
+ dobin wpa_cli wpa_passphrase
+
+ 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 "Please notice that the ipw2100 driver has changed name"
+ einfo "to ipw, meaning you will need to specify -Dipw to ${PN}"
+ 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
+}
diff --git a/net-wireless/wpa_supplicant/wpa_supplicant-0.4.3-r1.ebuild b/net-wireless/wpa_supplicant/wpa_supplicant-0.4.3-r1.ebuild
new file mode 100644
index 000000000000..984f7b39b2a6
--- /dev/null
+++ b/net-wireless/wpa_supplicant/wpa_supplicant-0.4.3-r1.ebuild
@@ -0,0 +1,129 @@
+# 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-r1.ebuild,v 1.1 2005/07/13 18:18:51 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="~amd64 ~ppc ~x86"
+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 )
+ >=sys-apps/baselayout-1.11.13"
+
+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() {
+ into /
+
+ dosbin wpa_supplicant
+ dobin wpa_cli wpa_passphrase
+
+ newsbin ${FILESDIR}/${MY_P}-wpa_cli.action wpa_cli.action
+
+ if use qt; then
+ into /usr
+ dobin wpa_gui/wpa_gui
+ fi
+
+ 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
+}