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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Nov 13 16:34:22 2005 UTC (14 years, 8 months ago) by genstef
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump, remove old ebuilds
(Portage version: 2.0.53_rc7)

1 # Copyright 1999-2005 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_pre20050809-r1.ebuild,v 1.1 2005/08/22 12:16:42 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)
29 ath_rate_sample(net:${S}/ath_rate/sample) ath_pci(net:${S}/ath)"
30 BUILD_PARAMS="KERNELPATH=${ROOT}${KV_OUT_DIR} KERNELRELEASE=${KV_FULL}
31 TARGET=${TARGET} TOOLPREFIX=/usr/bin/"
32 BUILD_TARGETS="all"
33 }
34
35 src_unpack() {
36 unpack ${A}
37 cd ${S}
38 for dir in ath ath_hal net80211 ath_rate/amrr ath_rate/onoe ath_rate/sample; do
39 convert_to_m ${S}/${dir}/Makefile
40 done
41 }
42
43 src_install() {
44 linux-mod_src_install
45
46 dodoc README COPYRIGHT
47
48 # install headers for use by
49 # net-wireless/wpa_supplicant and net-wireless/hostapd
50 insinto /usr/include/madwifi/include/
51 doins include/*.h
52 insinto /usr/include/madwifi/net80211
53 doins net80211/*.h
54 }
55
56 pkg_postinst() {
57 linux-mod_pkg_postinst
58
59 einfo ""
60 einfo "The madwifi drivers create an interface named 'athX'"
61 einfo "Create /etc/init.d/net.ath0 and add a line for athX"
62 einfo "in /etc/conf.d/net"
63 einfo ""
64 }

  ViewVC Help
Powered by ViewVC 1.1.20