/[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.5 - (hide annotations) (download)
Wed Nov 16 21:59:26 2005 UTC (14 years, 8 months ago) by genstef
Branch: MAIN
Changes since 1.4: +4 -1 lines
Remove ath_rate_amrr if it is leftover from an old installation, #112728
(Portage version: 2.0.53_rc7)

1 genstef 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 genstef 1.5 # $Header: /var/cvsroot/gentoo-x86/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20051111.ebuild,v 1.4 2005/11/15 11:44:47 cryos Exp $
4 genstef 1.1
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 cryos 1.4 KEYWORDS="-amd64 ~ppc ~x86"
13 genstef 1.1 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 genstef 1.5 # 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 genstef 1.1 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 genstef 1.2 if [ "\${IFACE}" = "ath0" ]; then
73 genstef 1.1 /sbin/wlanconfig ath0 create wlandev wifi0 wlanmode sta
74 genstef 1.2 return \$?
75 genstef 1.1 fi
76     }
77 mr_bones_ 1.3
78 genstef 1.1 postdown() {
79 genstef 1.2 if [ "\${IFACE}" = "ath0" ]; then
80 genstef 1.1 /sbin/wlanconfig ath0 destroy
81 genstef 1.2 return \$?
82 genstef 1.1 fi
83     }
84     EOF
85     }

  ViewVC Help
Powered by ViewVC 1.1.20