wok-stable annotate kqemu/receipt @ rev 8911
chess3d: get sources from slitaz mirror
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 28 14:41:07 2011 +0100 (2011-02-28) |
parents | c063ba959397 |
children |
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 |
slaxemulator@8100 | 24 patch -Np1 -i ../stuff/$PACKAGE-$VERSION-init_MUTEX.patch |
pascal@3173 | 25 ./configure --prefix=/usr \ |
slaxemulator@6879 | 26 --kernel-path=/usr/src/linux |
pascal@438 | 27 make |
pascal@438 | 28 mkdir -p _pkg/$dir _pkg/dev |
pascal@438 | 29 cp kqemu.ko _pkg/$dir |
pascal@438 | 30 gzip -9 _pkg/$dir/kqemu.ko |
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@3173 | 42 if [ -d $1/etc/udev ]; then |
pascal@3175 | 43 file=/etc/udev/rules.d/60-kqemu.rules |
pascal@3175 | 44 echo 'KERNEL=="kqemu", NAME="%k", MODE="0666"' > $1$file |
pascal@3175 | 45 tazpkg reconfigure udev --root=$1 |
pascal@3173 | 46 else |
pascal@3175 | 47 file=/dev/kqemu |
pascal@3175 | 48 mknod -m 666 $1$file c 250 0 |
pascal@3173 | 49 fi |
pascal@3175 | 50 echo "$file" >> $INSTALLED/$PACKAGE/files.list |
pascal@2926 | 51 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@438 | 52 } |
pascal@438 | 53 |
pascal@438 | 54 post_remove() |
pascal@438 | 55 { |
slaxemulator@8308 | 56 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@438 | 57 } |
pascal@438 | 58 |