wok-4.x view atl2/receipt @ rev 2959

Up: dmidecode (2.10)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Fri May 08 22:26:27 2009 +0200 (2009-05-08)
parents 5f44a3f5127a
children
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="linux"
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 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
44 }
46 post_remove()
47 {
48 depmod -a
49 }