# SliTaz package receipt. PACKAGE="linux64-wireless" VERSION="4.19.294" CATEGORY="base-system" SHORT_DESC="The Linux kernel wireless modules." MAINTAINER="devel@slitaz.org" LICENSE="GPL2" WANTED="linux" PROVIDE="linux-wireless:linux64" WEB_SITE="https://www.kernel.org/" DEPENDS="linux-crypto wireless_tools" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { local path src=$WOK/linux64/source/tmp install=$install/linux64 path=lib/modules/$VERSION-slitaz64/kernel mkdir -p $fs/$path export src export install $wanted_stuff/list_modules.sh drivers/net/wireless drivers/staging/wlan-ng \ drivers/misc/echo drivers/leds net/wireless net/mac80211 \ drivers/staging/rtl8188eu/r8188eu.ko.xz drivers/staging/rtl8192u/r8192u_usb.ko.xz \ drivers/staging/rtl8712/r8712u.ko.xz | while read module; do dir=$path/$(dirname $module) [ -d $fs/$dir ] || mkdir -p $fs/$dir cp -a $install/$path/$module $fs/$dir done for i in $(cat $wanted_stuff/modules.list); do if [ -f $fs/$path/$i ]; then rm -f $fs/$path/$i fi done # Workaround for cfg80211 cp -a $install/$path/net/wireless/cfg80211.ko.xz $fs/$path/net/wireless/ } # Post install/remove commands for Tazpkg. post_install() { chroot "$root/" depmod -a $VERSION-slitaz64 } post_remove() { chroot "$root/" depmod -a $VERSION-slitaz64 }