summaryrefslogtreecommitdiff
blob: 0470a76aad8fd20ec344b94b68a59908dcbbc4d1 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/zd1211/zd1211-20050822-r1.ebuild,v 1.1 2005/11/05 04:15:57 superlag Exp $

inherit linux-mod eutils

DESCRIPTION="Driver for the zd1211 wireless chipset"
HOMEPAGE="http://zd1211.sourceforge.net/"
SRC_URI="mirror://sourceforge/zd1211/sf_${PN}_${PV}_src.tar.gz"
S=${WORKDIR}/${PN}
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""
DEPEND="net-wireless/wireless-tools"
BUILD_TARGETS="all"

pkg_setup() {
	linux-mod_pkg_setup
	BUILD_PARAMS="KSRC=${KV_DIR} KDIR=${KV_DIR}"
	MODULE_NAMES="zd1211_mod(net:${S}:${S}/src/modules-${KV_FULL})"
}

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${PN}-gentoo-20051028.diff
}

src_compile() {
	linux-mod_src_compile
	emake -C tools
}

src_install() {
	linux-mod_src_install
	dobin tools/apdbg
	dodoc README CHANGES
}