summaryrefslogtreecommitdiff
blob: e870da77fd55b5964fb46baadbac508a01cbf65a (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/bcm4400/bcm4400-3.0.7.ebuild,v 1.4 2004/06/24 23:36:09 agriffis Exp $

SRC_URI="http://www.broadcom.com/docs/driver_download/440x/linux-3.0.7.zip"
DESCRIPTION="Driver for the bcm4400 10/100 network card (in the form of kernel modules)."
HOMEPAGE="http://www.broadcom.com"
LICENSE="GPL-2"

SLOT="0"
KEYWORDS="x86"

DEPEND="app-arch/unzip"

S=${WORKDIR}/linux/${P}/src

src_unpack() {

	unpack ${A}
	cd ${WORKDIR}/linux
	tar -xzpf ${P}.tar.gz

}

src_compile() {

	check_KV

	sed -i -e "s|\$(shell uname -r)|$KV|" -e "s|shell uname -r|echo $KV|" Makefile
	emake || die

}

src_install() {

	mkdir -p ${D}/usr/share/man/man4
	make PREFIX=${D} install || die

}

pkg_postinst() {

	echo ">>> Updating module dependencies..."
	/sbin/depmod -a >/dev/null 2>&1

}