wok annotate get-wifi-firmware/receipt @ rev 15164

Up xorg-xf86-input-void (1.4.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 15 18:48:58 2013 +0000 (2013-08-15)
parents 3ebbba73bb3f
children 42b8478866fb
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@2086 8 WEB_SITE="http://hg.slitaz.org/wok/file/tip/$PACKAGE/stuff/$PACKAGE"
pascal@1040 9
pascal@1040 10 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1040 11 genpkg_rules()
pascal@1040 12 {
pascal@1040 13 mkdir -p $fs/usr/bin
pascal@1040 14 cp stuff/$PACKAGE $fs/usr/bin
pascal@13091 15 $fs/usr/bin/$PACKAGE --install
pascal@1040 16 }
jozee@5105 17
jozee@5105 18 post_install()
jozee@5105 19 {
pascal@13161 20 install_resolver=false
pascal@13161 21 [ -s /etc/resolv.conf -a ! -s $1/etc/resolv.conf ] && install_resolver=true
pascal@13161 22 $install_resolver && cp /etc/resolv.conf $1/etc/resolv.conf
pascal@13091 23 # directly support some freely distributable firmware drivers
pascal@14006 24 chroot $1/ /usr/bin/get-wifi-firmware --get-free-firmware
pascal@13161 25 $install_resolver && rm -f $1/etc/resolv.conf
jozee@5105 26 }