wok-6.x annotate linux-wireless/receipt @ rev 24141

linux: add r8188eu.ko
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 14 20:30:13 2021 +0000 (2021-11-14)
parents 86790a278e70
children 28ad9727a1c6
rev   line source
pascal@521 1 # SliTaz package receipt.
pascal@521 2
pascal@521 3 PACKAGE="linux-wireless"
pascal@20261 4 VERSION="3.16.55"
pascal@521 5 CATEGORY="base-system"
pascal@521 6 SHORT_DESC="The Linux kernel wireless modules."
pankso@3864 7 MAINTAINER="devel@slitaz.org"
pascal@14657 8 LICENSE="GPL2"
pascal@521 9 WANTED="linux"
pascal@20421 10 WEB_SITE="https://www.kernel.org/"
taziden@1904 11 DEPENDS="linux-crypto wireless_tools"
erjo@1903 12
pascal@521 13 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@521 14 genpkg_rules()
pascal@521 15 {
pascal@521 16 local path
pankso@15855 17 path=lib/modules/$VERSION-slitaz/kernel
pascal@521 18 mkdir -p $fs/$path
erjo@1851 19
pankso@15855 20 export src install
erjo@1851 21
slaxemulator@9700 22 $wanted_stuff/list_modules.sh drivers/net/wireless drivers/staging/wlan-ng \
pascal@20261 23 drivers/misc/echo drivers/leds net/wireless net/mac80211 \
pascal@24141 24 drivers/staging/rtl8188eu/r8188eu.ko.xz \
pascal@20261 25 drivers/staging/rtl8712/r8712u.ko.xz drivers/staging/rtl8192u/r8192u_usb.ko.xz \
pascal@20261 26 drivers/staging/crystalhd/crystalhd.ko.xz | while read module; do
pascal@521 27 dir=$path/$(dirname $module)
pascal@521 28 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@15603 29 cp -a $install/$path/$module $fs/$dir
pascal@886 30 done
slaxemulator@7239 31
pankso@12285 32 for i in $(cat $wanted_stuff/modules.list); do
pankso@12285 33 if [ -f $fs/$path/$i ]; then
pankso@12285 34 rm -f $fs/$path/$i
slaxemulator@7239 35 fi
slaxemulator@7239 36 done
pascal@521 37 }
pascal@521 38
pascal@521 39 # Post install/remove commands for Tazpkg.
pascal@521 40 post_install()
pascal@521 41 {
pankso@15855 42 chroot "$root/" depmod -a $VERSION-slitaz
pascal@521 43 }
pascal@521 44
pascal@521 45 post_remove()
pascal@521 46 {
pankso@15855 47 chroot "$root/" depmod -a $VERSION-slitaz
pascal@521 48 }
pascal@521 49