# HG changeset patch # User Pascal Bellard # Date 1520608715 -3600 # Node ID 92ff04db76e7a98f3966f67becb27052b8e69a32 # Parent 72a5a06933423c9c08728f6b2ca7c3b7e6882d12 Add broadcom-wl64 diff -r 72a5a0693342 -r 92ff04db76e7 broadcom-wl64/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/broadcom-wl64/receipt Fri Mar 09 16:18:35 2018 +0100 @@ -0,0 +1,50 @@ +# SliTaz package receipt. + +PACKAGE="broadcom-wl64" +VERSION="5_100_82_112" +CATEGORY="network" +MAINTAINER="jozee@slitaz.org" +LICENSE="other" +SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers" +WEB_SITE="http://www.broadcom.com/support/802.11/linux_sta.php" +TARBALL="hybrid-portsrc_x86_32-v${VERSION}.tar.gz" +WGET_URL="http://www.broadcom.com/docs/linux_sta/$TARBALL" +TAGS="wireless wifi driver" +PROVIDE="broadcom-wl:linux64" + +DEPENDS="linux64" +BUILD_DEPENDS="linux-module-headers xz uclibc-cross-compiler-x86_64" + +# Aufs enable chroot +AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8(" + +# Rules to configure and make the package. +compile_rules() +{ + sed -i 's|ndo_set_multicast_list|ndo_set_rx_mode|' src/wl/sys/wl_linux.c + sed -i 's|linux/autoconf.h|generated/autoconf.h|' src/include/linuxver.h + patch -Np1 -i $stuff/semaphore.patch + KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd` + xz wl.ko +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + EXTRAVERSION=_${kvers} + mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless + # Compress and install module + install -o root -m 0644 $src/wl.ko.xz \ + $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless/wl.ko.xz +} + +# Post install/remove commands for Tazpkg. +post_install() +{ + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz +} + +post_remove() +{ + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz +} diff -r 72a5a0693342 -r 92ff04db76e7 broadcom-wl64/stuff/semaphore.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/broadcom-wl64/stuff/semaphore.patch Fri Mar 09 16:18:35 2018 +0100 @@ -0,0 +1,11 @@ +diff -aur bla/src/wl/sys/wl_iw.h bla.new/src/wl/sys/wl_iw.h +--- bla/src/wl/sys/wl_iw.h 2010-02-06 02:59:15.000000000 +0100 ++++ bla.new/src/wl/sys/wl_iw.h 2010-08-07 23:17:35.368641722 +0200 +@@ -15,6 +15,7 @@ + #ifndef _wl_iw_h_ + #define _wl_iw_h_ + ++#include + #include + + #include diff -r 72a5a0693342 -r 92ff04db76e7 dahdi-linux64/receipt --- a/dahdi-linux64/receipt Fri Mar 09 16:02:56 2018 +0100 +++ b/dahdi-linux64/receipt Fri Mar 09 16:18:35 2018 +0100 @@ -22,7 +22,10 @@ PROVIDE="dahdi-linux:linux64" DEPENDS="linux64 udev" -BUILD_DEPENDS="linux64-module-headers xz perl" +BUILD_DEPENDS="linux64-module-headers xz perl uclibc-cross-compiler-x86_64" + +# Aufs enable chroot +AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8(" # Rules to gen a SliTaz package suitable for Tazpkg. compile_rules()