wok-6.x annotate kqemu/receipt @ rev 1944
Up tazndis 1.53.1
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Dec 28 15:14:17 2008 +0100 (2008-12-28) |
parents | 0d30d3d18dcb |
children | f8b7522f8eb2 |
rev | line source |
---|---|
pascal@438 | 1 # SliTaz package receipt. |
pascal@438 | 2 |
pascal@438 | 3 PACKAGE="kqemu" |
pascal@438 | 4 VERSION="1.3.0pre11" |
pascal@438 | 5 CATEGORY="misc" |
pascal@438 | 6 SHORT_DESC="QEMU Accelerator Module." |
pascal@438 | 7 MAINTAINER="pascal.bellard@ads-lu.com" |
pascal@438 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@919 | 9 WEB_SITE="http://bellard.org/qemu" |
pascal@438 | 10 WGET_URL="$WEB_SITE/$TARBALL" |
pascal@438 | 11 BUILD_DEPENDS="gcc3" |
pascal@1733 | 12 SUGGESTED="qemu" |
pascal@438 | 13 |
pascal@438 | 14 # Rules to configure and make the package. |
pascal@438 | 15 compile_rules() |
pascal@438 | 16 { |
pascal@438 | 17 local dir |
pascal@1452 | 18 if [ ! -d $WOK/linux/taz ]; then |
pascal@438 | 19 tazwok cook linux |
pascal@438 | 20 fi |
pascal@1452 | 21 dir=$(cd $WOK/linux/taz/linux*/fs ; ls -d lib/modules/*)/misc |
pascal@438 | 22 cd $src |
pascal@438 | 23 ./configure --prefix=/usr --kernel-path=$(ls -d ../../linux/linux-*) \ |
pascal@438 | 24 --host-cc=gcc-3 --cc=gcc-3 |
pascal@438 | 25 make |
pascal@438 | 26 mkdir -p _pkg/$dir _pkg/dev |
pascal@438 | 27 cp kqemu.ko _pkg/$dir |
pascal@438 | 28 gzip -9 _pkg/$dir/kqemu.ko |
pascal@438 | 29 mknod _pkg/dev/kqemu c 250 0 |
pascal@438 | 30 chmod 666 _pkg/dev/kqemu |
pascal@438 | 31 } |
pascal@438 | 32 |
pascal@438 | 33 |
pascal@438 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@438 | 35 genpkg_rules() |
pascal@438 | 36 { |
pascal@910 | 37 local kver |
pascal@1452 | 38 kver=$(grep "kernel version" $WOK/linux/linux-*/.config) |
pascal@910 | 39 EXTRAVERSION=_${kver##* } |
pascal@438 | 40 cp -a $_pkg/* $fs |
pascal@438 | 41 } |
pascal@438 | 42 |
pascal@438 | 43 # Post install/remove commands for Tazpkg. |
pascal@438 | 44 post_install() |
pascal@438 | 45 { |
pascal@1455 | 46 depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz |
pascal@438 | 47 } |
pascal@438 | 48 |
pascal@438 | 49 post_remove() |
pascal@438 | 50 { |
pascal@1286 | 51 depmod -a |
pascal@438 | 52 } |
pascal@438 | 53 |