milis/talimatname/genel/b/broadcom-wl/talimat

37 lines
1.5 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Broadcom 802.11abgn hybrid Linux networking device driver
2016-02-24 01:27:23 +01:00
# URL: http://www.broadcom.com/support/802.11/linux_sta.php
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler:
2018-07-20 09:44:31 +02:00
# Grup: sürücü
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=broadcom-wl
surum=6.30.223.248
devir=6
kaynak=("http://www.broadcom.com/docs/linux_sta/hybrid-v35${_arch}-nodebug-pcoem-${version//./_}.tar.gz"
2017-12-22 23:19:06 +01:00
broadcom-wl.modprobe.dbroadcom-wl.license.patchbroadcom-wl.linux-recent.patchbroadcom-wl.gcc.patch)
2016-02-24 01:27:23 +01:00
2017-12-22 23:19:06 +01:00
[[ "`uname -m`" == "x86_64" ]] && _arch=_64 || _arch=
derle() {
2016-02-24 01:27:23 +01:00
KERNELRELEASE=`uname -r`
patch -p1 -i broadcom-wl.linux-recent.patch
patch -p1 -i broadcom-wl.license.patch
patch -p1 -i broadcom-wl.gcc.patch
sed -e "/BRCM_WLAN_IFNAME/s:eth:wlan:" \
-i src/wl/sys/wl_linux.c
make
install -Dm644 wl.ko $PKG/lib/modules/$KERNELRELEASE/kernel/drivers/net/wireless/wl.ko
gzip $PKG/lib/modules/$KERNELRELEASE/kernel/drivers/net/wireless/wl.ko
2017-10-28 14:10:23 +02:00
install -Dm644 lib/LICENSE.txt $PKG/usr/share/licenses/$isim/LICENSE
2016-02-24 01:27:23 +01:00
install -Dm644 broadcom-wl.modprobe.d $PKG/etc/modprobe.d/broadcom-wl.conf
# post-install autogen
2017-10-28 14:10:23 +02:00
cat > $PKGMK_ROOT/$isim.post-install << "EOF"
2016-02-24 01:27:23 +01:00
. lib/lsb/init-functions
log_success_msg "update modules population"
EOF
2017-10-28 14:10:23 +02:00
echo "depmod $KERNELRELEASE" >> $PKGMK_ROOT/$isim.post-install
cat >> $PKGMK_ROOT/$isim.post-install << "EOF"
2016-02-24 01:27:23 +01:00
log_warning_msg "${WARNING}Check the file /etc/modprobe.d/broadcom-wl.conf ${NORMAL}"
log_warning_msg "${WARNING}Reboot if you want the modules being automatically loaded${NORMAL}"
EOF
}