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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Jun 26 17:39:42 2010 UTC (4 years, 4 months ago) by nixnut
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
ppc stable #306851
(Portage version: 2.1.8.3/cvs/Linux ppc)

1 # Copyright 1999-2010 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.4119.20100201.ebuild,v 1.2 2010/04/12 18:58:06 maekke Exp $
4
5 EAPI="2"
6
7 inherit linux-mod versionator
8
9 MY_PN=${PN/-ng/}
10 MY_PV=$(get_version_component_range 1-3)
11 MY_REV=$(get_version_component_range 4)
12 MY_DATE=$(get_version_component_range 5)
13 MY_P=${MY_PN}-${MY_PV}-r${MY_REV}-${MY_DATE}
14 S=${WORKDIR}/${MY_P}
15
16 DESCRIPTION="Next Generation driver for Atheros based IEEE 802.11a/b/g wireless LAN cards"
17 HOMEPAGE="http://www.madwifi-project.org/"
18 SRC_URI="http://snapshots.madwifi-project.org/${MY_PN}-${MY_PV}/${MY_P}.tar.gz"
19
20 LICENSE="atheros-hal
21 || ( BSD GPL-2 )"
22 SLOT="0"
23 KEYWORDS="amd64 ppc x86"
24 IUSE="injection"
25
26 RDEPEND="!net-wireless/madwifi-old
27 net-wireless/wireless-tools
28 ~net-wireless/madwifi-ng-tools-${PV}"
29
30 pkg_setup() {
31 CONFIG_CHECK="CRYPTO WIRELESS_EXT SYSCTL"
32 kernel_is lt 2 6 29 && CONFIG_CHECK="${CONFIG_CHECK} KMOD"
33 ERROR_CRYPTO="${P} requires Cryptographic API support (CONFIG_CRYPTO)."
34 ERROR_WIRELESS_EXT="${P} requires CONFIG_WIRELESS_EXT selected by Wireless LAN drivers (non-hamradio) & Wireless Extensions"
35 kernel_is gt 2 6 33 && \
36 ERROR_WIRELESS_EXT="${P} requires CONFIG_WIRELESS_EXT selected by some Wireless LAN drivers (e.g CONFIG_IPW2100)"
37 ERROR_SYSCTL="${P} requires Sysctl support (CONFIG_SYSCTL)."
38 ERROR_KMOD="${F} requires CONFIG_KMOD to be set to y or m"
39 BUILD_TARGETS="all"
40 MODULESD_ATH_PCI_DOCS="README"
41 linux-mod_pkg_setup
42
43 MODULE_NAMES='ath_hal(net:"${S}"/ath_hal)
44 wlan(net:"${S}"/net80211)
45 wlan_acl(net:"${S}"/net80211)
46 wlan_ccmp(net:"${S}"/net80211)
47 wlan_tkip(net:"${S}"/net80211)
48 wlan_wep(net:"${S}"/net80211)
49 wlan_xauth(net:"${S}"/net80211)
50 wlan_scan_sta(net:"${S}"/net80211)
51 wlan_scan_ap(net:"${S}"/net80211)
52 ath_rate_amrr(net:"${S}"/ath_rate/amrr)
53 ath_rate_onoe(net:"${S}"/ath_rate/onoe)
54 ath_rate_sample(net:"${S}"/ath_rate/sample)
55 ath_rate_minstrel(net:"${S}"/ath_rate/minstrel)
56 ath_pci(net:"${S}"/ath)'
57
58 BUILD_PARAMS="KERNELPATH=${KV_OUT_DIR}"
59 }
60
61 src_prepare() {
62 use injection && epatch "${FILESDIR}"/${PN}-injection-r3925.patch
63 for dir in ath ath_hal net80211 ath_rate ath_rate/amrr ath_rate/minstrel ath_rate/onoe ath_rate/sample; do
64 convert_to_m "${S}/${dir}/Makefile"
65 done
66 sed -e 's:-Werror ::' -i Makefile.inc || die "sed -Werror failed"
67 make svnversion.h || die
68 }
69
70 src_install() {
71 linux-mod_src_install
72 dodoc README THANKS SNAPSHOT || die
73 }
74
75 pkg_postinst() {
76 local moddir="${ROOT}/lib/modules/${KV_FULL}/net/"
77
78 linux-mod_pkg_postinst
79
80 einfo
81 einfo "Interfaces (athX) are now automatically created upon loading the ath_pci"
82 einfo "module."
83 einfo
84 einfo "The type of the created interface can be controlled through the 'autocreate'"
85 einfo "module parameter."
86 einfo
87 einfo "As of net-wireless/madwifi-ng-0.9.3 rate control module selection is done at"
88 einfo "module load time via the 'ratectl' module parameter."
89
90 elog "Please note: This release is based off of 0.9.3.3 and NOT trunk."
91 elog "# No AR5007 support in this release;"
92 elog "experimental support is available for i386 (32bit) in #1679"
93 elog "# No AR5008 support in this release; support is available in trunk "
94 elog "No, we will not apply the patch from 1679, if you must, please do so
95 in an overlay on your system. That is upstreams ticket 1679, not Gentoo's."
96 }

  ViewVC Help
Powered by ViewVC 1.1.20