wok annotate atl2/receipt @ rev 1769

Add get-upx
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 26 11:51:02 2008 +0000 (2008-11-26)
parents be3cbbe707dc
children f306d126580e
rev   line source
erjo@1150 1 # SliTaz package receipt.
erjo@1150 2
erjo@1150 3 PACKAGE="atl2"
erjo@1150 4 VERSION="2.0.4"
erjo@1150 5 CATEGORY="system-tools"
erjo@1150 6 SHORT_DESC="Driver for the Atheros L2"
erjo@1150 7 MAINTAINER="erjo@slitaz.org"
erjo@1150 8 DEPENDS=""
erjo@1150 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
erjo@1150 10 WEB_SITE="http://atl2.sf.net/"
erjo@1150 11 WGET_URL="http://people.redhat.com/csnook/atl2/atl2-2.0.4.tar.bz2"
erjo@1150 12
erjo@1150 13 # Rules to configure and make the package.
erjo@1150 14 compile_rules()
erjo@1150 15 {
pascal@1457 16 KVER=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
erjo@1150 17 if [ ! -d $WOK/linux/linux-$KVER ]; then
erjo@1150 18 tazwok cook linux
erjo@1150 19 fi
erjo@1150 20 cd $src
pascal@1471 21 make KSRC=$WOK/linux/linux-$KVER
erjo@1150 22 }
erjo@1150 23
erjo@1150 24 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1150 25 genpkg_rules()
erjo@1150 26 {
pascal@1457 27 KVER=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
erjo@1150 28 EXTRAVERSION=_$KVER
erjo@1150 29
erjo@1150 30 mkdir -p $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net
erjo@1150 31
erjo@1150 32 # Find all modules (gztazmod.sh code).
erjo@1150 33 echo -n "Searching all modules to compress them... "
erjo@1150 34 find $src -name "*.ko" -exec lzma e '{}' '{}'.gz \;
erjo@1150 35
erjo@1150 36 # copy module
erjo@1150 37 cp -a $src/*.gz $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net
erjo@1150 38 }
erjo@1150 39
erjo@1150 40 # Post install/remove commands for Tazpkg.
erjo@1150 41 post_install()
erjo@1150 42 {
pascal@1455 43 depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz
erjo@1150 44 }
erjo@1150 45
erjo@1150 46 post_remove()
erjo@1150 47 {
erjo@1150 48 depmod -a
erjo@1150 49 }