wok-next view get-wifi-firmware/receipt @ rev 20978

Small improvements
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Sep 27 01:34:11 2018 +0300 (2018-09-27)
parents 9e01bc6321ea
children d5aab818505e
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"
10 REPOLOGY="-"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 mkdir -p $fs/usr/bin
16 cp stuff/$PACKAGE $fs/usr/bin
17 $fs/usr/bin/$PACKAGE --install
18 }
20 post_install()
21 {
22 install_resolver=false
23 [ -s /etc/resolv.conf -a ! -s "$1/etc/resolv.conf" ] && install_resolver=true
24 $install_resolver && cp /etc/resolv.conf "$1/etc/resolv.conf"
25 # directly support some freely distributable firmware drivers
26 chroot "$1/" /usr/bin/get-wifi-firmware --get-free-firmware
27 $install_resolver && rm -f "$1/etc/resolv.conf"
28 }