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

Contents of /net-wireless/madwifi-driver/madwifi-driver-0.1_pre20051111.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Feb 1 16:37:22 2006 UTC (14 years, 6 months ago) by brix
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Removed broken version.
(Portage version: 2.0.54)

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_pre20051111.ebuild,v 1.5 2005/11/16 21:59:26 genstef Exp $
4
5 inherit linux-mod
6
7 MADWIFI_SVN_REV="1325"
8 DESCRIPTION="Wireless driver for Atheros chipset a/b/g cards"
9 HOMEPAGE="http://www.madwifi.org"
10 SRC_URI="http://snapshots.madwifi.org/madwifi-trunk-r${MADWIFI_SVN_REV}-${PV:7:8}.tar.gz"
11 LICENSE="GPL-2"
12 KEYWORDS="-amd64 ~ppc ~x86"
13 IUSE=""
14 DEPEND="app-arch/sharutils"
15 RDEPEND=">=net-wireless/madwifi-tools-0.1_pre20051031"
16 S=${WORKDIR}/madwifi-trunk-r${MADWIFI_SVN_REV}-${PV:7:8}
17 CONFIG_CHECK="NET_RADIO"
18 ERROR_NET_RADIO="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)."
19
20 pkg_setup() {
21 linux-mod_pkg_setup
22
23 use x86 && TARGET=i386-elf
24 use amd64 && TARGET=x86_64-elf
25 use ppc && TARGET=powerpc-be-eabi
26 MODULE_NAMES="ath_hal(net:${S}/ath_hal) wlan(net:${S}/net80211) wlan_acl(net:${S}/net80211)
27 wlan_ccmp(net:${S}/net80211) wlan_tkip(net:${S}/net80211) wlan_wep(net:${S}/net80211)
28 wlan_xauth(net:${S}/net80211) wlan_scan_sta(net:${S}/net80211) wlan_scan_ap(net:${S}/net80211)
29 ath_rate_onoe(net:${S}/ath_rate/onoe)
30 ath_rate_sample(net:${S}/ath_rate/sample) ath_pci(net:${S}/ath)"
31 # does not compile ath_rate_amrr(net:${S}/ath_rate/amrr)
32 BUILD_PARAMS="KERNELPATH=${ROOT}${KV_OUT_DIR} KERNELRELEASE=${KV_FULL}
33 TARGET=${TARGET} TOOLPREFIX=/usr/bin/"
34 BUILD_TARGETS="all"
35 }
36
37 src_unpack() {
38 unpack ${A}
39 cd ${S}
40 for dir in ath ath_hal net80211 ath_rate/amrr ath_rate/onoe ath_rate/sample; do
41 convert_to_m ${S}/${dir}/Makefile
42 done
43
44 # Fix for erronously included header
45 sed -i "s:.*if.h>::" ${S}/net80211/ieee80211_ioctl.h || die
46 }
47
48 src_install() {
49 linux-mod_src_install
50
51 dodoc README COPYRIGHT docs/users-guide.pdf docs/WEP-HOWTO.txt
52
53 # install headers for use by
54 # net-wireless/wpa_supplicant and net-wireless/hostapd
55 insinto /usr/include/madwifi/include/
56 doins include/*.h
57 insinto /usr/include/madwifi/net80211
58 doins net80211/*.h
59 }
60
61 pkg_postinst() {
62 # remove old module to avoid segfaults, #112728
63 rate_amrr=${ROOT}/lib/modules/${KV_FULL}/net/ath_rate_amrr.ko
64 [ -f ${rate_amrr} ] && rm ${rate_amrr}
65 linux-mod_pkg_postinst
66
67 einfo ""
68 einfo "You need to create athX using wlanconfig"
69 einfo "Baselayout will do that with the following in /etc/conf.d/net:"
70 cat <<EOF
71 preup() {
72 if [ "\${IFACE}" = "ath0" ]; then
73 /sbin/wlanconfig ath0 create wlandev wifi0 wlanmode sta
74 return \$?
75 fi
76 }
77
78 postdown() {
79 if [ "\${IFACE}" = "ath0" ]; then
80 /sbin/wlanconfig ath0 destroy
81 return \$?
82 fi
83 }
84 EOF
85 }

  ViewVC Help
Powered by ViewVC 1.1.20