wok-next view get-wifi-firmware/receipt @ rev 21049
Tiny fixes.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Nov 28 03:53:55 2018 +0200 (2018-11-28) |
parents | d5aab818505e |
children | 0cbe4b1f2230 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="get-wifi-firmware"
4 VERSION="2.0"
5 CATEGORY="non-free"
6 SHORT_DESC="Get misc Wi-Fi 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 compile_rules() {
13 install -Dm755 $stuff/$PACKAGE $install/usr/bin/$PACKAGE
15 $install/usr/bin/$PACKAGE --install
16 }
18 post_install() {
19 if [ -s /etc/resolv.conf -a ! -s "$1/etc/resolv.conf" ]; then
20 install_resolver=true
21 else
22 install_resolver=false
23 fi
25 $install_resolver && cp /etc/resolv.conf "$1/etc/resolv.conf"
27 # directly support some freely distributable firmware drivers
28 chroot "$1/" /usr/bin/get-wifi-firmware --get-free-firmware
30 $install_resolver && rm -f "$1/etc/resolv.conf"
31 }