diff options
Diffstat (limited to 'net-wireless/madwifi-driver/madwifi-driver-0.1_pre20050107.ebuild')
-rw-r--r-- | net-wireless/madwifi-driver/madwifi-driver-0.1_pre20050107.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20050107.ebuild b/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20050107.ebuild new file mode 100644 index 000000000000..02038e46cf85 --- /dev/null +++ b/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20050107.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20050107.ebuild,v 1.1 2005/01/08 00:36:47 solar Exp $ + +inherit linux-mod + +DESCRIPTION="Wireless driver for Atheros chipset a/b/g cards" +HOMEPAGE="http://madwifi.sourceforge.net/" +SRC_URI="http://madwifi.otaku42.de/${PV:7:4}/${PV:11:2}/madwifi-cvs-snapshot-${PV:7:4}-${PV:11:2}-${PV:13:2}.tar.bz2" +LICENSE="GPL-2" +KEYWORDS="-*" +IUSE="" +DEPEND="app-arch/sharutils" +RDEPEND="" +S=${WORKDIR} + +pkg_setup() { + linux-mod_pkg_setup + + use x86 && TARGET=i386-elf + use amd64 && TARGET=x86_64-elf + MODULE_NAMES="ath_hal(net:${S}/ath_hal) ath_rate_onoe(net:${S}/ath_rate/onoe) + wlan(net:${S}/net80211) wlan_acl(net:${S}/net80211) wlan_ccmp(net:${S}/net80211) + wlan_tkip(net:${S}/net80211) wlan_wep(net:${S}/net80211) + wlan_xauth(net:${S}/net80211) ath_pci(net:${S}/ath)" + BUILD_PARAMS="KERNELPATH=${ROOT}${KV_DIR} KERNELRELEASE=${KV_FULL} + TARGET=${TARGET} TOOLPREFIX=/usr/bin/" + BUILD_TARGETS="all" +} + +src_unpack() { + unpack ${A} + cd ${S} + for dir in ath ath_hal net80211; do + convert_to_m ${S}/${dir}/Makefile + done +} + +src_install() { + dodoc README COPYRIGHT + + linux-mod_src_install +} + +pkg_postinst() { + linux-mod_pkg_postinst + + einfo "" + einfo "The madwifi drivers create an interface named 'athX'" + einfo "Create /etc/init.d/net.ath0 and add a line for athX" + einfo "in /etc/conf.d/net like 'iface_ath0=\"dhcp\"'" + einfo "" +} |