55 lines
2 KiB
Bash
55 lines
2 KiB
Bash
# Template file for 'broadcom-wl-dkms'
|
|
|
|
pkgname=broadcom-wl-dkms
|
|
version=6.30.223.248
|
|
revision=2
|
|
maintainer="ojab <ojab@ojab.ru>"
|
|
license="Proprietary Broadcom license"
|
|
homepage="http://broadcom.com"
|
|
|
|
only_for_archs="i686 x86_64"
|
|
repository="nonfree"
|
|
create_wrksrc=yes
|
|
|
|
short_desc="Broadcom proprietary wireless drivers for Linux - DKMS kernel module"
|
|
triggers="dkms"
|
|
dkms_modules="wl ${version}"
|
|
depends="dkms"
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
|
distfiles="http://www.broadcom.com/docs/linux_sta/hybrid-v35-nodebug-pcoem-${version//./_}.tar.gz"
|
|
checksum=b196543a429c22b2b8d75d0c1d9e6e7ff212c3d3e1f42cc6fd9e4858f01da1ad
|
|
else
|
|
distfiles="http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-${version//./_}.tar.gz"
|
|
checksum=3d994cc6c05198f4b6f07a213ac1e9e45a45159899e6c4a7feca5e6c395c3022
|
|
fi
|
|
|
|
do_install() {
|
|
# dkms pkg
|
|
vmkdir usr/src/wl-${version}/src
|
|
vcopy "src/*" usr/src/wl-${version}/src
|
|
vmkdir usr/src/wl-${version}/lib
|
|
vcopy "lib/*" usr/src/wl-${version}/lib
|
|
vcopy "Makefile" usr/src/wl-${version}
|
|
|
|
vinstall ${FILESDIR}/dkms.conf 644 usr/src/wl-${version}
|
|
sed -i -e "s/@VERSION@/${version}-${revision}/" ${PKGDESTDIR}/usr/src/wl-${version}/dkms.conf
|
|
|
|
# modules-load.d(5) file.
|
|
vmkdir usr/lib/modules-load.d
|
|
echo "wl" > ${DESTDIR}/usr/lib/modules-load.d/wl.conf
|
|
chmod 644 ${DESTDIR}/usr/lib/modules-load.d/wl.conf
|
|
|
|
# Blacklist OSS broadcom modules.
|
|
vmkdir usr/lib/modprobe.d
|
|
echo "blacklist b43" > ${DESTDIR}/usr/lib/modprobe.d/wl.conf
|
|
echo "blacklist b43legacy" >> ${DESTDIR}/usr/lib/modprobe.d/wl.conf
|
|
echo "blacklist ssb" >> ${DESTDIR}/usr/lib/modprobe.d/wl.conf
|
|
echo "blacklist bcm43xx" >> ${DESTDIR}/usr/lib/modprobe.d/wl.conf
|
|
echo "blacklist brcm80211" >> ${DESTDIR}/usr/lib/modprobe.d/wl.conf
|
|
echo "blacklist brcmfmac" >> ${DESTDIR}/usr/lib/modprobe.d/wl.conf
|
|
echo "blacklist brcmsmac" >> ${DESTDIR}/usr/lib/modprobe.d/wl.conf
|
|
echo "blacklist bcma" >> ${DESTDIR}/usr/lib/modprobe.d/wl.conf
|
|
|
|
chmod 644 ${DESTDIR}/usr/lib/modprobe.d/wl.conf
|
|
}
|