wok-current diff madwifi/receipt @ rev 1150
Add: 915resolution, atl2, madwifi
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sat Jul 26 17:27:49 2008 +0200 (2008-07-26) |
parents | |
children | c343c644ab92 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/madwifi/receipt Sat Jul 26 17:27:49 2008 +0200 1.3 @@ -0,0 +1,58 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="madwifi" 1.7 +VERSION="r3366" 1.8 +CATEGORY="system-toosl" 1.9 +SHORT_DESC="Driver for Atheros-based WLAN cards" 1.10 +MAINTAINER="erjo@slitaz.org" 1.11 +DEPENDS="" 1.12 +SOURCE="madwifi-nr-r3366+ar5007" 1.13 +TARBALL="$SOURCE.tar.gz" 1.14 +WEB_SITE="http://madwifi.org" 1.15 +WGET_URL="http://snapshots.madwifi.org/special/$TARBALL" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + src="madwifi-ng-r3366+ar5007" 1.21 + cd "$src" 1.22 + make clean 1.23 + make && \ 1.24 + make DESTDIR=$PWD/_pkg install 1.25 +} 1.26 + 1.27 +genpkg_rules() 1.28 +{ 1.29 + _pkg="madwifi-ng-r3366+ar5007/_pkg" 1.30 + KVER=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g` 1.31 + EXTRAVERSION=_$KVER 1.32 + 1.33 + mkdir -p $fs/lib/modules/${KVER}-slitaz/net \ 1.34 + $fs/usr 1.35 + # Find all modules (gztazmod.sh code). 1.36 + echo -n "Searching all modules to compress them... " 1.37 + find $_pkg -name "*.ko" -exec lzma e '{}' '{}'.gz \; > /dev/null 2>&1 1.38 + status 1.39 + 1.40 + # copy module 1.41 + cp -a $_pkg/lib/modules/${KVER}-slitaz/net/*.gz $fs/lib/modules/${KVER}-slitaz/net 1.42 + cp -a $_pkg/usr/local/bin $fs/usr 1.43 +} 1.44 + 1.45 + 1.46 +post_install() 1.47 +{ 1.48 + echo "Processing post-install commands..." 1.49 + depmod -a -b /$1 1.50 +} 1.51 + 1.52 +post_remove() 1.53 +{ 1.54 + echo "Processing post-remove commands..." 1.55 + depmod -a 1.56 +} 1.57 + 1.58 +clean_wok() 1.59 +{ 1.60 + rm -rf "madwifi-ng-r3366+ar5007" 1.61 +}