wok-next annotate 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 |
rev | line source |
---|---|
al@21020 | 1 # SliTaz package receipt v2. |
pascal@1040 | 2 |
pascal@1040 | 3 PACKAGE="get-wifi-firmware" |
jozee@5105 | 4 VERSION="2.0" |
pascal@1040 | 5 CATEGORY="non-free" |
al@21020 | 6 SHORT_DESC="Get misc Wi-Fi firmwares" |
pascal@1040 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15199 | 8 LICENSE="BSD" |
pascal@2086 | 9 WEB_SITE="http://hg.slitaz.org/wok/file/tip/$PACKAGE/stuff/$PACKAGE" |
al@20882 | 10 REPOLOGY="-" |
pascal@1040 | 11 |
al@21020 | 12 compile_rules() { |
al@21049 | 13 install -Dm755 $stuff/$PACKAGE $install/usr/bin/$PACKAGE |
al@21020 | 14 |
al@21020 | 15 $install/usr/bin/$PACKAGE --install |
pascal@1040 | 16 } |
jozee@5105 | 17 |
al@21020 | 18 post_install() { |
al@21020 | 19 if [ -s /etc/resolv.conf -a ! -s "$1/etc/resolv.conf" ]; then |
al@21020 | 20 install_resolver=true |
al@21020 | 21 else |
al@21020 | 22 install_resolver=false |
al@21020 | 23 fi |
al@21020 | 24 |
pascal@18730 | 25 $install_resolver && cp /etc/resolv.conf "$1/etc/resolv.conf" |
al@21020 | 26 |
al@21020 | 27 # directly support some freely distributable firmware drivers |
pascal@18730 | 28 chroot "$1/" /usr/bin/get-wifi-firmware --get-free-firmware |
al@21020 | 29 |
pascal@18730 | 30 $install_resolver && rm -f "$1/etc/resolv.conf" |
jozee@5105 | 31 } |