wok-4.x annotate kqemu/receipt @ rev 7570

chess3d: enable engine
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 09 15:45:25 2010 +0100 (2010-12-09)
parents 9bac91257596
children c063ba959397
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"
slaxemulator@6879 12 BUILD_DEPENDS="linux-module-headers"
pascal@1733 13 SUGGESTED="qemu"
jozee@4942 14 TAG="virtualization"
pascal@438 15
pascal@438 16 # Rules to configure and make the package.
pascal@438 17 compile_rules()
pascal@438 18 {
pascal@438 19 local dir
slaxemulator@6879 20 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
slaxemulator@6879 21
slaxemulator@6879 22 dir=/lib/modules/${KERNEL_VERSION}-slitaz/misc
pascal@438 23 cd $src
pascal@3173 24 ./configure --prefix=/usr \
slaxemulator@6879 25 --kernel-path=/usr/src/linux
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