/[gentoo-x86]/net-wireless/bcm43xx/bcm43xx-0.0.1-r20060329.ebuild
Gentoo

Contents of /net-wireless/bcm43xx/bcm43xx-0.0.1-r20060329.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Sep 18 22:49:24 2006 UTC (13 years, 9 months ago) by kugelfang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Removed net-wireless/{bcm43xx,ieee80211softmac}.

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-wireless/bcm43xx/bcm43xx-0.0.1-r20060329.ebuild,v 1.3 2006/04/21 13:10:30 josejx Exp $
4
5 inherit linux-mod eutils
6
7 DESCRIPTION="Driver for Broadcom 43xx based wireless network devices"
8 HOMEPAGE="http://bcm43xx.berlios.de"
9 SRC_URI="http://tara.shadowpimps.net/~bcm43xx/bcm43xx-snapshots/standalone/${PN}/${PN}-standalone-${PR#r20}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc ~x86"
14
15 IUSE="debug"
16 DEPEND=">=net-wireless/ieee80211softmac-0.1-r${PR#r20}"
17 RDEPEND="${DEPEND}
18 net-wireless/bcm43xx-fwcutter
19 >=net-wireless/wireless-tools-28_pre4
20 >=sys-apps/hotplug-20040923-r1"
21
22 BUILD_TARGETS="modules"
23 MODULE_NAMES="bcm43xx(net/wireless::drivers/net/wireless/bcm43xx)"
24
25 CONFIG_CHECK="NET_RADIO FW_LOADER"
26 use debug && CONFIG_CHECK="$CONFIG_CHECK DEBUG_FS"
27 ERROR_NET_RADIO="${P} requires support for \"Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)\"."
28 ERROR_FW_LOADER="${P} requires \"Hotplug firmware loading support (CONFIG_FW_LOADER)\"."
29 ERROR_DEBUG_FS="${P} requires Debug Filesystem support (CONFIG_DEBUG_FS) for building with USE=\"debug\"."
30
31 S="${WORKDIR}/${PN}-standalone-${PR#r20}"
32
33 pkg_setup() {
34 linux-mod_pkg_setup
35
36 if kernel_is lt 2 6 15; then
37 die "${P} requires a kernel 2.6.15 or newer, sorry."
38 fi
39 }
40
41 src_unpack() {
42 unpack ${A}
43
44 cd "${S}"
45 # use external headers, fix "no version magic" bug
46 epatch ${FILESDIR}/fix-Makefile.patch
47
48 cd "${S}/drivers/net/wireless/${PN}"
49
50 # bcm43xx expects KBUILD_MODNAME as a string; is this a 2.6.16 thing?
51 sed -e 's/\<KBUILD_MODNAME\>/"'"${PN}"'"/g' -i *.[ch] || die 'sed failed'
52 }
53
54 src_compile() {
55 BUILD_PARAMS="DEBUG=$(use debug && echo y || echo n) KSRC=${KV_DIR} \
56 KSRC_OUTPUT=${KV_OUT_DIR} KDIR=${ROOT}/lib/modules/${KV_FULL}/build" \
57 linux-mod_src_compile
58 }
59
60 src_install() {
61 # Install the module
62 linux-mod_src_install
63 }
64
65 pkg_postinst() {
66 linux-mod_pkg_postinst
67
68 if [ -f /lib/modules/${KV_FULL}/net/${PN}.ko ]; then
69 einfo
70 einfo "Modules from an earlier installation detected. You will need to manually"
71 einfo "remove those modules by running the following commands:"
72 einfo " # rm -f /lib/modules/${KV_FULL}/net/${PN}.ko"
73 einfo " # depmod -a"
74 einfo
75 fi
76
77 einfo "Please read this forum thread for help and troubleshooting:"
78 einfo "http://forums.gentoo.org/viewtopic-t-409194.html"
79 einfo
80 }

  ViewVC Help
Powered by ViewVC 1.1.20