diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-01-24 19:17:52 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-01-24 19:17:52 +0000 |
commit | 41beef00d091800c1431327e7c7e3e3e23558dab (patch) | |
tree | 98e7cd1b53e526fbeca6f27ef6ec4157106d3221 | |
parent | initial commit - ebuild submitted by MaratIK via bug #63212 (diff) | |
download | historical-41beef00d091800c1431327e7c7e3e3e23558dab.tar.gz historical-41beef00d091800c1431327e7c7e3e3e23558dab.tar.bz2 historical-41beef00d091800c1431327e7c7e3e3e23558dab.zip |
New development snapshot.
Package-Manager: portage-2.0.51-r15
-rw-r--r-- | net-wireless/hostap-driver/ChangeLog | 8 | ||||
-rw-r--r-- | net-wireless/hostap-driver/Manifest | 5 | ||||
-rw-r--r-- | net-wireless/hostap-driver/files/digest-hostap-driver-0.3.5 | 6 | ||||
-rw-r--r-- | net-wireless/hostap-driver/files/hostap-driver-0.3.5-firmware.patch | 12 | ||||
-rw-r--r-- | net-wireless/hostap-driver/hostap-driver-0.3.5.ebuild | 105 | ||||
-rw-r--r-- | net-wireless/hostapd/ChangeLog | 7 | ||||
-rw-r--r-- | net-wireless/hostapd/Manifest | 2 | ||||
-rw-r--r-- | net-wireless/hostapd/files/digest-hostapd-0.3.5 | 2 | ||||
-rw-r--r-- | net-wireless/hostapd/hostapd-0.3.5.ebuild | 80 | ||||
-rw-r--r-- | net-wireless/wpa_supplicant/ChangeLog | 9 | ||||
-rw-r--r-- | net-wireless/wpa_supplicant/Manifest | 4 | ||||
-rw-r--r-- | net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.3.5 | 2 | ||||
-rw-r--r-- | net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.5-conf.d | 12 | ||||
-rw-r--r-- | net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.5-init.d | 42 | ||||
-rw-r--r-- | net-wireless/wpa_supplicant/wpa_supplicant-0.3.5.ebuild | 108 |
15 files changed, 400 insertions, 4 deletions
diff --git a/net-wireless/hostap-driver/ChangeLog b/net-wireless/hostap-driver/ChangeLog index 1bc5e9ec805f..e35f114f8383 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.29 2005/01/14 17:16:25 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostap-driver/ChangeLog,v 1.30 2005/01/24 19:12:40 brix Exp $ + +*hostap-driver-0.3.5 (24 Jan 2005) + + 24 Jan 2005; Henrik Brix Andersen <brix@gentoo.org> + +files/hostap-driver-0.3.5-firmware.patch, +hostap-driver-0.3.5.ebuild: + New development snapshot. 14 Jan 2005; Henrik Brix Andersen <brix@gentoo.org> hostap-driver-0.2.6-r1.ebuild: diff --git a/net-wireless/hostap-driver/Manifest b/net-wireless/hostap-driver/Manifest index 89a7aa4596a8..0af4a2cfcf40 100644 --- a/net-wireless/hostap-driver/Manifest +++ b/net-wireless/hostap-driver/Manifest @@ -5,11 +5,13 @@ MD5 cc5e31889933e2f4d3509bb6642026de hostap-driver-0.3.3-r1.ebuild 2868 MD5 52632d04c78163775e618e2e1ee37c08 hostap-driver-0.2.5.ebuild 3201 MD5 498b6d437d20985d1f028a3dc001fb84 hostap-driver-0.3.3.ebuild 3598 MD5 c94b7e9fe75e00370db3af612d4b4761 hostap-driver-0.2.5-r1.ebuild 3607 +MD5 63409ea9f357a759ada65caee2411ec8 hostap-driver-0.3.5.ebuild 2586 MD5 19d1f40524a05555c709a81614cdbfc8 hostap-driver-0.3.0.ebuild 3621 -MD5 8a71e51bd4a847f69a625a84007b74f0 ChangeLog 5389 +MD5 cbc8cfcb0ba30258feaa9479771d8037 ChangeLog 5582 MD5 5f6ec5c50fa3a91a429fec8670cf241b metadata.xml 722 MD5 c3a13c9ecb4fb1fb73d88f7040afa5fd hostap-driver-0.2.4.ebuild 2700 MD5 f7a49c3b2764821383db2a933661eacb files/hostap-driver-0.3.2-firmware.patch 739 +MD5 6990675b20aab8dbcda3b2cd082cbd9a files/hostap-driver-0.3.5-firmware.patch 739 MD5 c45be0cf6326f054520ce15096361e84 files/hostap-driver-0.3.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 @@ -20,6 +22,7 @@ MD5 2867dcc26d843b380c5c6be06a89a9af files/digest-hostap-driver-0.2.6 441 MD5 31eba7db39a7678ae7619995f6d96370 files/digest-hostap-driver-0.3.0 441 MD5 b86779810351ad030a68fabc4dda44f8 files/digest-hostap-driver-0.3.2 441 MD5 d9b1b7ab5bfa090d1eca4d8865f5465c files/digest-hostap-driver-0.3.3 441 +MD5 074dc33c1415026d4491a0008ecbc883 files/digest-hostap-driver-0.3.5 441 MD5 d76aa90f71a4ef13a49ccca8863b66ba files/hostap-driver-0.2.6-firmware.patch 739 MD5 9451f65d0b1724a60a07b9310d9ebc52 files/hostap-driver-0.2.5.firmware.diff.bz2 472 MD5 479a81eda3a37282cf5954f589eb3017 files/hostap-driver-0.3.3-firmware.patch 739 diff --git a/net-wireless/hostap-driver/files/digest-hostap-driver-0.3.5 b/net-wireless/hostap-driver/files/digest-hostap-driver-0.3.5 new file mode 100644 index 000000000000..0a589eb2326a --- /dev/null +++ b/net-wireless/hostap-driver/files/digest-hostap-driver-0.3.5 @@ -0,0 +1,6 @@ +MD5 44dbc0a8978fe618eee242b0bd25392c pcmcia-cs-3.2.5.tar.gz 1266494 +MD5 33325ed642b5277a9695d10bd19b3d7a pcmcia-cs-3.2.5-module-init-tools.diff.gz 460 +MD5 ee4f8227cc28f9a29a609f6e9561ef54 pcmcia-cs-3.2.5-SMP-fix.diff.gz 320 +MD5 2b2cba3fdd498b001ea3c27d8b2da31b pcmcia-cs-3.2.5-3.2.6.diff.gz 23034 +MD5 f2feda5eb46c1a2b99ae9db274879afc pcmcia-cs-3.2.5-3.2.7.diff.gz 28244 +MD5 54e61a51c109519124fe80fc728e039b hostap-driver-0.3.5.tar.gz 200243 diff --git a/net-wireless/hostap-driver/files/hostap-driver-0.3.5-firmware.patch b/net-wireless/hostap-driver/files/hostap-driver-0.3.5-firmware.patch new file mode 100644 index 000000000000..f281195305e1 --- /dev/null +++ b/net-wireless/hostap-driver/files/hostap-driver-0.3.5-firmware.patch @@ -0,0 +1,12 @@ +diff -urp hostap-driver-0.3.5/driver/modules/hostap_config.h hostap-driver-0.3.5-firmware/driver/modules/hostap_config.h +--- hostap-driver-0.3.5/driver/modules/hostap_config.h 2005-01-24 05:43:17.000000000 +0100 ++++ hostap-driver-0.3.5-firmware/driver/modules/hostap_config.h 2005-01-24 15:46:25.000000000 +0100 +@@ -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.3.5.ebuild b/net-wireless/hostap-driver/hostap-driver-0.3.5.ebuild new file mode 100644 index 000000000000..216d048b0d4e --- /dev/null +++ b/net-wireless/hostap-driver/hostap-driver-0.3.5.ebuild @@ -0,0 +1,105 @@ +# 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.3.5.ebuild,v 1.1 2005/01/24 19:12:40 brix Exp $ + +inherit toolchain-funcs eutils pcmcia 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_TARGETS="all" + +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() { + pcmcia_configure + linux-mod_src_compile +} + +src_install() { + if use pcmcia; then + insinto /etc/pcmcia + doins driver/etc/hostap_cs.conf + fi + + dodoc ChangeLog README + + 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 + + einfo "" + einfo "Please notice that all ${PN} modules are now installed to" + einfo "/lib/modules/${KV}/net/." + einfo "" + einfo "You may have to manually delete the old modules if upgrading from from" + einfo "<=net-wireless/${PN}-0.2.4." + einfo "" + + 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/hostapd/ChangeLog b/net-wireless/hostapd/ChangeLog index a665e842f7cd..b20d9fd30b20 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.19 2005/01/18 11:21:36 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.20 2005/01/24 19:14:42 brix Exp $ + +*hostapd-0.3.5 (24 Jan 2005) + + 24 Jan 2005; Henrik Brix Andersen <brix@gentoo.org> +hostapd-0.3.5.ebuild: + New development snapshot. 18 Jan 2005; Henrik Brix Andersen <brix@gentoo.org> hostapd-0.2.4.ebuild, hostapd-0.2.5.ebuild, hostapd-0.2.6.ebuild, hostapd-0.3.0.ebuild, diff --git a/net-wireless/hostapd/Manifest b/net-wireless/hostapd/Manifest index fc5983a2d7ff..7ea9689eb40f 100644 --- a/net-wireless/hostapd/Manifest +++ b/net-wireless/hostapd/Manifest @@ -1,5 +1,6 @@ MD5 ffda06509787f2a0d4d8687072ab000d hostapd-0.2.5.ebuild 1020 MD5 feb89da2edf4b93eade9e0047ac0b00a hostapd-0.3.3.ebuild 2120 +MD5 e9e9fc7dfe0c05796b31d733d0a9b637 hostapd-0.3.5.ebuild 2034 MD5 b733acbe99189b72d6990d7b189cabd4 hostapd-0.3.0.ebuild 1690 MD5 09e2d9ad85fb49139f417b838bbd4280 hostapd-0.2.4.ebuild 1031 MD5 74003a0d736b70612e159e99f38ace6d hostapd-0.3.2.ebuild 1895 @@ -16,4 +17,5 @@ MD5 3545835b787224800fe3423a60f29808 files/digest-hostapd-0.3.1 149 MD5 30d8ea24bfd552e0638487411450495e files/digest-hostapd-0.3.2 149 MD5 f713d9fe7806353e0d9a06dd39d389c4 files/digest-hostapd-0.3.3 149 MD5 7b6b425aae76d68299b011725e1de3b7 files/digest-hostapd-0.3.4 150 +MD5 057577db7f5bc827f3866eb1160986ee files/digest-hostapd-0.3.5 150 MD5 cf287b50f0ccd832a08fb3031281cd4f files/hostapd.init.d 858 diff --git a/net-wireless/hostapd/files/digest-hostapd-0.3.5 b/net-wireless/hostapd/files/digest-hostapd-0.3.5 new file mode 100644 index 000000000000..5710a9c1d600 --- /dev/null +++ b/net-wireless/hostapd/files/digest-hostapd-0.3.5 @@ -0,0 +1,2 @@ +MD5 1e3c1ba18f2138f21b0fcccedacf5562 hostapd-0.3.5.tar.gz 246010 +MD5 8237d57be31464ddd7a710704e6755f0 madwifi-cvs-snapshot-2005-01-07.tar.bz2 1586914 diff --git a/net-wireless/hostapd/hostapd-0.3.5.ebuild b/net-wireless/hostapd/hostapd-0.3.5.ebuild new file mode 100644 index 000000000000..c2516f3b93e3 --- /dev/null +++ b/net-wireless/hostapd/hostapd-0.3.5.ebuild @@ -0,0 +1,80 @@ +# 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.3.5.ebuild,v 1.1 2005/01/24 19:14:42 brix Exp $ + +inherit toolchain-funcs + +MADWIFI_VERSION="2005-01-07" + +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" +SLOT="0" +KEYWORDS="~x86 ~ppc" + +IUSE="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 + + # 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 + + exeinto /etc/init.d + newexe ${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 2dc685746f2d..9997382179f2 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.12 2005/01/19 21:56:29 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog,v 1.13 2005/01/24 19:17:52 brix Exp $ + +*wpa_supplicant-0.3.5 (24 Jan 2005) + + 24 Jan 2005; Henrik Brix Andersen <brix@gentoo.org> + +files/wpa_supplicant-0.3.5-conf.d, +files/wpa_supplicant-0.3.5-init.d, + +wpa_supplicant-0.3.5.ebuild: + New development snapshot. 19 Jan 2005; Henrik Brix Andersen <brix@gentoo.org> wpa_supplicant-0.3.4.ebuild: diff --git a/net-wireless/wpa_supplicant/Manifest b/net-wireless/wpa_supplicant/Manifest index 985e7cb1ac76..3f002907c810 100644 --- a/net-wireless/wpa_supplicant/Manifest +++ b/net-wireless/wpa_supplicant/Manifest @@ -3,6 +3,7 @@ MD5 481aefb5c38f5ced44ea0506d35380ee wpa_supplicant-0.3.4.ebuild 3031 MD5 577620ac0a76e46bea0eb793f2e83ad8 wpa_supplicant-0.2.5-r1.ebuild 1854 MD5 9011acca2ca6283f800a8553e3d0bbdd wpa_supplicant-0.3.1.ebuild 2843 MD5 443b36aa0cd3f745cadf73c6378a7914 wpa_supplicant-0.3.3.ebuild 3016 +MD5 6aae6e2938861831df76e5fed4dc5642 wpa_supplicant-0.3.5.ebuild 2916 MD5 8e5bce452597424813b48e7e9132d584 wpa_supplicant-0.3.0.ebuild 2872 MD5 b2eb61223debc9d6cac2e866ae02aeb6 ChangeLog 3788 MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255 @@ -21,9 +22,12 @@ MD5 d6b9d13af0f01e8b7fa70b880b8ecdfe files/digest-wpa_supplicant-0.3.1 156 MD5 3b2cce8cf6663297d567b4f0a7402776 files/digest-wpa_supplicant-0.3.2 156 MD5 a64b1197d398c9f9c7f2fb9b18f4bfb3 files/digest-wpa_supplicant-0.3.3 156 MD5 a58834cdce1fe9d8ee712bf79c5d5ee6 files/digest-wpa_supplicant-0.3.4 157 +MD5 031f2fc9a11074a3ee44056f5f5bd4d5 files/digest-wpa_supplicant-0.3.5 157 MD5 30b483b9200b67ee26b21e3287e0842d files/wpa_supplicant-0.3.3-init.d 975 MD5 a9249a7ed61a912ddd1b561317e76f43 files/digest-wpa_supplicant-0.2.5-r1 235 +MD5 ddb566269da7f672c066f63149109e6c files/wpa_supplicant-0.3.5-conf.d 398 MD5 6dbdde5c93f286b00afacc10673e4de7 files/wpa_supplicant-0.3.0-conf.d 398 +MD5 7df20229c8a507ca15d8354c1183c0f4 files/wpa_supplicant-0.3.5-init.d 975 MD5 4290cd41db8ead604b3096f53d6795e4 files/wpa_supplicant-0.3.0-init.d 975 MD5 586a30fb3487cfd6155df0de2871dedf files/wpa_supplicant-0.3.2-conf.d 398 MD5 f6319e9891f7bf22f32419bf16535324 files/wpa_supplicant-0.3.2-init.d 975 diff --git a/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.3.5 b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.3.5 new file mode 100644 index 000000000000..e86a58a13963 --- /dev/null +++ b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.3.5 @@ -0,0 +1,2 @@ +MD5 d24b2eb60e4969b28ca86a84f635f9ec wpa_supplicant-0.3.5.tar.gz 296890 +MD5 8237d57be31464ddd7a710704e6755f0 madwifi-cvs-snapshot-2005-01-07.tar.bz2 1586914 diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.5-conf.d b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.5-conf.d new file mode 100644 index 000000000000..eb4c3bdfbac6 --- /dev/null +++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.5-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.5-conf.d,v 1.1 2005/01/24 19:17:52 brix Exp $ + +# List of interfaces +INTERFACES="eth1" + +# Common arguments to all wpa_supplicant instances +ARGS="-w" + +# Interface specific arguments +#ARGS_eth1="-Dipw2100" diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.5-init.d b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.5-init.d new file mode 100644 index 000000000000..d4b2d7aa3727 --- /dev/null +++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.3.5-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.3.5-init.d,v 1.1 2005/01/24 19:17:52 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/wpa_supplicant-0.3.5.ebuild b/net-wireless/wpa_supplicant/wpa_supplicant-0.3.5.ebuild new file mode 100644 index 000000000000..5d811554d68a --- /dev/null +++ b/net-wireless/wpa_supplicant/wpa_supplicant-0.3.5.ebuild @@ -0,0 +1,108 @@ +# 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.5.ebuild,v 1.1 2005/01/24 19:17:52 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="~x86 ~ppc ~amd64" +IUSE="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 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_IPW2100=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() { + 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 + + exeinto /etc/init.d + newexe ${FILESDIR}/${P}-init.d wpa_supplicant || die + + insinto /etc/conf.d + newins ${FILESDIR}/${P}-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 "An example configuration file has been installed as" + einfo "/etc/wpa_supplicant.conf.example" + einfo +} |