blob: 49c0e8872b3a1775a512b49ee04c07ac6d6ee660 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/rt61/rt61-1.1.0_beta2.ebuild,v 1.1 2007/05/09 16:16:19 genstef Exp $
inherit linux-mod
DESCRIPTION="Driver for the RaLink RT61 wireless chipsets"
HOMEPAGE="http://rt2x00.serialmonkey.com/wiki/index.php/Main_Page"
LICENSE="GPL-2"
MY_P=${P/_beta/-b}
SRC_URI="mirror://sourceforge/rt2400/${MY_P}.tar.gz"
KEYWORDS="-* ~amd64 ~x86"
IUSE="debug"
DEPEND=""
RDEPEND="net-wireless/wireless-tools
!net-wireless/ralink-rt61"
S="${WORKDIR}/${MY_P}"
MODULE_NAMES="rt61(net:${S}/Module)"
CONFIG_CHECK="NET_RADIO"
ERROR_NET_RADIO="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)."
MODULESD_RT61_ALIASES=('ra? rt61')
pkg_setup() {
linux-mod_pkg_setup
BUILD_PARAMS="KERNDIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}"
}
src_compile() {
use debug && BUILD_TARGETS="clean debug"
linux-mod_src_compile
}
src_install() {
linux-mod_src_install
dodoc CHANGELOG FAQ TESTING THANKS
dodoc Module/README Module/STA_iwpriv_ATE_usage.txt
insinto /etc/Wireless/RT61STA
doins Module/rt{2{561{,s},661}.bin,61sta.dat}
}
pkg_postinst() {
linux-mod_pkg_postinst
einfo
einfo "Thanks to RaLink for releasing open drivers!"
einfo
}
|