wok-next view get-wifi-firmware/receipt @ rev 13820
thunderbird: limit long (was create > 100G !)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 06 21:18:32 2013 +0100 (2013-01-06) |
parents | 10dc8abeebb2 |
children | cca1658587e4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="get-wifi-firmware"
4 VERSION="2.0"
5 CATEGORY="non-free"
6 SHORT_DESC="Get misc wifi firmwares."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://hg.slitaz.org/wok/file/tip/$PACKAGE/stuff/$PACKAGE"
10 # Rules to gen a SliTaz package suitable for Tazpkg.
11 genpkg_rules()
12 {
13 mkdir -p $fs/usr/bin
14 cp stuff/$PACKAGE $fs/usr/bin
15 $fs/usr/bin/$PACKAGE --install
16 }
18 post_install()
19 {
20 install_resolver=false
21 [ -s /etc/resolv.conf -a ! -s $1/etc/resolv.conf ] && install_resolver=true
22 $install_resolver && cp /etc/resolv.conf $1/etc/resolv.conf
23 # directly support some freely distributable firmware drivers
24 chroot $1 /usr/bin/get-wifi-firmware --get-free-firmware
25 $install_resolver && rm -f $1/etc/resolv.conf
26 }