wok-current view kqemu/receipt @ rev 8368
Fixed units.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Feb 03 20:49:01 2011 +0000 (2011-02-03) |
parents | c063ba959397 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="kqemu"
4 VERSION="1.4.0pre1"
5 CATEGORY="misc"
6 SHORT_DESC="QEMU Accelerator Module."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.nongnu.org/qemu/"
10 WGET_URL="${WEB_SITE}$TARBALL"
11 DEPENDS="linux"
12 BUILD_DEPENDS="linux-module-headers"
13 SUGGESTED="qemu"
14 TAG="virtualization"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 local dir
20 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
22 dir=/lib/modules/${KERNEL_VERSION}-slitaz/misc
23 cd $src
24 patch -Np1 -i ../stuff/$PACKAGE-$VERSION-init_MUTEX.patch
25 ./configure --prefix=/usr \
26 --kernel-path=/usr/src/linux
27 make
28 mkdir -p _pkg/$dir _pkg/dev
29 cp kqemu.ko _pkg/$dir
30 gzip -9 _pkg/$dir/kqemu.ko
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $_pkg/* $fs
37 }
39 # Post install/remove commands for Tazpkg.
40 post_install()
41 {
42 if [ -d $1/etc/udev ]; then
43 file=/etc/udev/rules.d/60-kqemu.rules
44 echo 'KERNEL=="kqemu", NAME="%k", MODE="0666"' > $1$file
45 tazpkg reconfigure udev --root=$1
46 else
47 file=/dev/kqemu
48 mknod -m 666 $1$file c 250 0
49 fi
50 echo "$file" >> $INSTALLED/$PACKAGE/files.list
51 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
52 }
54 post_remove()
55 {
56 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
57 }