wok-stable annotate kqemu/receipt @ rev 4275
ntp: fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 26 00:06:13 2009 +0200 (2009-09-26) |
parents | 37a6d35387dd |
children | 9bac91257596 |
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@3175 | 41 file=/etc/udev/rules.d/60-kqemu.rules |
pascal@3175 | 42 echo 'KERNEL=="kqemu", NAME="%k", MODE="0666"' > $1$file |
pascal@3175 | 43 tazpkg reconfigure udev --root=$1 |
pascal@3173 | 44 else |
pascal@3175 | 45 file=/dev/kqemu |
pascal@3175 | 46 mknod -m 666 $1$file c 250 0 |
pascal@3173 | 47 fi |
pascal@3175 | 48 echo "$file" >> $INSTALLED/$PACKAGE/files.list |
pascal@2926 | 49 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@438 | 50 } |
pascal@438 | 51 |
pascal@438 | 52 post_remove() |
pascal@438 | 53 { |
pascal@1286 | 54 depmod -a |
pascal@438 | 55 } |
pascal@438 | 56 |