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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (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.5: +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-r20060125.ebuild,v 1.5 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="mirror://gentoo/${PN}-${PR#r}.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-r2006125"
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:)"
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
30 buidling with USE=\"debug\"."
31
32 S="${WORKDIR}/${PN}-${PR#r}"
33
34 pkg_setup() {
35 linux-mod_pkg_setup
36
37 if kernel_is lt 2 6 15; then
38 die "${P} does not support building against kernels older than 2.6.15."
39 fi
40 }
41
42 src_unpack() {
43 unpack ${A}
44 cd ${S}
45 epatch ${FILESDIR}/add_stats.patch
46 epatch ${FILESDIR}/remove_ieee_check.patch
47 }
48
49 src_compile() {
50 BUILD_PARAMS="DEBUG=$(use debug && echo y || echo n) KSRC=${KV_DIR} KSRC_OUTPUT=${KV_OUT_DIR} SOFTMAC_DIR=/usr/include/softmac" linux-mod_src_compile
51 }
52
53 src_install() {
54 # Install the module
55 linux-mod_src_install
56 }
57
58 pkg_postinst() {
59 linux-mod_pkg_postinst
60
61 if [ -f /lib/modules/${KV_FULL}/net/${PN}.ko ]; then
62 einfo
63 einfo "Modules from an earlier installation detected. You will need to manually"
64 einfo "remove those modules by running the following commands:"
65 einfo " # rm -f /lib/modules/${KV_FULL}/net/${PN}.ko"
66 einfo " # depmod -a"
67 einfo
68 fi
69
70 einfo "Please read this forum thread for help and troubleshooting:"
71 einfo "http://forums.gentoo.org/viewtopic-t-409194.html"
72 einfo
73 }

  ViewVC Help
Powered by ViewVC 1.1.20