wok-stable view get-wifi-firmware/receipt @ rev 12459

lives: fix symlink (thanks I-Jurij)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 28 08:19:20 2017 +0200 (2017-04-28)
parents 2f85faa0e9ba
children
line source
1 # SliTaz package receipt.
3 PACKAGE="get-wifi-firmware"
4 VERSION="2.0"
5 CATEGORY="non-free"
6 SHORT_DESC="Get misc wifi firmwares."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://hg.slitaz.org/wok/file/tip/$PACKAGE/stuff/$PACKAGE"
10 # Rules to gen a SliTaz package suitable for Tazpkg.
11 genpkg_rules()
12 {
13 mkdir -p $fs/usr/bin
14 cp stuff/$PACKAGE $fs/usr/bin
15 for i in b43 b43legacy ipw2100 ipw2200 rt61 rt73 rt2860 zd1211 \
16 rt61pci rt73usb rt2870usb zd1211rw \
17 iwlwifi-3945 iwlwifi-4965 iwlwifi-5000 iwlwifi-5150 iwlwifi-1000 iwlwifi-6000; do
18 ln -s $PACKAGE $fs/usr/bin/get-$i-firmware
19 done
20 }
22 post_install()
23 {
24 install_resolver=false
25 [ -s /etc/resolv.conf -a ! -s $1/etc/resolv.conf ] && install_resolver=true
26 $install_resolver && cp /etc/resolv.conf $1/etc/resolv.conf
27 # directly support some freely distributable firmware drivers
28 # intel
29 chroot $1/ get-iwlwifi-3945-firmware --firmware
30 chroot $1/ get-iwlwifi-4965-firmware --firmware
31 chroot $1/ get-iwlwifi-5000-firmware --firmware
32 # ralink
33 chroot $1/ get-rt61-firmware --firmware
34 chroot $1/ get-rt73-firmware --firmware
35 chroot $1/ get-rt2870usb-firmware --firmware
36 $install_resolver && rm -f $1/etc/resolv.conf
37 }