wok annotate get-wifi-firmware/receipt @ rev 17647
Up: binutils 2.25
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sat Feb 14 22:11:20 2015 +0000 (2015-02-14) |
parents | cca1658587e4 |
children | 9e01bc6321ea |
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@13161 | 22 [ -s /etc/resolv.conf -a ! -s $1/etc/resolv.conf ] && install_resolver=true |
pascal@13161 | 23 $install_resolver && cp /etc/resolv.conf $1/etc/resolv.conf |
pascal@13091 | 24 # directly support some freely distributable firmware drivers |
pascal@14006 | 25 chroot $1/ /usr/bin/get-wifi-firmware --get-free-firmware |
pascal@13161 | 26 $install_resolver && rm -f $1/etc/resolv.conf |
jozee@5105 | 27 } |