wok-undigest view ovzkernel-scsi/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-scsi"
4 VERSION="2.6.32"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux kernel scsi 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-scsi"
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} drivers/scsi drivers/message | while read module; do
25 dir=$path/$(dirname $module)
26 [ -d $fs/$dir ] || mkdir -p $fs/$dir
27 cp -a $_pkg/$path/$module $fs/$dir
28 done
29 }
31 # Post install/remove commands for Tazpkg.
32 post_install()
33 {
34 KERNELRELEASE=$(cat $1/etc/ovzkernel/kernel.release)
35 chroot "$1/" depmod -a ${KERNELRELEASE}
36 }
38 post_remove()
39 {
40 KERNELRELEASE=$(cat $1/etc/ovzkernel/kernel.release)
41 depmod -a ${KERNELRELEASE}
42 }