diff options
20 files changed, 482 insertions, 4 deletions
diff --git a/net-wireless/hostap-driver/ChangeLog b/net-wireless/hostap-driver/ChangeLog index ae0bc5b986c3..2976f2942355 100644 --- a/net-wireless/hostap-driver/ChangeLog +++ b/net-wireless/hostap-driver/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-wireless/hostap-driver # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostap-driver/ChangeLog,v 1.35 2005/04/16 09:05:40 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostap-driver/ChangeLog,v 1.36 2005/04/27 09:57:27 brix Exp $ + +*hostap-driver-0.4.0 (27 Apr 2005) + + 27 Apr 2005; <brix@gentoo.org> +files/hostap-driver-0.4.0-firmware.patch, + +hostap-driver-0.4.0.ebuild: + New development snapshot. 16 Apr 2005; <brix@gentoo.org> hostap-driver-0.3.7.ebuild: Stable on x86. diff --git a/net-wireless/hostap-driver/Manifest b/net-wireless/hostap-driver/Manifest index 312580a42e4a..fe557527d93f 100644 --- a/net-wireless/hostap-driver/Manifest +++ b/net-wireless/hostap-driver/Manifest @@ -1,11 +1,14 @@ MD5 7a12001557f4b22aeb53aec8c27dc87f hostap-driver-0.3.7.ebuild 2758 +MD5 d504d00e06b8726117f2bc48f78734ae hostap-driver-0.4.0.ebuild 2372 MD5 e07067013550cc1d44ba949484adfdbe hostap-driver-0.2.6-r1.ebuild 2867 MD5 c94b7e9fe75e00370db3af612d4b4761 hostap-driver-0.2.5-r1.ebuild 3607 MD5 e8380ad0cbeba12d931c419137d912c3 ChangeLog 6781 MD5 5f6ec5c50fa3a91a429fec8670cf241b metadata.xml 722 +MD5 2d9db693839a9fb5d88d8e5c1fa13170 files/hostap-driver-0.4.0-firmware.patch 739 MD5 702e5e315551f06833fde599816fd65a files/digest-hostap-driver-0.2.5-r1 441 MD5 2867dcc26d843b380c5c6be06a89a9af files/digest-hostap-driver-0.2.6-r1 441 MD5 176b7133187acc58466f505d727149ac files/digest-hostap-driver-0.3.7 441 +MD5 2b82d64ebc2aa9b711920761843b7368 files/digest-hostap-driver-0.4.0 71 MD5 d76aa90f71a4ef13a49ccca8863b66ba files/hostap-driver-0.2.6-firmware.patch 739 MD5 9451f65d0b1724a60a07b9310d9ebc52 files/hostap-driver-0.2.5.firmware.diff.bz2 472 MD5 4e679442c5b3b53a929b470fdccef35e files/hostap-driver-0.3.7-firmware.patch 739 diff --git a/net-wireless/hostap-driver/files/digest-hostap-driver-0.4.0 b/net-wireless/hostap-driver/files/digest-hostap-driver-0.4.0 new file mode 100644 index 000000000000..63c596abfd1b --- /dev/null +++ b/net-wireless/hostap-driver/files/digest-hostap-driver-0.4.0 @@ -0,0 +1 @@ +MD5 aceb13fcdbe7c59b36318c2444346a27 hostap-driver-0.4.0.tar.gz 201080 diff --git a/net-wireless/hostap-driver/files/hostap-driver-0.4.0-firmware.patch b/net-wireless/hostap-driver/files/hostap-driver-0.4.0-firmware.patch new file mode 100644 index 000000000000..e279f0c60d50 --- /dev/null +++ b/net-wireless/hostap-driver/files/hostap-driver-0.4.0-firmware.patch @@ -0,0 +1,12 @@ +diff -urp hostap-driver-0.4.0/driver/modules/hostap_config.h hostap-driver-0.4.0-firmware/driver/modules/hostap_config.h +--- hostap-driver-0.4.0/driver/modules/hostap_config.h 2005-04-26 04:47:23.000000000 +0200 ++++ hostap-driver-0.4.0-firmware/driver/modules/hostap_config.h 2005-04-26 11:16:33.000000000 +0200 +@@ -59,7 +59,7 @@ + * In addition, please note that it is possible to kill your card with + * non-volatile download if you are using incorrect image. This feature has not + * been fully tested, so please be careful with it. */ +-/* #define PRISM2_NON_VOLATILE_DOWNLOAD */ ++#define PRISM2_NON_VOLATILE_DOWNLOAD + #endif /* PRISM2_DOWNLOAD_SUPPORT */ + + /* Include wireless extensions sub-ioctl support even if wireless extensions diff --git a/net-wireless/hostap-driver/hostap-driver-0.4.0.ebuild b/net-wireless/hostap-driver/hostap-driver-0.4.0.ebuild new file mode 100644 index 000000000000..2165cb6882f9 --- /dev/null +++ b/net-wireless/hostap-driver/hostap-driver-0.4.0.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostap-driver/hostap-driver-0.4.0.ebuild,v 1.1 2005/04/27 09:57:27 brix Exp $ + +inherit toolchain-funcs eutils linux-mod + +DESCRIPTION="HostAP wireless drivers" +HOMEPAGE="http://hostap.epitest.fi" +SRC_URI="${SRC_URI} http://hostap.epitest.fi/releases/${P}.tar.gz" +LICENSE="GPL-2" + +KEYWORDS="~x86 ~ppc" +IUSE="pcmcia" +SLOT="0" + +RDEPEND=">=net-wireless/wireless-tools-25" + +BUILD_PARAMS="KERNEL_PATH=${KV_DIR}" +BUILD_TARGETS="all" +MODULESD_HOSTAP_DOCS="README" + +CONFIG_CHECK="NET_RADIO" +NET_RADIO_ERROR="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)." + +pkg_setup() { + MODULE_NAMES="hostap(net::${S}/driver/modules) + hostap_pci(net::${S}/driver/modules) + hostap_plx(net::${S}/driver/modules) + hostap_crypt_wep(net::${S}/driver/modules) + hostap_crypt_ccmp(net::${S}/driver/modules) + hostap_crypt_tkip(net::${S}/driver/modules)" + + if use pcmcia; then + MODULE_NAMES="${MODULE_NAMES} hostap_cs(net::${S}/driver/modules)" + fi + + linux-mod_pkg_setup +} + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${P}-firmware.patch + + # set compiler + sed -i "s:gcc:$(tc-getCC):" ${S}/Makefile + + # unpack the pcmcia-cs sources if needed + pcmcia_src_unpack + + # fix for new coreutils (#31801) + sed -i "s:tail -1:tail -n 1:" ${S}/Makefile + + # set correct pcmcia path (PCMCIA_VERSION gets set from pcmcia_src_unpack) + if [ -n "${PCMCIA_VERSION}" ]; then + sed -i "s:^\(PCMCIA_PATH\)=:\1=${PCMCIA_SOURCE_DIR}:" ${S}/Makefile + fi + + convert_to_m ${S}/Makefile +} + +src_compile() { + linux-mod_src_compile +} + +src_install() { + if use pcmcia; then + insinto /etc/pcmcia + doins driver/etc/hostap_cs.conf + fi + + dodoc ChangeLog + + linux-mod_src_install +} + +pkg_postinst() { + if [ -e /etc/pcmcia/prism2.conf ] + then + einfo "" + einfo "You may need to edit or remove /etc/pcmcia/prism2.conf" + einfo "This is usually a result of conflicts with the" + einfo "net-wireless/linux-wlan-ng drivers." + einfo "" + fi + + ewarn "" + ewarn "Please note that this installation of HostAP contains support" + ewarn "for downloading binary firmware images into the non-volatile" + ewarn "(permanent) flash memory of wireless LAN cards." + ewarn "" + ewarn "Albeit being a great feature, this can lead to A DEAD CARD" + ewarn "when inappropriately used (e.g. wrong firmware)." + ewarn "" + + linux-mod_pkg_postinst +} diff --git a/net-wireless/hostap-utils/ChangeLog b/net-wireless/hostap-utils/ChangeLog index b7a47d3c193b..b04d9fb0a5b0 100644 --- a/net-wireless/hostap-utils/ChangeLog +++ b/net-wireless/hostap-utils/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-wireless/hostap-utils # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostap-utils/ChangeLog,v 1.23 2005/04/16 09:07:40 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostap-utils/ChangeLog,v 1.24 2005/04/27 10:00:53 brix Exp $ + +*hostap-utils-0.4.0 (27 Apr 2005) + + 27 Apr 2005; <brix@gentoo.org> +hostap-utils-0.4.0.ebuild: + New development snapshot. 16 Apr 2005; <brix@gentoo.org> hostap-utils-0.3.7.ebuild: Stable on x86. diff --git a/net-wireless/hostap-utils/Manifest b/net-wireless/hostap-utils/Manifest index 59462196bde4..efe2b1c69c1e 100644 --- a/net-wireless/hostap-utils/Manifest +++ b/net-wireless/hostap-utils/Manifest @@ -1,8 +1,10 @@ MD5 f266bab830757c79968697a1c0eb9a17 hostap-utils-0.2.4.ebuild 726 MD5 156298e0bd2367d7b3e3cf1cf8def04a hostap-utils-0.3.7.ebuild 693 +MD5 631403b033e830ace78ec94080fbb81a hostap-utils-0.4.0.ebuild 693 MD5 2c53d4316c073382d1f23a6955f95990 hostap-utils-0.2.6.ebuild 693 MD5 ffda874ff9858ecfe7d9b7e2b2beac90 ChangeLog 3504 MD5 0d08d740672bf3b41532938b6f9c0a19 metadata.xml 337 MD5 b31ab184e34a7e5d3443d51d91c5008f files/digest-hostap-utils-0.2.4 69 MD5 8fe4afb5fcbb29a994a4fa244b962665 files/digest-hostap-utils-0.2.6 69 MD5 eb77fca21ee97178487299633c12fdd8 files/digest-hostap-utils-0.3.7 69 +MD5 c493e7d880016cc1c366715792fa7041 files/digest-hostap-utils-0.4.0 69 diff --git a/net-wireless/hostap-utils/files/digest-hostap-utils-0.4.0 b/net-wireless/hostap-utils/files/digest-hostap-utils-0.4.0 new file mode 100644 index 000000000000..2cb942927ee1 --- /dev/null +++ b/net-wireless/hostap-utils/files/digest-hostap-utils-0.4.0 @@ -0,0 +1 @@ +MD5 c6775ca98721affeb336392def22289e hostap-utils-0.4.0.tar.gz 60495 diff --git a/net-wireless/hostap-utils/hostap-utils-0.4.0.ebuild b/net-wireless/hostap-utils/hostap-utils-0.4.0.ebuild new file mode 100644 index 000000000000..253bb8eb0dd5 --- /dev/null +++ b/net-wireless/hostap-utils/hostap-utils-0.4.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostap-utils/hostap-utils-0.4.0.ebuild,v 1.1 2005/04/27 10:00:53 brix Exp $ + +inherit toolchain-funcs + +DESCRIPTION="HostAP wireless utils" + +HOMEPAGE="http://hostap.epitest.fi/" +SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" + +IUSE="" + +DEPEND="virtual/libc" + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed" +} + +src_install() { + dosbin hostap_{crypt_conf,diag,fw_load,io_debug,rid} + dosbin prism2_{param,srec} + dosbin split_combined_hex + + dodoc README +} diff --git a/net-wireless/hostapd/ChangeLog b/net-wireless/hostapd/ChangeLog index 42c43aba5de1..7d902f715d3d 100644 --- a/net-wireless/hostapd/ChangeLog +++ b/net-wireless/hostapd/ChangeLog @@ -1,6 +1,11 @@ # 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.25 2005/04/16 09:06:45 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.26 2005/04/27 09:59:26 brix Exp $ + +*hostapd-0.4.0 (27 Apr 2005) + + 27 Apr 2005; <brix@gentoo.org> +hostapd-0.4.0.ebuild: + New development snapshot. 16 Apr 2005; <brix@gentoo.org> hostapd-0.3.7.ebuild: Stable on x86. diff --git a/net-wireless/hostapd/Manifest b/net-wireless/hostapd/Manifest index 0c4412590e32..8d68361d657b 100644 --- a/net-wireless/hostapd/Manifest +++ b/net-wireless/hostapd/Manifest @@ -1,9 +1,11 @@ MD5 ffda06509787f2a0d4d8687072ab000d hostapd-0.2.5.ebuild 1020 MD5 32b4c4cf4e25ff18aa6d6592d424bfa4 hostapd-0.3.7.ebuild 2115 +MD5 d039e826a2e38fdbef348abee6065671 hostapd-0.4.0.ebuild 2091 MD5 e1948d4ae3d8cd344d53ecb6166d2192 hostapd-0.2.6.ebuild 1021 MD5 1e2bff55f8d296fbf72620157eb546fd ChangeLog 3731 MD5 52a4b928b36a98e530ae455b73f868f5 metadata.xml 462 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 150 MD5 cf287b50f0ccd832a08fb3031281cd4f files/hostapd.init.d 858 diff --git a/net-wireless/hostapd/files/digest-hostapd-0.4.0 b/net-wireless/hostapd/files/digest-hostapd-0.4.0 new file mode 100644 index 000000000000..cbd70657b20a --- /dev/null +++ b/net-wireless/hostapd/files/digest-hostapd-0.4.0 @@ -0,0 +1,2 @@ +MD5 e94731593b492bfad7a6b341c0514266 hostapd-0.4.0.tar.gz 257771 +MD5 efb9130cf1dcb829caa43af4e0bee2fb madwifi-cvs-snapshot-2005-04-20.tar.bz2 1968548 diff --git a/net-wireless/hostapd/hostapd-0.4.0.ebuild b/net-wireless/hostapd/hostapd-0.4.0.ebuild new file mode 100644 index 000000000000..e5aa0b156154 --- /dev/null +++ b/net-wireless/hostapd/hostapd-0.4.0.ebuild @@ -0,0 +1,83 @@ +# 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.0.ebuild,v 1.1 2005/04/27 09:59:26 brix Exp $ + +inherit toolchain-funcs + +MADWIFI_VERSION="2005-04-20" + +DESCRIPTION="HostAP wireless 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="ssl? ( dev-libs/openssl )" + +src_unpack() { + local CONFIG=${S}/.config + + unpack ${A} + + # 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 + + dosed 's:\(accept_mac_file=\)/etc/hostapd.accept:\1/etc/hostapd/hostapd.accept:g' \ + /etc/hostapd/hostapd.conf + dosed 's:\(deny_mac_file=\)/etc/hostapd.deny:\1/etc/hostapd/hostapd.deny:g' \ + /etc/hostapd/hostapd.conf + + dosbin hostapd + + newinitd ${FILESDIR}/hostapd.init.d hostapd + + 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 b2065fef2649..219d50c39e86 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-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog,v 1.21 2005/04/16 09:08:44 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog,v 1.22 2005/04/27 10:02:48 brix Exp $ + +*wpa_supplicant-0.4.0 (27 Apr 2005) + + 27 Apr 2005; <brix@gentoo.org> +files/wpa_supplicant-0.4.0-conf.d, + +files/wpa_supplicant-0.4.0-init.d, + +files/wpa_supplicant-0.4.0-wpa_cli.action, +wpa_supplicant-0.4.0.ebuild: + New development snapshot. 16 Apr 2005; <brix@gentoo.org> wpa_supplicant-0.3.8.ebuild: Stable on x86. diff --git a/net-wireless/wpa_supplicant/Manifest b/net-wireless/wpa_supplicant/Manifest index d058fd9a332a..b82a9bf4521b 100644 --- a/net-wireless/wpa_supplicant/Manifest +++ b/net-wireless/wpa_supplicant/Manifest @@ -2,9 +2,14 @@ MD5 039c1f1136aa1b00e1facbcb18a643a7 wpa_supplicant-0.3.8.ebuild 3127 MD5 4d2fd49e3994d5cabec6b9c26b92ea11 wpa_supplicant-0.2.7.ebuild 2722 MD5 22b65af4dc9487527fb495c5c82a70d0 ChangeLog 6690 MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255 +MD5 b09b6c1e17cacb8ca7f8cb2fceeeb968 wpa_supplicant-0.4.0.ebuild 3176 MD5 78e1b4e6585e53e08ba3210eb53d4258 files/wpa_supplicant-0.3.8-conf.d 394 MD5 461b028eb4103f140fa88d33efbb640a files/digest-wpa_supplicant-0.2.7 156 MD5 6b30dfb43745d57ea0280e9fb1467546 files/digest-wpa_supplicant-0.3.8 157 +MD5 8a187dfdf8f03c84c486378b2b165f06 files/digest-wpa_supplicant-0.4.0 157 MD5 95a04705cb8e47f8d4611186cffb6a96 files/wpa_supplicant-0.3.8-init.d 975 MD5 38d9ee18b195a6ceb213c1c74a57aab9 files/wpa_supplicant-0.2.7-conf.d 398 MD5 d49276870258f0f4b9f8830e82553e7b files/wpa_supplicant-0.2.7-init.d 975 +MD5 78e1b4e6585e53e08ba3210eb53d4258 files/wpa_supplicant-0.4.0-conf.d 394 +MD5 c1c8e0ca5f5a3781e3612def405f4f5d files/wpa_supplicant-0.4.0-wpa_cli.action 1104 +MD5 95a04705cb8e47f8d4611186cffb6a96 files/wpa_supplicant-0.4.0-init.d 975 diff --git a/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.4.0 b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.4.0 new file mode 100644 index 000000000000..4b5472628e01 --- /dev/null +++ b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.4.0 @@ -0,0 +1,2 @@ +MD5 b6adfd43ddf1fa06494e71b186185f45 wpa_supplicant-0.4.0.tar.gz 327380 +MD5 efb9130cf1dcb829caa43af4e0bee2fb madwifi-cvs-snapshot-2005-04-20.tar.bz2 1968548 diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-0.4.0-conf.d b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.4.0-conf.d new file mode 100644 index 000000000000..28de81c2e412 --- /dev/null +++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.4.0-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.4.0-conf.d,v 1.1 2005/04/27 10:02:48 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.4.0-init.d b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.4.0-init.d new file mode 100644 index 000000000000..7c3fd2feb4d6 --- /dev/null +++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.4.0-init.d @@ -0,0 +1,42 @@ +#!/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.4.0-init.d,v 1.1 2005/04/27 10:02:48 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 /usr/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 /usr/sbin/wpa_supplicant + eend ${?} +} + diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-0.4.0-wpa_cli.action b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.4.0-wpa_cli.action new file mode 100644 index 000000000000..3935cb2455f7 --- /dev/null +++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.4.0-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.0-wpa_cli.action,v 1.1 2005/04/27 10:02:48 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.0.ebuild b/net-wireless/wpa_supplicant/wpa_supplicant-0.4.0.ebuild new file mode 100644 index 000000000000..42c2ea75c951 --- /dev/null +++ b/net-wireless/wpa_supplicant/wpa_supplicant-0.4.0.ebuild @@ -0,0 +1,116 @@ +# 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.0.ebuild,v 1.1 2005/04/27 10:02:48 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 BSD )" + +SLOT="0" +KEYWORDS="~x86 ~ppc ~amd64" +IUSE="debug gsm readline ssl" + +DEPEND="gsm? ( sys-apps/pcsc-lite ) + 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} + 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 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" +} + +src_install() { + dosbin wpa_supplicant + dobin wpa_cli wpa_passphrase + + 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 + + newinitd ${FILESDIR}/${MY_P}-init.d wpa_supplicant || die + newconfd ${FILESDIR}/${MY_P}-conf.d wpa_supplicant || die +} + +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 +} |