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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sat Jan 31 16:15:06 2009 UTC (5 years, 6 months ago) by pva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +3 -2 lines
Fixed build problem with gcc-4.3, bug #256669, thank cilly for report and fix.
(Portage version: 2.2_rc23/cvs/Linux i686)

1 # Copyright 1999-2009 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.4.ebuild,v 1.9 2008/11/15 16:28:31 pva 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 RDEPEND="!net-wireless/madwifi-old
21 net-wireless/wireless-tools
22 ~net-wireless/madwifi-ng-tools-${PV}"
23
24 CONFIG_CHECK="CRYPTO WIRELESS_EXT SYSCTL KMOD"
25 ERROR_CRYPTO="${P} requires Cryptographic API support (CONFIG_CRYPTO)."
26 ERROR_WIRELESS_EXT="${P} requires CONFIG_WIRELESS_EXT selected by Wireless LAN drivers (non-hamradio) & Wireless Extensions"
27 ERROR_SYSCTL="${P} requires Sysctl support (CONFIG_SYSCTL)."
28 ERROR_KMOD="${F} requires CONFIG_KMOD to be set to y or m"
29 BUILD_TARGETS="all"
30 MODULESD_ATH_PCI_DOCS="README"
31
32 pkg_setup() {
33 linux-mod_pkg_setup
34
35 MODULE_NAMES='ath_hal(net:"${S}"/ath_hal)
36 wlan(net:"${S}"/net80211)
37 wlan_acl(net:"${S}"/net80211)
38 wlan_ccmp(net:"${S}"/net80211)
39 wlan_tkip(net:"${S}"/net80211)
40 wlan_wep(net:"${S}"/net80211)
41 wlan_xauth(net:"${S}"/net80211)
42 wlan_scan_sta(net:"${S}"/net80211)
43 wlan_scan_ap(net:"${S}"/net80211)
44 ath_rate_amrr(net:"${S}"/ath_rate/amrr)
45 ath_rate_onoe(net:"${S}"/ath_rate/onoe)
46 ath_rate_sample(net:"${S}"/ath_rate/sample)
47 ath_rate_minstrel(net:"${S}"/ath_rate/minstrel)
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/minstrel ath_rate/onoe ath_rate/sample; do
60 convert_to_m "${S}"/${dir}/Makefile
61 done
62 epatch "${FILESDIR}"/madwifi-dfs-ieee80211-skb-update.patch
63 kernel_is ge 2 6 27 && epatch "${FILESDIR}/${P}-2.6.27-r3811.patch"
64 epatch "${FILESDIR}/${P}-request_module-build.patch"
65 }
66
67 src_install() {
68 linux-mod_src_install
69
70 dodoc README THANKS docs/users-guide.pdf docs/WEP-HOWTO.txt
71 }
72
73 pkg_postinst() {
74 local moddir="${ROOT}/lib/modules/${KV_FULL}/net/"
75
76 linux-mod_pkg_postinst
77
78 einfo
79 einfo "Interfaces (athX) are now automatically created upon loading the ath_pci"
80 einfo "module."
81 einfo
82 einfo "The type of the created interface can be controlled through the 'autocreate'"
83 einfo "module parameter."
84 einfo
85 einfo "As of net-wireless/madwifi-ng-0.9.3 rate control module selection is done at"
86 einfo "module load time via the 'ratectl' module parameter. USE flags amrr and onoe"
87 einfo "no longer serve any purpose."
88
89 elog "Please note: This release is based off of 0.9.3.3 and NOT trunk."
90 elog "# No AR5007 support in this release;"
91 elog "experimental support is available for i386 (32bit) in #1679"
92 elog "# No AR5008 support in this release; support is available in trunk "
93 elog "No, we will not apply the patch from 1679, if you must, please do so
94 in an overlay on your system. That is upstreams ticket 1679, not Gentoo's."
95 }

  ViewVC Help
Powered by ViewVC 1.1.20