/[gentoo-x86]/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20050420-r1.ebuild
Gentoo

Contents of /net-wireless/madwifi-driver/madwifi-driver-0.1_pre20050420-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Apr 14 14:02:44 2006 UTC (14 years, 3 months ago) by brix
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Moved to net-wireless/madwifi-ng

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20050420-r1.ebuild,v 1.2 2006/02/17 13:52:03 brix Exp $
4
5 inherit linux-mod
6
7 DESCRIPTION="Wireless driver for Atheros chipset a/b/g cards"
8 HOMEPAGE="http://madwifi.sourceforge.net/"
9 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"
10 LICENSE="GPL-2"
11 KEYWORDS="~x86 ~amd64 ~ppc"
12 IUSE=""
13 DEPEND="app-arch/sharutils"
14 RDEPEND=""
15 S=${WORKDIR}/madwifi
16 CONFIG_CHECK="NET_RADIO"
17 ERROR_NET_RADIO="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)."
18
19 pkg_setup() {
20 linux-mod_pkg_setup
21
22 use x86 && TARGET=i386-elf
23 use amd64 && TARGET=x86_64-elf
24 use ppc && TARGET=powerpc-be-eabi
25 MODULE_NAMES="ath_hal(net:${S}/ath_hal) wlan(net:${S}/net80211) wlan_acl(net:${S}/net80211)
26 wlan_ccmp(net:${S}/net80211) wlan_tkip(net:${S}/net80211) wlan_wep(net:${S}/net80211)
27 wlan_xauth(net:${S}/net80211) ath_rate_amrr(net:${S}/ath_rate/amrr)
28 ath_rate_onoe(net:${S}/ath_rate/onoe) ath_pci(net:${S}/ath)"
29 BUILD_PARAMS="KERNELPATH=${ROOT}${KV_OUT_DIR} KERNELRELEASE=${KV_FULL}
30 TARGET=${TARGET} TOOLPREFIX=/usr/bin/"
31 BUILD_TARGETS="all"
32 }
33
34 src_unpack() {
35 unpack ${A}
36 cd ${S}
37 for dir in ath ath_hal net80211 ath_rate/amrr ath_rate/onoe; do
38 convert_to_m ${S}/${dir}/Makefile
39 done
40 }
41
42 src_install() {
43 linux-mod_src_install
44
45 dodoc README COPYRIGHT
46
47 # install headers for use by
48 # net-wireless/wpa_supplicant and net-wireless/hostapd
49 insinto /usr/include/madwifi/include/
50 doins include/*.h
51 insinto /usr/include/madwifi/net80211
52 doins net80211/*.h
53 }
54
55 pkg_postinst() {
56 linux-mod_pkg_postinst
57
58 einfo
59 einfo "The madwifi drivers create an interface named 'athX'"
60 einfo "Create /etc/init.d/net.ath0 and add a line for athX"
61 einfo "in /etc/conf.d/net"
62 einfo
63 einfo "If you use net-wireless/wpa_supplicant or net-wireless/hostapd with madwifi"
64 einfo "you should remerge them now."
65 einfo
66 }

  ViewVC Help
Powered by ViewVC 1.1.20