wok-6.x annotate broadcom-wl64/receipt @ rev 21103

jabberd2: fix deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 18 19:35:58 2019 +0100 (2019-03-18)
parents
children 429cd2dffc4f
rev   line source
pascal@20393 1 # SliTaz package receipt.
pascal@20393 2
pascal@20393 3 PACKAGE="broadcom-wl64"
pascal@20393 4 VERSION="5_100_82_112"
pascal@20393 5 CATEGORY="network"
pascal@20393 6 MAINTAINER="jozee@slitaz.org"
pascal@20393 7 LICENSE="other"
pascal@20393 8 SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers"
pascal@20393 9 WEB_SITE="http://www.broadcom.com/support/802.11/linux_sta.php"
pascal@20393 10 TARBALL="hybrid-portsrc_x86_64-v${VERSION}.tar.gz"
pascal@20393 11 WGET_URL="http://www.broadcom.com/docs/linux_sta/$TARBALL"
pascal@20393 12 TAGS="wireless wifi driver"
pascal@20393 13 PROVIDE="broadcom-wl:linux64"
pascal@20393 14
pascal@20393 15 DEPENDS="linux"
pascal@20393 16 BUILD_DEPENDS="linux64-module-headers xz uclibc-cross-compiler-x86_64"
pascal@20393 17
pascal@20393 18 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
pascal@20393 19
pascal@20393 20 # Rules to configure and make the package.
pascal@20393 21 compile_rules()
pascal@20393 22 {
pascal@20393 23 sed -i 's|ndo_set_multicast_list|ndo_set_rx_mode|' src/wl/sys/wl_linux.c
pascal@20393 24 sed -i 's|linux/autoconf.h|generated/autoconf.h|' src/include/linuxver.h
pascal@20393 25 for i in semaphore 3.4.0 3.6.0 3.8.0 3.9.0 3.14.0 ; do
pascal@20393 26 echo "patch $i ..."
pascal@20393 27 patch -Np2 -i $stuff/$i.patch
pascal@20393 28 done
pascal@20393 29 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
pascal@20393 30 xz wl.ko
pascal@20393 31 }
pascal@20393 32
pascal@20393 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20393 34 genpkg_rules()
pascal@20393 35 {
pascal@20393 36 EXTRAVERSION=_${kvers}
pascal@20393 37 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/drivers/net/wireless
pascal@20393 38 # Compress and install module
pascal@20393 39 install -o root -m 0644 $src/wl.ko.xz \
pascal@20393 40 $fs/lib/modules/${kvers}-slitaz64/kernel/drivers/net/wireless/wl.ko.xz
pascal@20393 41 }
pascal@20393 42
pascal@20393 43 # Post install/remove commands for Tazpkg.
pascal@20393 44 post_install()
pascal@20393 45 {
pascal@20393 46 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
pascal@20393 47 }
pascal@20393 48
pascal@20393 49 post_remove()
pascal@20393 50 {
pascal@20393 51 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
pascal@20393 52 }