wok view atl2/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 source
1 # SliTaz package receipt.
3 PACKAGE="atl2"
4 VERSION="2.0.4"
5 CATEGORY="system-tools"
6 SHORT_DESC="Driver for the Atheros L2"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS=""
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://atl2.sf.net/"
11 WGET_URL="http://people.redhat.com/csnook/atl2/atl2-2.0.4.tar.bz2"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 KVER=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g`
17 if [ ! -d $WOK/linux/linux-$KVER ]; then
18 tazwok cook linux
19 fi
20 cd $src
21 make
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
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/kernel/drivers/net
32 # Find all modules (gztazmod.sh code).
33 echo -n "Searching all modules to compress them... "
34 find $src -name "*.ko" -exec lzma e '{}' '{}'.gz \;
36 # copy module
37 cp -a $src/*.gz $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net
38 }
40 # Post install/remove commands for Tazpkg.
41 post_install()
42 {
43 depmod -a -b /$1
44 }
46 post_remove()
47 {
48 depmod -a
49 }