wok-undigest view ovzkernel-scsi/receipt @ rev 553
Add tor-arm
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Wed Nov 09 21:09:08 2011 +0000 (2011-11-09) |
parents | |
children | 2a507a5f33cc |
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 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} drivers/scsi drivers/message | while read module; do
27 dir=$path/$(dirname $module)
28 [ -d $fs/$dir ] || mkdir -p $fs/$dir
29 cp -a $_pkg/$path/$module $fs/$dir
30 done
31 }
33 # Post install/remove commands for Tazpkg.
34 post_install()
35 {
36 KERNELRELEASE=$(cat $1/etc/ovzkernel/kernel.release)
37 chroot "$1/" depmod -a ${KERNELRELEASE}
38 }
40 post_remove()
41 {
42 KERNELRELEASE=$(cat $1/etc/ovzkernel/kernel.release)
43 depmod -a ${KERNELRELEASE}
44 }