wok-undigest view ovzkernel-kvm/receipt @ rev 599
Move hardware-ibm-6272 to wok
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 25 15:20:33 2011 +0100 (2011-12-25) |
parents | |
children | 2a507a5f33cc |
line source
1 # SliTaz package receipt.
3 PACKAGE="ovzkernel-kvm"
4 VERSION="2.6.32"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux kernel kvm and virtio modules."
7 MAINTAINER="devel@slitaz.org"
8 DEPENDS="ovzkernel"
9 WANTED="ovzkernel"
10 WEB_SITE="http://www.kernel.org/"
11 EXTRAVERSION="-i686"
12 SOURCE="linux"
13 PROVIDE="linux-kvm"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 local path
19 src=$WOK/$WANTED/$SOURCE-$VERSION
20 _pkg=$WOK/$WANTED/$SOURCE-$VERSION/_pkg
21 KERNELRELEASE=$( cat $src/include/config/kernel.release 2> /dev/null)
22 path=lib/modules/${KERNELRELEASE}/kernel
23 mkdir -p $fs/$path
24 export src
25 export _pkg
26 $src/OpenVZ/list_modules.sh ${KERNELRELEASE} arch/x86/kvm drivers/virtio drivers/lguest \
27 drivers/char/hw_random/virtio-rng.ko.gz drivers/char/virtio_console.ko.gz \
28 drivers/net/virtio_net.ko.gz drivers/block/virtio_blk.ko.gz | \
29 while read module; do
30 dir=$path/$(dirname $module)
31 [ -d $fs/$dir ] || mkdir -p $fs/$dir
32 cp -a $_pkg/$path/$module $fs/$dir
33 done
34 }
36 # Post install/remove commands for Tazpkg.
37 post_install()
38 {
39 KERNELRELEASE=$(cat $1/etc/ovzkernel/kernel.release)
40 chroot "$1/" depmod -a ${KERNELRELEASE}
41 }
43 post_remove()
44 {
45 KERNELRELEASE=$(cat $1/etc/ovzkernel/kernel.release)
46 depmod -a ${KERNELRELEASE}
47 }