wok-4.x annotate kqemu/receipt @ 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 | f306d126580e |
children | f25b1712883d |
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" |
pascal@1733 | 12 SUGGESTED="qemu" |
pascal@438 | 13 |
pascal@438 | 14 # Rules to configure and make the package. |
pascal@438 | 15 compile_rules() |
pascal@438 | 16 { |
pascal@438 | 17 local dir |
pascal@1452 | 18 if [ ! -d $WOK/linux/taz ]; then |
pascal@438 | 19 tazwok cook linux |
pascal@438 | 20 fi |
pascal@1452 | 21 dir=$(cd $WOK/linux/taz/linux*/fs ; ls -d lib/modules/*)/misc |
pascal@438 | 22 cd $src |
pascal@3173 | 23 ./configure --prefix=/usr \ |
pascal@2061 | 24 --kernel-path=$(ls -d ../../linux/$(ls ../../linux/taz)) |
pascal@438 | 25 make |
pascal@438 | 26 mkdir -p _pkg/$dir _pkg/dev |
pascal@438 | 27 cp kqemu.ko _pkg/$dir |
pascal@438 | 28 gzip -9 _pkg/$dir/kqemu.ko |
pascal@438 | 29 } |
pascal@438 | 30 |
pascal@438 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@438 | 32 genpkg_rules() |
pascal@438 | 33 { |
pascal@438 | 34 cp -a $_pkg/* $fs |
pascal@438 | 35 } |
pascal@438 | 36 |
pascal@438 | 37 # Post install/remove commands for Tazpkg. |
pascal@438 | 38 post_install() |
pascal@438 | 39 { |
pascal@3173 | 40 if [ -d $1/etc/udev ]; then |
pascal@3173 | 41 echo 'KERNEL=="kqemu", NAME="%k", MODE="0666"' \ |
pascal@3173 | 42 > $1/etc/udev/rules.d/60-kqemu.rules |
pascal@3173 | 43 echo "/etc/udev/rules.d/60-kqemu.rules" >> \ |
pascal@3173 | 44 $INSTALLED/$PACKAGE/files.list |
pascal@3173 | 45 else |
pascal@3173 | 46 mknod _pkg/dev/kqemu c 250 0 |
pascal@3173 | 47 chmod 666 _pkg/dev/kqemu |
pascal@3173 | 48 echo "/dev/kqemu" >> \ |
pascal@3173 | 49 $INSTALLED/$PACKAGE/files.list |
pascal@3173 | 50 fi |
pascal@2926 | 51 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@438 | 52 } |
pascal@438 | 53 |
pascal@438 | 54 post_remove() |
pascal@438 | 55 { |
pascal@1286 | 56 depmod -a |
pascal@438 | 57 } |
pascal@438 | 58 |