wok-current annotate kqemu/receipt @ rev 2186
Add dropbear-pam
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 09 09:44:28 2009 +0000 (2009-02-09) |
parents | af37f2069841 |
children | f306d126580e |
rev | line source |
---|---|
pascal@438 | 1 # SliTaz package receipt. |
pascal@438 | 2 |
pascal@438 | 3 PACKAGE="kqemu" |
pascal@438 | 4 VERSION="1.3.0pre11" |
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@919 | 9 WEB_SITE="http://bellard.org/qemu" |
pascal@438 | 10 WGET_URL="$WEB_SITE/$TARBALL" |
pascal@438 | 11 BUILD_DEPENDS="gcc3" |
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@2061 | 23 ./configure --prefix=/usr --host-cc=gcc-3 --cc=gcc-3 \ |
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 mknod _pkg/dev/kqemu c 250 0 |
pascal@438 | 30 chmod 666 _pkg/dev/kqemu |
pascal@438 | 31 } |
pascal@438 | 32 |
pascal@438 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@438 | 34 genpkg_rules() |
pascal@438 | 35 { |
pascal@910 | 36 local kver |
pascal@2062 | 37 kver=$(grep "kernel version" $WOK/linux/$(ls $WOK/linux/taz)/.config) |
pascal@910 | 38 EXTRAVERSION=_${kver##* } |
pascal@438 | 39 cp -a $_pkg/* $fs |
pascal@438 | 40 } |
pascal@438 | 41 |
pascal@438 | 42 # Post install/remove commands for Tazpkg. |
pascal@438 | 43 post_install() |
pascal@438 | 44 { |
pascal@1455 | 45 depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz |
pascal@438 | 46 } |
pascal@438 | 47 |
pascal@438 | 48 post_remove() |
pascal@438 | 49 { |
pascal@1286 | 50 depmod -a |
pascal@438 | 51 } |
pascal@438 | 52 |