wok view madwifi/receipt @ rev 1187
Add bristuff
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 04 13:34:35 2008 +0000 (2008-08-04) |
parents | |
children | c343c644ab92 |
line source
1 # SliTaz package receipt.
3 PACKAGE="madwifi"
4 VERSION="r3366"
5 CATEGORY="system-toosl"
6 SHORT_DESC="Driver for Atheros-based WLAN cards"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS=""
9 SOURCE="madwifi-nr-r3366+ar5007"
10 TARBALL="$SOURCE.tar.gz"
11 WEB_SITE="http://madwifi.org"
12 WGET_URL="http://snapshots.madwifi.org/special/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 src="madwifi-ng-r3366+ar5007"
18 cd "$src"
19 make clean
20 make && \
21 make DESTDIR=$PWD/_pkg install
22 }
24 genpkg_rules()
25 {
26 _pkg="madwifi-ng-r3366+ar5007/_pkg"
27 KVER=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g`
28 EXTRAVERSION=_$KVER
30 mkdir -p $fs/lib/modules/${KVER}-slitaz/net \
31 $fs/usr
32 # Find all modules (gztazmod.sh code).
33 echo -n "Searching all modules to compress them... "
34 find $_pkg -name "*.ko" -exec lzma e '{}' '{}'.gz \; > /dev/null 2>&1
35 status
37 # copy module
38 cp -a $_pkg/lib/modules/${KVER}-slitaz/net/*.gz $fs/lib/modules/${KVER}-slitaz/net
39 cp -a $_pkg/usr/local/bin $fs/usr
40 }
43 post_install()
44 {
45 echo "Processing post-install commands..."
46 depmod -a -b /$1
47 }
49 post_remove()
50 {
51 echo "Processing post-remove commands..."
52 depmod -a
53 }
55 clean_wok()
56 {
57 rm -rf "madwifi-ng-r3366+ar5007"
58 }