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

perdition: update build_depends (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 12 21:29:17 2009 +0100 (2009-02-12)
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 }