wok view kqemu/receipt @ rev 7300
Add geoip. Non-DNS IP-to-country resolver C library & utils.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Nov 17 03:07:03 2010 +0000 (2010-11-17) |
parents | 9bac91257596 |
children | c063ba959397 |
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 ./configure --prefix=/usr \
25 --kernel-path=/usr/src/linux
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 }