summaryrefslogtreecommitdiff
blob: d7dd29a74fded5af2cd12cc71c9646ba285c7330 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/zd1201/zd1201-0.14.ebuild,v 1.1 2005/04/16 12:02:34 genstef Exp $

inherit linux-mod

DESCRIPTION="Linux Driver for ZyDAS 1201 (zd1201) based USB 802.11b Network WiFi devices"

S=${WORKDIR}
FW_VERSION="${PV}"
HOMEPAGE="http://linux-lc100020.sourceforge.net/"
SRC_URI="mirror://sourceforge/linux-lc100020/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"

IUSE=""
RDEPEND="=net-wireless/zd1201-firmware-${FW_VERSION}
		net-wireless/wireless-tools"

MODULE_NAMES="zd1201(net:)"
BUILD_TARGETS="clean modules"

CONFIG_CHECK="NET_RADIO USB FW_LOADER"
NET_RADIO_ERROR="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)."
USB_ERROR="$P requires USB support (CONFIG_USB)"
FW_LOADER_ERROR="${P} requires Hotplug firmware loading support (CONFIG_FW_LOADER)."

pkg_setup() {
	if kernel_is lt 2 6 10; then
		die "Please upgrade to kernel 2.6.10 or above. There is a USB issue with anything lower."
	fi

	linux-mod_pkg_setup
	BUILD_PARAMS="KERNEL_SOURCE=${KV_DIR} KERNEL_VERSION=${KV_MAJOR}.${KV_MINOR}"
}

src_install() {
	linux-mod_src_install

	dodoc README
}