wok-current annotate get-wifi-firmware/receipt @ rev 19853
Remove tazchroot (not used for yearsand unusable)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Mar 16 18:35:33 2017 +0100 (2017-03-16) |
parents | 42b8478866fb |
children |
rev | line source |
---|---|
pascal@1040 | 1 # SliTaz package receipt. |
pascal@1040 | 2 |
pascal@1040 | 3 PACKAGE="get-wifi-firmware" |
jozee@5105 | 4 VERSION="2.0" |
pascal@1040 | 5 CATEGORY="non-free" |
pascal@1040 | 6 SHORT_DESC="Get misc wifi 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" |
pascal@1040 | 10 |
pascal@1040 | 11 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1040 | 12 genpkg_rules() |
pascal@1040 | 13 { |
pascal@1040 | 14 mkdir -p $fs/usr/bin |
pascal@1040 | 15 cp stuff/$PACKAGE $fs/usr/bin |
pascal@13091 | 16 $fs/usr/bin/$PACKAGE --install |
pascal@1040 | 17 } |
jozee@5105 | 18 |
jozee@5105 | 19 post_install() |
jozee@5105 | 20 { |
pascal@13161 | 21 install_resolver=false |
pascal@18730 | 22 [ -s /etc/resolv.conf -a ! -s "$1/etc/resolv.conf" ] && install_resolver=true |
pascal@18730 | 23 $install_resolver && cp /etc/resolv.conf "$1/etc/resolv.conf" |
pascal@13091 | 24 # directly support some freely distributable firmware drivers |
pascal@18730 | 25 chroot "$1/" /usr/bin/get-wifi-firmware --get-free-firmware |
pascal@18730 | 26 $install_resolver && rm -f "$1/etc/resolv.conf" |
jozee@5105 | 27 } |