wok-next annotate kqemu/receipt @ rev 438
Add: qemu kqemu
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 15 09:43:51 2008 +0000 (2008-03-15) |
parents | |
children | cd99ec381938 |
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@438 | 9 WEB_SITE="http://fabrice.bellard.free.fr/qemu" |
pascal@438 | 10 WGET_URL="$WEB_SITE/$TARBALL" |
pascal@438 | 11 BUILD_DEPENDS="gcc3" |
pascal@438 | 12 |
pascal@438 | 13 # Rules to configure and make the package. |
pascal@438 | 14 compile_rules() |
pascal@438 | 15 { |
pascal@438 | 16 local dir |
pascal@438 | 17 if [ ! -d ../linux/taz ]; then |
pascal@438 | 18 tazwok cook linux |
pascal@438 | 19 fi |
pascal@438 | 20 dir=$(cd ../linux/taz/linux*/fs ; ls -d lib/modules/*)/misc |
pascal@438 | 21 cd $src |
pascal@438 | 22 ./configure --prefix=/usr --kernel-path=$(ls -d ../../linux/linux-*) \ |
pascal@438 | 23 --host-cc=gcc-3 --cc=gcc-3 |
pascal@438 | 24 make |
pascal@438 | 25 mkdir -p _pkg/$dir _pkg/dev |
pascal@438 | 26 cp kqemu.ko _pkg/$dir |
pascal@438 | 27 gzip -9 _pkg/$dir/kqemu.ko |
pascal@438 | 28 mknod _pkg/dev/kqemu c 250 0 |
pascal@438 | 29 chmod 666 _pkg/dev/kqemu |
pascal@438 | 30 } |
pascal@438 | 31 |
pascal@438 | 32 |
pascal@438 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@438 | 34 genpkg_rules() |
pascal@438 | 35 { |
pascal@438 | 36 cp -a $_pkg/* $fs |
pascal@438 | 37 } |
pascal@438 | 38 |
pascal@438 | 39 # Post install/remove commands for Tazpkg. |
pascal@438 | 40 post_install() |
pascal@438 | 41 { |
pascal@438 | 42 depmod -a |
pascal@438 | 43 } |
pascal@438 | 44 |
pascal@438 | 45 post_remove() |
pascal@438 | 46 { |
pascal@438 | 47 depmod -a |
pascal@438 | 48 } |
pascal@438 | 49 |