wok view atl2/receipt @ rev 1286

Force module version in depmod
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 20 15:28:36 2008 +0000 (2008-08-20)
parents 0e7de63eb2cb
children 0d30d3d18dcb
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/" $EXTRAVERSION-slitaz
44 }
46 post_remove()
47 {
48 depmod -a
49 }