wok-current rev 20239
Add broadcom-wl64
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 09 16:18:35 2018 +0100 (2018-03-09) |
parents | 72a5a0693342 |
children | 6238b9c00443 |
files | broadcom-wl64/receipt broadcom-wl64/stuff/semaphore.patch dahdi-linux64/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/broadcom-wl64/receipt Fri Mar 09 16:18:35 2018 +0100 1.3 @@ -0,0 +1,50 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="broadcom-wl64" 1.7 +VERSION="5_100_82_112" 1.8 +CATEGORY="network" 1.9 +MAINTAINER="jozee@slitaz.org" 1.10 +LICENSE="other" 1.11 +SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers" 1.12 +WEB_SITE="http://www.broadcom.com/support/802.11/linux_sta.php" 1.13 +TARBALL="hybrid-portsrc_x86_32-v${VERSION}.tar.gz" 1.14 +WGET_URL="http://www.broadcom.com/docs/linux_sta/$TARBALL" 1.15 +TAGS="wireless wifi driver" 1.16 +PROVIDE="broadcom-wl:linux64" 1.17 + 1.18 +DEPENDS="linux64" 1.19 +BUILD_DEPENDS="linux-module-headers xz uclibc-cross-compiler-x86_64" 1.20 + 1.21 +# Aufs enable chroot 1.22 +AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8(" 1.23 + 1.24 +# Rules to configure and make the package. 1.25 +compile_rules() 1.26 +{ 1.27 + sed -i 's|ndo_set_multicast_list|ndo_set_rx_mode|' src/wl/sys/wl_linux.c 1.28 + sed -i 's|linux/autoconf.h|generated/autoconf.h|' src/include/linuxver.h 1.29 + patch -Np1 -i $stuff/semaphore.patch 1.30 + KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd` 1.31 + xz wl.ko 1.32 +} 1.33 + 1.34 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.35 +genpkg_rules() 1.36 +{ 1.37 + EXTRAVERSION=_${kvers} 1.38 + mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless 1.39 + # Compress and install module 1.40 + install -o root -m 0644 $src/wl.ko.xz \ 1.41 + $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless/wl.ko.xz 1.42 +} 1.43 + 1.44 +# Post install/remove commands for Tazpkg. 1.45 +post_install() 1.46 +{ 1.47 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.48 +} 1.49 + 1.50 +post_remove() 1.51 +{ 1.52 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.53 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/broadcom-wl64/stuff/semaphore.patch Fri Mar 09 16:18:35 2018 +0100 2.3 @@ -0,0 +1,11 @@ 2.4 +diff -aur bla/src/wl/sys/wl_iw.h bla.new/src/wl/sys/wl_iw.h 2.5 +--- bla/src/wl/sys/wl_iw.h 2010-02-06 02:59:15.000000000 +0100 2.6 ++++ bla.new/src/wl/sys/wl_iw.h 2010-08-07 23:17:35.368641722 +0200 2.7 +@@ -15,6 +15,7 @@ 2.8 + #ifndef _wl_iw_h_ 2.9 + #define _wl_iw_h_ 2.10 + 2.11 ++#include <linux/semaphore.h> 2.12 + #include <linux/wireless.h> 2.13 + 2.14 + #include <typedefs.h>
3.1 --- a/dahdi-linux64/receipt Fri Mar 09 16:02:56 2018 +0100 3.2 +++ b/dahdi-linux64/receipt Fri Mar 09 16:18:35 2018 +0100 3.3 @@ -22,7 +22,10 @@ 3.4 PROVIDE="dahdi-linux:linux64" 3.5 3.6 DEPENDS="linux64 udev" 3.7 -BUILD_DEPENDS="linux64-module-headers xz perl" 3.8 +BUILD_DEPENDS="linux64-module-headers xz perl uclibc-cross-compiler-x86_64" 3.9 + 3.10 +# Aufs enable chroot 3.11 +AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8(" 3.12 3.13 # Rules to gen a SliTaz package suitable for Tazpkg. 3.14 compile_rules()