wok annotate kqemu/receipt @ rev 6219

Up: chmlib, chmlib-dev to 0.40.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Sep 11 17:20:28 2010 +0000 (2010-09-11)
parents f25b1712883d
children 9562c8df32fa
rev   line source
pascal@438 1 # SliTaz package receipt.
pascal@438 2
pascal@438 3 PACKAGE="kqemu"
pascal@3173 4 VERSION="1.4.0pre1"
pascal@438 5 CATEGORY="misc"
pascal@438 6 SHORT_DESC="QEMU Accelerator Module."
pankso@2046 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@438 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@3173 9 WEB_SITE="http://www.nongnu.org/qemu/"
pascal@3173 10 WGET_URL="${WEB_SITE}$TARBALL"
pascal@2926 11 DEPENDS="linux"
pascal@1733 12 SUGGESTED="qemu"
jozee@4942 13 TAG="virtualization"
pascal@438 14
pascal@438 15 # Rules to configure and make the package.
pascal@438 16 compile_rules()
pascal@438 17 {
pascal@438 18 local dir
pascal@1452 19 if [ ! -d $WOK/linux/taz ]; then
pascal@438 20 tazwok cook linux
pascal@438 21 fi
pascal@1452 22 dir=$(cd $WOK/linux/taz/linux*/fs ; ls -d lib/modules/*)/misc
pascal@438 23 cd $src
pascal@3173 24 ./configure --prefix=/usr \
pascal@2061 25 --kernel-path=$(ls -d ../../linux/$(ls ../../linux/taz))
pascal@438 26 make
pascal@438 27 mkdir -p _pkg/$dir _pkg/dev
pascal@438 28 cp kqemu.ko _pkg/$dir
pascal@438 29 gzip -9 _pkg/$dir/kqemu.ko
pascal@438 30 }
pascal@438 31
pascal@438 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@438 33 genpkg_rules()
pascal@438 34 {
pascal@438 35 cp -a $_pkg/* $fs
pascal@438 36 }
pascal@438 37
pascal@438 38 # Post install/remove commands for Tazpkg.
pascal@438 39 post_install()
pascal@438 40 {
pascal@3173 41 if [ -d $1/etc/udev ]; then
pascal@3175 42 file=/etc/udev/rules.d/60-kqemu.rules
pascal@3175 43 echo 'KERNEL=="kqemu", NAME="%k", MODE="0666"' > $1$file
pascal@3175 44 tazpkg reconfigure udev --root=$1
pascal@3173 45 else
pascal@3175 46 file=/dev/kqemu
pascal@3175 47 mknod -m 666 $1$file c 250 0
pascal@3173 48 fi
pascal@3175 49 echo "$file" >> $INSTALLED/$PACKAGE/files.list
pascal@2926 50 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
pascal@438 51 }
pascal@438 52
pascal@438 53 post_remove()
pascal@438 54 {
pascal@1286 55 depmod -a
pascal@438 56 }
pascal@438 57