Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #94: madwifi-ng-driver-svn-1.0.ebuild

File madwifi-ng-driver-svn-1.0.ebuild, 2.4 kB (added by ronni@post.au.dk, 14 years ago)

ebuild

Line 
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 subversion flag-o-matic
6
7 ESVN_REPO_URI="http://svn.madwifi.org/trunk/"
8 ESVN_PROJECT="madwifi-ng"
9
10 DESCRIPTION="Wireless-ng driver for Atheros chipset a/b/g cards"
11 HOMEPAGE="http://www.madwifi.org/"
12 LICENSE="GPL-2"
13 KEYWORDS="~x86 ~amd64 ~ppc"
14 IUSE=""
15 DEPEND="app-arch/sharutils"
16 RDEPEND=""
17 S=${WORKDIR}/madwifi
18 CONFIG_CHECK="NET_RADIO"
19 ERROR_NET_RADIO="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)."
20
21 pkg_setup() {
22         linux-mod_pkg_setup
23
24         use x86 && ARCH=i386
25         use amd64 && ARCH=x86_64
26 #       use ppc && ARCH=powerpc-be-eabi
27         MODULE_NAMES="ath_hal(net:${S}/ath_hal)
28                 wlan(net:${S}/net80211)
29                 wlan_acl(net:${S}/net80211)
30                 wlan_ccmp(net:${S}/net80211)
31                 wlan_tkip(net:${S}/net80211)
32                 wlan_wep(net:${S}/net80211)
33                 wlan_xauth(net:${S}/net80211)
34                 ath_rate_amrr(net:${S}/ath_rate/amrr)
35                 ath_rate_onoe(net:${S}/ath_rate/onoe)
36                 ath_rate_sample(net:${S}/ath_rate/sample)
37                 ath_pci(net:${S}/ath)"
38         BUILD_PARAMS="KERNELPATH=${ROOT}${KV_OUT_DIR} KERNELRELEASE=${KV_FULL}
39                 ARCH=${ARCH} TOOLPREFIX=/usr/bin/"
40         BUILD_TARGETS="all"
41 }
42
43 src_unpack() {
44         subversion_src_unpack
45        
46         #epatch ${FILESDIR}/ath_if.c.diff
47        
48         for dir in ath ath_hal net80211 ath_rate/amrr ath_rate/onoe ath_rate/sample
49         do
50                 convert_to_m ${S}/${dir}/Makefile
51         done
52
53 }
54
55 src_compile() {
56         emake || die "emake failed"
57 }
58
59 src_install() {
60         linux-mod_src_install
61
62         cd ${S}
63
64         dodoc README README_FIRST COPYRIGHT
65
66         cd ${S}/docs
67
68         dodoc users-guide.pdf
69         dodoc users-guide.tex
70         dodoc WEP-HOWTO.txt
71
72         cd ${S}/docs/man
73        
74         doman *.8
75
76         # install headers for use by
77         # net-wireless/wpa_supplicant and net-wireless/hostapd
78         insinto /usr/include/madwifi/include/
79         doins include/*.h
80         insinto /usr/include/madwifi/net80211
81         doins net80211/*.h
82
83         cd ${S}/tools
84         make install DESTDIR=${D} BINDIR=/sbin
85 #       dosbin athstats
86 #       dosbin athdebug
87 #       dosbin athkey
88 #       dosbin athchans
89 #       dosbin 80211stats
90 #       dosbin 80211debug
91 #       dosbin wlanconfig
92
93 }
94
95 pkg_postinst() {
96         linux-mod_pkg_postinst
97
98         einfo ""
99         einfo "The madwifi drivers create an interface named 'wifiX'"
100         einfo ""
101 }