summaryrefslogtreecommitdiff
path: root/net-wireless/prism54/prism54-20050724.ebuild
blob: 7db6c33929e75d83a7a4872f185e87f3b9fd47ad (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /root/portage/net-wireless/prism54/prism54-20050724.ebuild,v 1.1.1.1 2006/03/22 23:30:35 grimmlin Exp $

EAPI="2"

inherit linux-mod

MY_P=${P/prism54-/prism54-svn-}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Driver for Intersil Prism GT / Prism Duette wireless chipsets with injection patch"
HOMEPAGE="http://prism54.org/"
SRC_URI="http://www.pentoo.ch/distfiles/${MY_P}.tgz"
LICENSE="GPL-2"
KEYWORDS="~x86"
IUSE="pcmcia"
RDEPEND="net-wireless/prism54-firmware
	 net-wireless/wireless-tools"

MODULE_NAMES="prism54(net:${S}/ksrc)"
BUILD_PARAMS="KVER=${KV_FULL} KDIR=${KV_DIR}"
BUILD_TARGETS="modules"

CONFIG_CHECK="!PRISM54 NET_RADIO FW_LOADER"
PRISM54_ERROR="You need prism54-firmware for the in-kernel driver or deselect
the in-kernel driver to use the (probably older) driver from this ebuild."
NET_RADIO_ERROR='You should enable "Wireless LAN drivers (non-hamradio) &
Wireless Extensions"[CONFIG_NET_RADIO] in your kernel config'
FW_LOADER_ERROR="Make sure you have CONFIG_FW_LOADER enabled in your kernel."

use pcmcia && CONFIG_CHECK="${CONFIG_CHECK} PCMCIA CARDBUS"
PCMCIA_ERROR=CARDBUS_ERROR="General setup  --->
	PCMCIA/CardBus support  --->
		PCMCIA/CardBus support (m or y)
		[*]   CardBus support (Important!)"

pkg_setup() {
	linux-mod_pkg_setup
}

src_prepare() {
	epatch "${FILESDIR}"/prism54-svn-20050724.patch
}

src_install() {
	linux-mod_src_install
	dodoc README ksrc/ChangeLog
}