wok-undigest view ovzkernel-kvm/receipt @ rev 1052
add: efl (1.8.0-beta1)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Wed Nov 27 21:32:37 2013 +0100 (2013-11-27) |
parents | 2a507a5f33cc |
children |
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 LICENSE="GPL2"
9 DEPENDS="ovzkernel"
10 WANTED="ovzkernel"
11 WEB_SITE="http://www.kernel.org/"
12 EXTRAVERSION="-i686"
13 SOURCE="linux"
14 PROVIDE="linux-kvm"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 local path
20 KERNELRELEASE=$( cat $src/include/config/kernel.release 2> /dev/null)
21 path=lib/modules/${KERNELRELEASE}/kernel
22 mkdir -p $fs/$path
23 export src
24 export _pkg
25 $src/OpenVZ/list_modules.sh ${KERNELRELEASE} arch/x86/kvm drivers/virtio drivers/lguest \
26 drivers/char/hw_random/virtio-rng.ko.gz drivers/char/virtio_console.ko.gz \
27 drivers/net/virtio_net.ko.gz drivers/block/virtio_blk.ko.gz | \
28 while read module; do
29 dir=$path/$(dirname $module)
30 [ -d $fs/$dir ] || mkdir -p $fs/$dir
31 cp -a $_pkg/$path/$module $fs/$dir
32 done
33 }
35 # Post install/remove commands for Tazpkg.
36 post_install()
37 {
38 KERNELRELEASE=$(cat $1/etc/ovzkernel/kernel.release)
39 chroot "$1/" depmod -a ${KERNELRELEASE}
40 }
42 post_remove()
43 {
44 KERNELRELEASE=$(cat $1/etc/ovzkernel/kernel.release)
45 depmod -a ${KERNELRELEASE}
46 }