wok-undigest view ovzkernel-kvm/receipt @ rev 1003
Add python-py
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 22 18:07:00 2013 +0200 (2013-04-22) |
parents | 7b0463e0a650 |
children | 01af0e72b841 |
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 KERNELRELEASE=$( cat $src/include/config/kernel.release 2> /dev/null)
20 path=lib/modules/${KERNELRELEASE}/kernel
21 mkdir -p $fs/$path
22 export src
23 export _pkg
24 $src/OpenVZ/list_modules.sh ${KERNELRELEASE} arch/x86/kvm drivers/virtio drivers/lguest \
25 drivers/char/hw_random/virtio-rng.ko.gz drivers/char/virtio_console.ko.gz \
26 drivers/net/virtio_net.ko.gz drivers/block/virtio_blk.ko.gz | \
27 while read module; do
28 dir=$path/$(dirname $module)
29 [ -d $fs/$dir ] || mkdir -p $fs/$dir
30 cp -a $_pkg/$path/$module $fs/$dir
31 done
32 }
34 # Post install/remove commands for Tazpkg.
35 post_install()
36 {
37 KERNELRELEASE=$(cat $1/etc/ovzkernel/kernel.release)
38 chroot "$1/" depmod -a ${KERNELRELEASE}
39 }
41 post_remove()
42 {
43 KERNELRELEASE=$(cat $1/etc/ovzkernel/kernel.release)
44 depmod -a ${KERNELRELEASE}
45 }