wok view kqemu/receipt @ rev 5490
add linux-drm to mesa-dri DEPENDS
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Thu May 06 13:10:42 2010 -0400 (2010-05-06) |
parents | f25b1712883d |
children | 9562c8df32fa |
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 SUGGESTED="qemu"
13 TAG="virtualization"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 local dir
19 if [ ! -d $WOK/linux/taz ]; then
20 tazwok cook linux
21 fi
22 dir=$(cd $WOK/linux/taz/linux*/fs ; ls -d lib/modules/*)/misc
23 cd $src
24 ./configure --prefix=/usr \
25 --kernel-path=$(ls -d ../../linux/$(ls ../../linux/taz))
26 make
27 mkdir -p _pkg/$dir _pkg/dev
28 cp kqemu.ko _pkg/$dir
29 gzip -9 _pkg/$dir/kqemu.ko
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $_pkg/* $fs
36 }
38 # Post install/remove commands for Tazpkg.
39 post_install()
40 {
41 if [ -d $1/etc/udev ]; then
42 file=/etc/udev/rules.d/60-kqemu.rules
43 echo 'KERNEL=="kqemu", NAME="%k", MODE="0666"' > $1$file
44 tazpkg reconfigure udev --root=$1
45 else
46 file=/dev/kqemu
47 mknod -m 666 $1$file c 250 0
48 fi
49 echo "$file" >> $INSTALLED/$PACKAGE/files.list
50 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
51 }
53 post_remove()
54 {
55 depmod -a
56 }