wok annotate madwifi/receipt @ rev 1690

Add jfsutils
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 11 09:02:11 2008 +0000 (2008-11-11)
parents 34c8cf508889
children f306d126580e
rev   line source
erjo@1150 1 # SliTaz package receipt.
erjo@1150 2
erjo@1150 3 PACKAGE="madwifi"
pascal@1502 4 VERSION="r3861"
pascal@1423 5 CATEGORY="system-tools"
erjo@1150 6 SHORT_DESC="Driver for Atheros-based WLAN cards"
erjo@1150 7 MAINTAINER="erjo@slitaz.org"
erjo@1150 8 DEPENDS=""
pascal@1502 9 SOURCE="madwifi-hal-0.10.5.6-r3861-20080903"
erjo@1150 10 TARBALL="$SOURCE.tar.gz"
erjo@1150 11 WEB_SITE="http://madwifi.org"
pascal@1502 12 WGET_URL="http://snapshots.madwifi.org/madwifi-hal-0.10.5.6/$TARBALL"
erjo@1150 13
erjo@1150 14 # Rules to configure and make the package.
erjo@1150 15 compile_rules()
erjo@1150 16 {
pascal@1502 17 if [ ! -d $WOK/linux/taz ]; then
pascal@1502 18 tazwok cook linux
pascal@1502 19 fi
pascal@1502 20 cd "$SOURCE"
pascal@1502 21 export KERNELPATH=$(ls -d $WOK/linux/linux-*)
pascal@1502 22 echo "KERNELPATH=$KERNELPATH"
pascal@1502 23 make KERNELPATH=$KERNELPATH clean
pascal@1502 24 make KERNELPATH=$KERNELPATH &&
erjo@1150 25 make DESTDIR=$PWD/_pkg install
erjo@1150 26 }
erjo@1150 27
erjo@1150 28 genpkg_rules()
erjo@1150 29 {
pascal@1502 30 _pkg="$SOURCE/_pkg"
pascal@1479 31 KVER=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
erjo@1150 32 EXTRAVERSION=_$KVER
erjo@1150 33
erjo@1150 34 mkdir -p $fs/lib/modules/${KVER}-slitaz/net \
erjo@1150 35 $fs/usr
erjo@1150 36 # Find all modules (gztazmod.sh code).
erjo@1150 37 echo -n "Searching all modules to compress them... "
erjo@1150 38 find $_pkg -name "*.ko" -exec lzma e '{}' '{}'.gz \; > /dev/null 2>&1
erjo@1150 39 status
erjo@1150 40
erjo@1150 41 # copy module
erjo@1150 42 cp -a $_pkg/lib/modules/${KVER}-slitaz/net/*.gz $fs/lib/modules/${KVER}-slitaz/net
erjo@1150 43 cp -a $_pkg/usr/local/bin $fs/usr
erjo@1150 44 }
erjo@1150 45
erjo@1150 46
erjo@1150 47 post_install()
erjo@1150 48 {
erjo@1150 49 echo "Processing post-install commands..."
pascal@1455 50 depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz
erjo@1150 51 }
erjo@1150 52
erjo@1150 53 post_remove()
erjo@1150 54 {
erjo@1150 55 echo "Processing post-remove commands..."
erjo@1150 56 depmod -a
erjo@1150 57 }
erjo@1150 58
erjo@1150 59 clean_wok()
erjo@1150 60 {
erjo@1150 61 rm -rf "madwifi-ng-r3366+ar5007"
erjo@1150 62 }