diff options
Diffstat (limited to 'net-wireless/bcm43xx/bcm43xx-0.0.1-r20060125.ebuild')
-rw-r--r-- | net-wireless/bcm43xx/bcm43xx-0.0.1-r20060125.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/net-wireless/bcm43xx/bcm43xx-0.0.1-r20060125.ebuild b/net-wireless/bcm43xx/bcm43xx-0.0.1-r20060125.ebuild new file mode 100644 index 000000000000..14df77440090 --- /dev/null +++ b/net-wireless/bcm43xx/bcm43xx-0.0.1-r20060125.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bcm43xx/bcm43xx-0.0.1-r20060125.ebuild,v 1.1 2006/01/31 05:35:45 josejx Exp $ + +inherit linux-mod + +DESCRIPTION="Driver for Broadcom 43xx based wireless network devices" +HOMEPAGE="http://bcm43xx.berlios.de" +SRC_URI="mirror://gentoo/${PN}-${PR#r}.tar.bz2 + mirror://gentoo/${PN}-fwcutter-${PR#r}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +IUSE="debug" +DEPEND=">=net-wireless/ieee80211softmac-0.1-r2006125" +RDEPEND="${DEPEND} + >=net-wireless/wireless-tools-28_pre4" + +BUILD_TARGETS="modules" +MODULE_NAMES="bcm43xx(net/wireless:)" + +CONFIG_CHECK="NET_RADIO FW_LOADER" +ERROR_NET_RADIO="${P} requires support for \"Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)\"." +ERROR_FW_LOADER="${P} requires \"Hotplug firmware loading support (CONFIG_FW_LOADER)\"." + +FWCUTTER_DIR="${WORKDIR}/bcm43xx-fwcutter-${PR#r}" + +S="${WORKDIR}/${PN}-${PR#r}" + +pkg_setup() { + linux-mod_pkg_setup + + if kernel_is lt 2 6 15; then + die "${P} does not support building against kernels older than 2.6.15." + fi +} + +src_compile() { + 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 + cd ${FWCUTTER_DIR} + make || die "Can't compile fwcutter." +} + +src_install() { + # Install fwcutter + exeinto /usr/bin + doexe ${FWCUTTER_DIR}/fwcutter + dodoc ${FWCUTTER_DIR}/README + + # Install the module + linux-mod_src_install +} + +pkg_postinst() { + linux-mod_pkg_postinst + + if [ -f /lib/modules/${KV_FULL}/net/${PN}.ko ]; then + einfo + einfo "Modules from an earlier installation detected. You will need to manually" + einfo "remove those modules by running the following commands:" + einfo " # rm -f /lib/modules/${KV_FULL}/net/${PN}.ko" + einfo " # depmod -a" + einfo + fi + + if ! [ -f /lib/firmware/${PN}_microcode2.fw ]; then + einfo + einfo "You'll need to use fwcutter to install the bcm43xx firmware." + einfo "Please read the fwcutter readme for more details:" + einfo "/usr/share/doc/${PN}-${PVR}/README.gz" + einfo + fi + + einfo "Please read this forums thread for help and troubleshooting:" + einfo "http://forums.gentoo.org/viewtopic-t-409194.html" + einfo +} |