wok view get-wifi-firmware/receipt @ rev 23973

Up openconnect (8.10), openexr (2.5.3), openldap (2.4.55), openssh (8.4p1), openvswitch (2.14.0), phpmyadmin (5.0.4), rust (1.47.0), shellinabox (2.21)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 28 12:04:50 2020 +0000 (2020-10-28)
parents 42b8478866fb
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 LICENSE="BSD"
9 WEB_SITE="http://hg.slitaz.org/wok/file/tip/$PACKAGE/stuff/$PACKAGE"
11 # Rules to gen a SliTaz package suitable for Tazpkg.
12 genpkg_rules()
13 {
14 mkdir -p $fs/usr/bin
15 cp stuff/$PACKAGE $fs/usr/bin
16 $fs/usr/bin/$PACKAGE --install
17 }
19 post_install()
20 {
21 install_resolver=false
22 [ -s /etc/resolv.conf -a ! -s "$1/etc/resolv.conf" ] && install_resolver=true
23 $install_resolver && cp /etc/resolv.conf "$1/etc/resolv.conf"
24 # directly support some freely distributable firmware drivers
25 chroot "$1/" /usr/bin/get-wifi-firmware --get-free-firmware
26 $install_resolver && rm -f "$1/etc/resolv.conf"
27 }