summaryrefslogtreecommitdiff
path: root/net-wireless/broadcom-firmware-downloader/broadcom-firmware-downloader-0.2.ebuild
blob: 3410464a6d62930aa1c9ea44c2b6a21c2150c7de (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

DESCRIPTION="Closed Broadcom Commercial Firmware Downloader"
HOMEPAGE="http://linuxwireless.org/en/users/Drivers/b43"
SRC_URI="b43? ( http://www.lwfinger.com/b43-firmware/broadcom-wl-5.100.138.tar.bz2 )
	b43legacy? ( http://downloads.openwrt.org/sources/wl_apsta-3.130.20.0.o )"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="+b43 +b43legacy"
RESTRICT="strip"

DEPEND=""
RDEPEND="net-wireless/b43-fwcutter"

src_install() {
	dodir /lib/firmware/broadcom-unmodified || die "failed to create dir"
	insinto /lib/firmware/broadcom-unmodified
	if use b43; then doins "${WORKDIR}"/broadcom-wl-5.100.138/linux/wl_apsta.o || die "failed to install b43 files"; fi;
	if use b43legacy; then doins "${DISTDIR}"/wl_apsta-3.130.20.0.o || die "failed to install b43legacy files"; fi;
	einfo "Unmolested Broadcom firmware files have been downloaded from openwrt and stored on the hdd."
	einfo "No changes to the files have been made, only unmodified files have been distributed."
	einfo "If the user wishes these firmware in a useful way then emerge broadcom-firmware-installer."
}