# 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.46 2005/10/17 10:14:45 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostap-driver/ChangeLog,v 1.47 2005/10/22 10:45:39 brix Exp $
+
+ 22 Oct 2005; Henrik Brix Andersen <brix@gentoo.org>
+ -files/hostap-driver-0.4.1-firmware.patch,
+ -files/hostap-driver-0.4.4-firmware.patch, -hostap-driver-0.4.1.ebuild,
+ -hostap-driver-0.4.4.ebuild:
+ Pruned old versions.
*hostap-driver-0.4.5 (17 Oct 2005)
+++ /dev/null
-MD5 4d216fd8eb031eac1d1738646a0654bd hostap-driver-0.4.1.tar.gz 201143
+++ /dev/null
-MD5 e9b4a5cb992e06c3c6bf2bc99eca6625 hostap-driver-0.4.4.tar.gz 202307
+++ /dev/null
-diff -urp hostap-driver-0.4.1/driver/modules/hostap_config.h hostap-driver-0.4.1-firmware/driver/modules/hostap_config.h
---- hostap-driver-0.4.1/driver/modules/hostap_config.h 2005-05-23 05:36:11.000000000 +0200
-+++ hostap-driver-0.4.1-firmware/driver/modules/hostap_config.h 2005-05-23 11:23:09.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
+++ /dev/null
-diff -urp hostap-driver-0.4.4/driver/modules/hostap_config.h hostap-driver-0.4.4-firmware/driver/modules/hostap_config.h
---- hostap-driver-0.4.4/driver/modules/hostap_config.h 2005-08-21 21:24:43.000000000 +0200
-+++ hostap-driver-0.4.4-firmware/driver/modules/hostap_config.h 2005-08-22 00:18:56.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
+++ /dev/null
-# 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.1.ebuild,v 1.3 2005/08/13 16:06:58 brix Exp $
-
-inherit toolchain-funcs eutils linux-mod
-
-DESCRIPTION="Driver for Intersil Prism2/2.5/3 based IEEE 802.11b wireless LAN products"
-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
-
- sed -i \
- -e "s:gcc:$(tc-getCC):" \
- -e "s:tail -1:tail -n 1:" \
- ${S}/Makefile
-
- if use pcmcia; then
- # unpack the pcmcia-cs sources if needed
- pcmcia_src_unpack
-
- # 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
- fi
-
- convert_to_m ${S}/Makefile
-}
-
-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
-}
+++ /dev/null
-# 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.4.ebuild,v 1.2 2005/09/17 09:57:19 blubb Exp $
-
-inherit toolchain-funcs eutils linux-mod
-
-DESCRIPTION="Driver for Intersil Prism2/2.5/3 based IEEE 802.11b wireless LAN products"
-HOMEPAGE="http://hostap.epitest.fi"
-SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz"
-LICENSE="GPL-2"
-
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="pcmcia"
-SLOT="0"
-
-RDEPEND=">=net-wireless/wireless-tools-25"
-
-BUILD_TARGETS="all"
-MODULESD_HOSTAP_DOCS="README"
-MODULESD_HOSTAP_CRYPT_WEP_ENABLED="no"
-MODULESD_HOSTAP_CRYPT_TKIP_ENABLED="no"
-MODULESD_HOSTAP_CRYPT_CCMP_ENABLED="no"
-
-CONFIG_CHECK="NET_RADIO"
-NET_RADIO_ERROR="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)."
-
-pkg_setup() {
- linux-mod_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
-
- BUILD_PARAMS="KERNEL_PATH=${KV_DIR}"
-}
-
-src_unpack() {
- unpack ${A}
-
- cd ${S}
- epatch ${FILESDIR}/${P}-firmware.patch
-
- sed -i \
- -e "s:gcc:$(tc-getCC):" \
- -e "s:tail -1:tail -n 1:" \
- ${S}/Makefile
-
- if use pcmcia; then
- # unpack the pcmcia-cs sources if needed
- pcmcia_src_unpack
-
- # 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
- fi
-
- convert_to_m ${S}/Makefile
-}
-
-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
-}
# 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.42 2005/10/17 10:17:11 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.43 2005/10/22 10:48:33 brix Exp $
+
+ 22 Oct 2005; Henrik Brix Andersen <brix@gentoo.org>
+ -files/hostapd-0.4.3-conf.d, -files/hostapd-0.4.3-init.d,
+ -files/hostapd-0.4.4-conf.d, -files/hostapd-0.4.4-init.d,
+ -hostapd-0.4.3.ebuild, -hostapd-0.4.4.ebuild, -hostapd-0.4.4-r1.ebuild:
+ Pruned old versions.
*hostapd-0.4.5 (17 Oct 2005)
+++ /dev/null
-MD5 2222632066dfb1f7fc3a802192e536ce hostapd-0.4.3.tar.gz 269967
-MD5 efb9130cf1dcb829caa43af4e0bee2fb madwifi-cvs-snapshot-2005-04-20.tar.bz2 1968548
+++ /dev/null
-MD5 79810ff32f6f12a37dc7827ce18af533 hostapd-0.4.4.tar.gz 273112
+++ /dev/null
-MD5 79810ff32f6f12a37dc7827ce18af533 hostapd-0.4.4.tar.gz 273112
+++ /dev/null
-# 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"
+++ /dev/null
-#!/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 ${?}
-}
+++ /dev/null
-# 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.4-conf.d,v 1.1 2005/08/22 12:51:11 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"
+++ /dev/null
-#!/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.4-init.d,v 1.2 2005/08/22 20:35:18 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 --quiet --exec /usr/sbin/hostapd --signal HUP
- eend ${?}
-}
+++ /dev/null
-# 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.2 2005/07/08 12:26:11 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"
-
-RDEPEND="ssl? ( dev-libs/openssl )"
-DEPEND="${RDEPEND}
- sys-apps/sed"
-
-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
-}
+++ /dev/null
-# 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.4-r1.ebuild,v 1.2 2005/09/17 09:58:40 blubb Exp $
-
-inherit toolchain-funcs
-
-DESCRIPTION="IEEE 802.11 wireless LAN Host AP daemon"
-HOMEPAGE="http://hostap.epitest.fi"
-SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz"
-
-LICENSE="|| ( GPL-2 BSD )"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-
-IUSE="ipv6 madwifi ssl"
-
-RDEPEND="ssl? ( dev-libs/openssl )
- madwifi? ( >=net-wireless/madwifi-driver-0.1_pre20050420-r1 )"
-DEPEND="${RDEPEND}
- sys-apps/sed"
-
-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}
-
- if use madwifi; then
- # Add include path for madwifi-driver headers
- echo "CFLAGS += -I/usr/include/madwifi" >> ${CONFIG}
- echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG}
- fi
-}
-
-src_compile() {
- emake || die "emake failed"
-}
-
-src_install() {
- insinto /etc/hostapd
- doins hostapd.conf hostapd.accept hostapd.deny \
- hostapd.eap_user hostapd.radius_clients hostapd.sim_db hostapd.wpa_psk
-
- 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
-}
-
-pkg_postinst() {
- einfo
- einfo "In order to use ${PN} you need to set up your wireless card"
- einfo "for master mode in /etc/conf.d/net or /etc/conf.d/wireless"
- einfo "and then start /etc/init.d/hostapd."
- einfo
- einfo "Example configuration:"
- einfo
- einfo "config_wlan0=( \"192.168.1.1/24\" )"
- einfo "channel_wlan0=\"6\""
- einfo "essid_wlan0=\"test\""
- einfo "mode_wlan0=\"master\""
- einfo
- if use madwifi; then
- einfo "This package now compiles against the headers installed by"
- einfo "net-wireless/madwifi-driver. You should remerge ${PN} after"
- einfo "upgrading net-wireless/madwifi-driver."
- einfo
- fi
-}
+++ /dev/null
-# 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.4.ebuild,v 1.1 2005/08/22 12:51:11 brix Exp $
-
-inherit toolchain-funcs
-
-DESCRIPTION="IEEE 802.11 wireless LAN Host AP daemon"
-HOMEPAGE="http://hostap.epitest.fi"
-SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz"
-
-LICENSE="|| ( GPL-2 BSD )"
-SLOT="0"
-KEYWORDS="~x86 ~ppc"
-
-IUSE="ipv6 madwifi ssl"
-
-RDEPEND="ssl? ( dev-libs/openssl )
- madwifi? ( >=net-wireless/madwifi-driver-0.1_pre20050420-r1 )"
-DEPEND="${RDEPEND}
- sys-apps/sed"
-
-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}
-
- if use madwifi; then
- # Add include path for madwifi-driver headers
- echo "CFLAGS += -I/usr/include/madwifi" >> ${CONFIG}
- echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG}
- fi
-}
-
-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
-}
-
-pkg_postinst() {
- einfo
- einfo "In order to use ${PN} you need to set up your wireless card"
- einfo "for master mode in /etc/conf.d/net or /etc/conf.d/wireless"
- einfo "and then start /etc/init.d/hostapd."
- einfo
- einfo "Example configuration:"
- einfo
- einfo "config_wlan0=( \"192.168.1.1/24\" )"
- einfo "channel_wlan0=\"6\""
- einfo "essid_wlan0=\"test\""
- einfo "mode_wlan0=\"master\""
- einfo
- if use madwifi; then
- einfo "This package now compiles against the headers installed by"
- einfo "net-wireless/madwifi-driver. You should remerge ${PN} after"
- einfo "upgrading net-wireless/madwifi-driver."
- einfo
- fi
-}
# ChangeLog for net-wireless/wireless-tools
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/wireless-tools/ChangeLog,v 1.79 2005/10/16 17:16:50 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/wireless-tools/ChangeLog,v 1.80 2005/10/22 10:51:13 brix Exp $
+
+ 22 Oct 2005; Henrik Brix Andersen <brix@gentoo.org>
+ -wireless-tools-28_pre8-r1.ebuild, -wireless-tools-28_pre9.ebuild:
+ Pruned old versions.
*wireless-tools-28_pre10 (16 Oct 2005)
+++ /dev/null
-MD5 ea32365b13618242d307d7846f958b4c wireless_tools.28.pre8.tar.gz 221531
+++ /dev/null
-MD5 602ed4021dae3e6e4f0a172e489fd252 wireless_tools.28.pre9.tar.gz 234146
+++ /dev/null
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/wireless-tools/wireless-tools-28_pre8-r1.ebuild,v 1.3 2005/07/30 08:44:19 brix Exp $
-
-inherit toolchain-funcs multilib
-
-# The following works with both pre-releases and releases
-MY_P=${PN/-/_}.${PV/_/.}
-S=${WORKDIR}/${MY_P/\.pre*/}
-
-DESCRIPTION="A collection of tools to configure IEEE 802.11 wireless LAN cards"
-SRC_URI="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/${MY_P}.tar.gz"
-HOMEPAGE="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html"
-
-KEYWORDS="~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
-SLOT="0"
-LICENSE="GPL-2"
-
-DEPEND="sys-apps/sed
- !elibc_uclibc? ( >=sys-apps/baselayout-1.11.13 )"
-RDEPEND="virtual/libc"
-IUSE="multicall nls"
-
-src_unpack() {
- unpack ${A}
-
- sed -i \
- -e "s:^\(CC\) = gcc:\1 = $(tc-getCC):" \
- -e "s:^\(AR\) = ar:\1 = $(tc-getAR):" \
- -e "s:^\(RANLIB\) = ranlib:\1 = $(tc-getRANLIB):" \
- -e "s:^\(CFLAGS=-Os\):#\1:" \
- -e "s:\(@\$(LDCONFIG).*\):#\1:" \
- -e "s:^\(INSTALL_MAN= \$(PREFIX)\)/man/:\1/share/man:" \
- -e "s:^\(INSTALL_LIB= \$(PREFIX)\)/lib/:\1/$(get_libdir)/:" \
- ${S}/Makefile
-}
-
-src_compile() {
- if use multicall; then
- emake || die "emake failed"
- emake iwmulticall || die "emake iwmulticall failed"
- else
- emake || die "emake failed"
- fi
-}
-
-src_install() {
- if use multicall; then
- emake PREFIX=${D}/ INSTALL_INC=${D}/usr/include INSTALL_MAN=${D}/usr/share/man install \
- || die "emake install failed"
- # 'make install-iwmulticall will overwrite some of the tools
- # with symlinks - this is intentional (brix)
- emake PREFIX=${D}/ INSTALL_INC=${D}/usr/include INSTALL_MAN=${D}/usr/share/man install-iwmulticall \
- || die "emake install-iwmulticall failed"
- else
- emake PREFIX=${D}/ INSTALL_INC=${D}/usr/include INSTALL_MAN=${D}/usr/share/man install \
- || die "emake install failed"
- fi
-
- if use nls; then
- insinto /usr/share/man/fr/man5
- doins fr/iftab.5
-
- insinto /usr/share/man/fr/man7
- doins fr/wireless.7
-
- insinto /usr/share/man/fr/man8
- doins fr/{ifrename,iwconfig,iwevent,iwgetid,iwlist,iwpriv,iwspy}.8
-
- dodoc README.fr
-
- insinto /usr/share/man/cs/man5
- doins cs/iftab.5
-
- insinto /usr/share/man/cs/man7
- doins cs/wireless.7
-
- insinto /usr/share/man/cs/man8
- doins cs/{ifrename,iwconfig,iwevent,iwgetid,iwlist,iwpriv,iwspy}.8
- fi
-
- dodoc CHANGELOG.h COPYING INSTALL HOTPLUG.txt PCMCIA.txt README
-}
+++ /dev/null
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/wireless-tools/wireless-tools-28_pre9.ebuild,v 1.1 2005/09/02 21:53:21 brix Exp $
-
-inherit toolchain-funcs multilib
-
-# The following works with both pre-releases and releases
-MY_P=${PN/-/_}.${PV/_/.}
-S=${WORKDIR}/${MY_P/\.pre*/}
-
-DESCRIPTION="A collection of tools to configure IEEE 802.11 wireless LAN cards"
-SRC_URI="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/${MY_P}.tar.gz"
-HOMEPAGE="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html"
-
-KEYWORDS="~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
-SLOT="0"
-LICENSE="GPL-2"
-
-DEPEND="sys-apps/sed"
-RDEPEND="virtual/libc"
-IUSE="multicall nls"
-
-src_unpack() {
- unpack ${A}
-
- sed -i \
- -e "s:^\(CC\) = gcc:\1 = $(tc-getCC):" \
- -e "s:^\(AR\) = ar:\1 = $(tc-getAR):" \
- -e "s:^\(RANLIB\) = ranlib:\1 = $(tc-getRANLIB):" \
- -e "s:^\(CFLAGS=-Os\):#\1:" \
- -e "s:\(@\$(LDCONFIG).*\):#\1:" \
- -e "s:^\(INSTALL_MAN= \$(PREFIX)\)/man/:\1/share/man:" \
- -e "s:^\(INSTALL_LIB= \$(PREFIX)\)/lib/:\1/$(get_libdir)/:" \
- ${S}/Makefile
-}
-
-src_compile() {
- if use multicall; then
- emake || die "emake failed"
- emake iwmulticall || die "emake iwmulticall failed"
- else
- emake || die "emake failed"
- fi
-}
-
-src_install() {
- if use multicall; then
- emake PREFIX=${D}/ INSTALL_INC=${D}/usr/include INSTALL_MAN=${D}/usr/share/man install \
- || die "emake install failed"
- # 'make install-iwmulticall will overwrite some of the tools
- # with symlinks - this is intentional (brix)
- emake PREFIX=${D}/ INSTALL_INC=${D}/usr/include INSTALL_MAN=${D}/usr/share/man install-iwmulticall \
- || die "emake install-iwmulticall failed"
- else
- emake PREFIX=${D}/ INSTALL_INC=${D}/usr/include INSTALL_MAN=${D}/usr/share/man install \
- || die "emake install failed"
- fi
-
- if use nls; then
- insinto /usr/share/man/fr/man5
- doins fr/iftab.5
-
- insinto /usr/share/man/fr/man7
- doins fr/wireless.7
-
- insinto /usr/share/man/fr/man8
- doins fr/{ifrename,iwconfig,iwevent,iwgetid,iwlist,iwpriv,iwspy}.8
-
- dodoc README.fr
-
- insinto /usr/share/man/cs/man5
- doins cs/iftab.5
-
- insinto /usr/share/man/cs/man7
- doins cs/wireless.7
-
- insinto /usr/share/man/cs/man8
- doins cs/{ifrename,iwconfig,iwevent,iwgetid,iwlist,iwpriv,iwspy}.8
- fi
-
- dodoc CHANGELOG.h COPYING INSTALL HOTPLUG.txt PCMCIA.txt README
-}
# 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.35 2005/10/17 10:19:19 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog,v 1.36 2005/10/22 10:52:52 brix Exp $
+
+ 22 Oct 2005; Henrik Brix Andersen <brix@gentoo.org>
+ -files/wpa_supplicant-0.4.3-wpa_cli.action,
+ -files/wpa_supplicant-0.4.4-wpa_cli.action,
+ -wpa_supplicant-0.4.3-r1.ebuild, -wpa_supplicant-0.4.4.ebuild:
+ Pruned old versions.
*wpa_supplicant-0.4.5 (17 Oct 2005)
+++ /dev/null
-MD5 ebcdf680d9092afa9f6249171d2387ca wpa_supplicant-0.4.3.tar.gz 373052
-MD5 efb9130cf1dcb829caa43af4e0bee2fb madwifi-cvs-snapshot-2005-04-20.tar.bz2 1968548
+++ /dev/null
-MD5 29c70c9ee0891072db413459cdac2e18 wpa_supplicant-0.4.4.tar.gz 395049
+++ /dev/null
-#!/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}
+++ /dev/null
-#!/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.4-wpa_cli.action,v 1.1 2005/08/22 12:53:24 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}
+++ /dev/null
-# 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.2 2005/07/28 21:01:35 caleb 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-3* )
- 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
-}
+++ /dev/null
-# 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.4.ebuild,v 1.1 2005/08/22 12:53:24 brix Exp $
-
-inherit eutils toolchain-funcs
-
-MY_P=${PN}-${PV/_/-}
-S=${WORKDIR}/${MY_P}
-
-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"
-LICENSE="|| ( GPL-2 BSD )"
-
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="debug gsm madwifi qt readline ssl"
-
-DEPEND="gsm? ( sys-apps/pcsc-lite )
- qt? ( =x11-libs/qt-3* )
- readline? ( sys-libs/ncurses
- sys-libs/readline )
- ssl? ( dev-libs/openssl )
- madwifi? ( >=net-wireless/madwifi-driver-0.1_pre20050420-r1 )
- >=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}
-
- if use madwifi; then
- # Add include path for madwifi-driver headers
- echo "CFLAGS += -I/usr/include/madwifi" >> ${CONFIG}
- echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG}
- fi
-}
-
-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 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
- if use madwifi; then
- einfo "This package now compiles against the headers installed by"
- einfo "net-wireless/madwifi-driver. You should remerge ${PN} after"
- einfo "upgrading net-wireless/madwifi-driver."
- einfo
- fi
-}