wok-next view atl2/receipt @ rev 2682
Up: mpg123 (1.7.2) [security update]
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 22 13:49:02 2009 +0200 (2009-04-22) |
parents | be3cbbe707dc |
children | f306d126580e |
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 KSRC=$WOK/linux/linux-$KVER
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/" ${EXTRAVERSION#_}-slitaz
44 }
46 post_remove()
47 {
48 depmod -a
49 }