wok-current rev 3173
Up kqemu (1.4.0pre1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 25 09:12:59 2009 +0200 (2009-05-25) |
parents | cd6734156bf3 |
children | 4d3d49a8f050 |
files | kqemu/receipt |
line diff
1.1 --- a/kqemu/receipt Mon May 25 10:21:27 2009 +0200 1.2 +++ b/kqemu/receipt Mon May 25 09:12:59 2009 +0200 1.3 @@ -1,15 +1,14 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="kqemu" 1.7 -VERSION="1.3.0pre11" 1.8 +VERSION="1.4.0pre1" 1.9 CATEGORY="misc" 1.10 SHORT_DESC="QEMU Accelerator Module." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 -WEB_SITE="http://bellard.org/qemu" 1.14 -WGET_URL="$WEB_SITE/$TARBALL" 1.15 +WEB_SITE="http://www.nongnu.org/qemu/" 1.16 +WGET_URL="${WEB_SITE}$TARBALL" 1.17 DEPENDS="linux" 1.18 -BUILD_DEPENDS="gcc3" 1.19 SUGGESTED="qemu" 1.20 1.21 # Rules to configure and make the package. 1.22 @@ -21,28 +20,34 @@ 1.23 fi 1.24 dir=$(cd $WOK/linux/taz/linux*/fs ; ls -d lib/modules/*)/misc 1.25 cd $src 1.26 - ./configure --prefix=/usr --host-cc=gcc-3 --cc=gcc-3 \ 1.27 + ./configure --prefix=/usr \ 1.28 --kernel-path=$(ls -d ../../linux/$(ls ../../linux/taz)) 1.29 make 1.30 mkdir -p _pkg/$dir _pkg/dev 1.31 cp kqemu.ko _pkg/$dir 1.32 gzip -9 _pkg/$dir/kqemu.ko 1.33 - mknod _pkg/dev/kqemu c 250 0 1.34 - chmod 666 _pkg/dev/kqemu 1.35 } 1.36 1.37 # Rules to gen a SliTaz package suitable for Tazpkg. 1.38 genpkg_rules() 1.39 { 1.40 - local kver 1.41 - kver=$(grep "kernel version" $WOK/linux/$(ls $WOK/linux/taz)/.config) 1.42 - EXTRAVERSION=_${kver##* } 1.43 cp -a $_pkg/* $fs 1.44 } 1.45 1.46 # Post install/remove commands for Tazpkg. 1.47 post_install() 1.48 { 1.49 + if [ -d $1/etc/udev ]; then 1.50 + echo 'KERNEL=="kqemu", NAME="%k", MODE="0666"' \ 1.51 + > $1/etc/udev/rules.d/60-kqemu.rules 1.52 + echo "/etc/udev/rules.d/60-kqemu.rules" >> \ 1.53 + $INSTALLED/$PACKAGE/files.list 1.54 + else 1.55 + mknod _pkg/dev/kqemu c 250 0 1.56 + chmod 666 _pkg/dev/kqemu 1.57 + echo "/dev/kqemu" >> \ 1.58 + $INSTALLED/$PACKAGE/files.list 1.59 + fi 1.60 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.61 } 1.62