wok-6.x view broadcom-wl/receipt @ rev 15610

linux64*: fix install/_pkg
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 07 06:59:03 2013 +0000 (2013-12-07)
parents a821394747f8
children 445cae9c0563
line source
1 # SliTaz package receipt.
3 PACKAGE="broadcom-wl"
4 VERSION="5_100_82_112"
5 CATEGORY="network"
6 MAINTAINER="jozee@slitaz.org"
7 LICENSE="other"
8 SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers"
9 WEB_SITE="http://www.broadcom.com/support/802.11/linux_sta.php"
10 TARBALL="hybrid-portsrc_x86_32-v${VERSION}.tar.gz"
11 WGET_URL="http://www.broadcom.com/docs/linux_sta/$TARBALL"
12 TAGS="wireless wifi driver"
14 DEPENDS="linux"
15 BUILD_DEPENDS="linux-module-headers xz"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i 's|ndo_set_multicast_list|ndo_set_rx_mode|' src/wl/sys/wl_linux.c
21 sed -i 's|linux/autoconf.h|generated/autoconf.h|' src/include/linuxver.h
22 patch -Np1 -i $stuff/semaphore.patch
23 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
30 EXTRAVERSION=_$KERNEL_VERSION
32 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless
34 # Compress and install module
35 cp $src/wl.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/
36 xz $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko
37 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.xz
38 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.xz
39 }
41 # Post install/remove commands for Tazpkg.
42 post_install()
43 {
44 echo "Processing post-install commands..."
45 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
46 }
48 post_remove()
49 {
50 echo "Processing post-remove commands..."
51 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
52 }