/[gentoo-x86]/net-wireless/madwifi-ng/madwifi-ng-0.9.3.3.ebuild
Gentoo

Contents of /net-wireless/madwifi-ng/madwifi-ng-0.9.3.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Nov 15 16:19:47 2008 UTC (5 years, 8 months ago) by pva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -2 lines
madwifi.org changed to madwifi-project.org, bug #246289, thank hitachi for report.
(Portage version: 2.2_rc14/cvs/Linux 2.6.26-openvz.git-35f41f1 i686)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-wireless/madwifi-ng/madwifi-ng-0.9.3.3.ebuild,v 1.7 2008/02/14 05:25:13 steev Exp $
4
5 inherit linux-mod
6
7 MY_P=${PN/-ng/}-${PV}
8 S="${WORKDIR}"/${MY_P}
9
10 DESCRIPTION="Next Generation driver for Atheros based IEEE 802.11a/b/g wireless LAN cards"
11 HOMEPAGE="http://www.madwifi-project.org/"
12 SRC_URI="mirror://sourceforge/madwifi/madwifi-${PV}.tar.bz2"
13
14 LICENSE="atheros-hal
15 || ( BSD GPL-2 )"
16 SLOT="0"
17 KEYWORDS="amd64 ppc x86"
18 IUSE="injection"
19
20 DEPEND="app-arch/sharutils"
21 RDEPEND="!net-wireless/madwifi-old
22 net-wireless/wireless-tools
23 ~net-wireless/madwifi-ng-tools-${PV}"
24
25 CONFIG_CHECK="CRYPTO WIRELESS_EXT SYSCTL KMOD"
26 ERROR_CRYPTO="${P} requires Cryptographic API support (CONFIG_CRYPTO)."
27 ERROR_WIRELESS_EXT="${P} requires CONFIG_WIRELESS_EXT selected by Wireless LAN drivers (non-hamradio) & Wireless Extensions"
28 ERROR_SYSCTL="${P} requires Sysctl support (CONFIG_SYSCTL)."
29 ERROR_KMOD="${F} requires CONFIG_KMOD to be set to y or m"
30 BUILD_TARGETS="all"
31 MODULESD_ATH_PCI_DOCS="README"
32
33 pkg_setup() {
34 linux-mod_pkg_setup
35
36 MODULE_NAMES='ath_hal(net:"${S}"/ath_hal)
37 wlan(net:"${S}"/net80211)
38 wlan_acl(net:"${S}"/net80211)
39 wlan_ccmp(net:"${S}"/net80211)
40 wlan_tkip(net:"${S}"/net80211)
41 wlan_wep(net:"${S}"/net80211)
42 wlan_xauth(net:"${S}"/net80211)
43 wlan_scan_sta(net:"${S}"/net80211)
44 wlan_scan_ap(net:"${S}"/net80211)
45 ath_rate_amrr(net:"${S}"/ath_rate/amrr)
46 ath_rate_onoe(net:"${S}"/ath_rate/onoe)
47 ath_rate_sample(net:"${S}"/ath_rate/sample)
48 ath_pci(net:"${S}"/ath)'
49
50 BUILD_PARAMS="KERNELPATH=${KV_OUT_DIR}"
51 }
52
53 src_unpack() {
54 unpack ${A}
55
56 cd "${S}"
57 epatch "${FILESDIR}"/${PN}-0.9.3-uudecode-gcda-fix.patch
58 if use injection; then epatch "${FILESDIR}"/${PN}-r1886.patch; fi
59 for dir in ath ath_hal net80211 ath_rate ath_rate/amrr ath_rate/onoe ath_rate/sample; do
60 convert_to_m "${S}"/${dir}/Makefile
61 done
62 }
63
64 src_install() {
65 linux-mod_src_install
66
67 dodoc README THANKS docs/users-guide.pdf docs/WEP-HOWTO.txt
68 }
69
70 pkg_postinst() {
71 local moddir="${ROOT}/lib/modules/${KV_FULL}/net/"
72
73 linux-mod_pkg_postinst
74
75 einfo
76 einfo "Interfaces (athX) are now automatically created upon loading the ath_pci"
77 einfo "module."
78 einfo
79 einfo "The type of the created interface can be controlled through the 'autocreate'"
80 einfo "module parameter."
81 einfo
82 einfo "As of net-wireless/madwifi-ng-0.9.3 rate control module selection is done at"
83 einfo "module load time via the 'ratectl' module parameter. USE flags amrr and onoe"
84 einfo "no longer serve any purpose."
85 }

  ViewVC Help
Powered by ViewVC 1.1.20