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