mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-13 02:11:12 +02:00
new broadcom stuff
This commit is contained in:
parent
08d9c3ada9
commit
0e736aa891
4 changed files with 72 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
DIST broadcom-wl-4.150.10.5.tar.bz2 3888794 RMD160 2a0a24aefbd0f979ce1ef6e24585bd792a88d09b SHA1 2dc21875dae79113b31d1dd16179ab3431d0f0ae SHA256 a9f4e276a4d8d3a1cd0f2eb87080ae89b77f0a7140f06d4e9e2135fc44fdd533
|
||||
DIST wl_apsta-3.130.20.0.o 652866 RMD160 504dd0cdff52b480d9871269eb9827071d85a6b2 SHA1 b1f61d283bd7d05ade313da522cb0d0ad4033652 SHA256 7dba610b1d96dd14e901bcbce14cd6ecd1b1ac6f5c0035b0d6b6dc46a7c3ef90
|
||||
EBUILD broadcom-firmware-downloader-0.1-r1.ebuild 1055 RMD160 1b212e4429d9bfddee57f021f3d55a007bdecda4 SHA1 f6ede12efecbec0dd4bdd06438c07174b90b6b72 SHA256 71c685ad1fe256f1e8037cfbe0700d6fe69f2e8710ba163ede773b58ab107d29
|
||||
EBUILD broadcom-firmware-downloader-0.1-r2.ebuild 1164 RMD160 242f19ca1ba5dfb176734041bd74130a625f62ad SHA1 4edb414134289f29b3e38ea02256f62428e438ae SHA256 1ef76a1bce462112f47d6f06f4ca8bad7a57a9d68eef45931cbd4306f844882b
|
||||
EBUILD broadcom-firmware-downloader-0.1.ebuild 1147 RMD160 ffcd26fb244ebab8cc2037053ffe17fda1746eeb SHA1 508543ff285b15c2856db2cdef1bea1bd697339a SHA256 e8d5ae0d4b035b28791d66b341abf9d1429c38c943cf0d75b6c70c00c79e42fc
|
||||
|
|
|
|||
|
|
@ -0,0 +1,28 @@
|
|||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
DESCRIPTION="Closed Broadcom Commercial Firmware Downloader"
|
||||
HOMEPAGE=""
|
||||
SRC_URI="b43? ( http://mirror2.openwrt.org/sources/broadcom-wl-4.150.10.5.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-4.150.10.5/driver/wl_apsta_mimo.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."
|
||||
}
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
EBUILD broadcom-firmware-installer-0.1-r1.ebuild 849 RMD160 44f69c1290bfd00072a92c4a71509318019b0cf3 SHA1 e3643cdaa91d29bf0f4543f17dc8ddf58f2d30f4 SHA256 636244f190c11520d51a6bb31c84eea9ab01c31ed76d990b71a8cb8f8566f92a
|
||||
EBUILD broadcom-firmware-installer-0.1-r2.ebuild 1367 RMD160 6b5b48fd56a20b3b6e34acf7c2884c11af80a083 SHA1 de4345002d6e8280304cddff17a426431511d200 SHA256 33fabae7fb5f29c7d7e7b2af79bb30751c8798171bb13167a62787bec0009292
|
||||
EBUILD broadcom-firmware-installer-0.1.ebuild 843 RMD160 245f5f1b8ba3791cf8510d240f61f8423e00cb5f SHA1 55ffe4d2594990ea26db1c8ea4b8752c117bf385 SHA256 28579b6b2b133eee2fc58ca4f1efcd5f3be0b4d7f511b574f483b8a13daf122a
|
||||
|
|
|
|||
|
|
@ -0,0 +1,42 @@
|
|||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=2
|
||||
|
||||
DESCRIPTION="Closed Broadcom Commercial Firmware Installer"
|
||||
HOMEPAGE=""
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
IUSE="+b43 +b43legacy +reload"
|
||||
|
||||
DEPEND="net-wireless/broadcom-firmware-downloader[b43?,b43legacy?]
|
||||
net-wireless/b43-fwcutter"
|
||||
|
||||
RDEPEND=""
|
||||
|
||||
#add a check in src_prepare or something to check kernel versions. we don't care, but gentoo will and we like that.
|
||||
|
||||
src_install() {
|
||||
dodir /lib/firmware || die "failed to create /lib/firmware"
|
||||
FIRMWARE_INSTALL_DIR="${D}/lib/firmware"
|
||||
use b43 && b43-fwcutter -w "${FIRMWARE_INSTALL_DIR}" ${ROOT}/lib/firmware/broadcom-unmodified/wl_apsta_mimo.o || die "failed to cut xxx firmware"
|
||||
use b43legacy && b43-fwcutter -w "${FIRMWARE_INSTALL_DIR}" ${ROOT}/lib/firmware/broadcom-unmodified/wl_apsta-3.130.20.0.o || die "failed to cut xxx firmware"
|
||||
}
|
||||
|
||||
pkg_postinst(){
|
||||
if use reload; then
|
||||
isloaded() {
|
||||
lsmod | grep -q "$1[^_-]"
|
||||
}
|
||||
isloaded b43 && modprobe -r b43 && sleep 2 && modprobe b43
|
||||
isloaded b43legacy && modprobe -r b43legacy && sleep 2 && modprobe b43legacy
|
||||
|
||||
einfo "Your disgusting Broadcom now has its filthy closed source firmware. I hope you are happy."
|
||||
else
|
||||
einfo "You need to reload your b43* modules manually or set the reload use flag"
|
||||
fi
|
||||
}
|
||||
Loading…
Reference in a new issue