wok-current annotate linux-scsi/receipt @ rev 3864

Up: linux (2.6.30.4)
author Christophe Lincoln <pankso@slitaz.org>
date Fri Aug 07 23:18:34 2009 +0200 (2009-08-07)
parents 9059daaaa23d
children bea1fdc6a26e
rev   line source
pascal@899 1 # SliTaz package receipt.
pascal@899 2
pankso@3864 3 PACKED_SIZE="8.0k"
pankso@3864 4 UNPACKED_SIZE="4.0k"
pascal@899 5 PACKAGE="linux-scsi"
pankso@3864 6 VERSION="2.6.30.4"
pascal@899 7 CATEGORY="base-system"
pascal@899 8 SHORT_DESC="The Linux kernel scsi modules."
pankso@3864 9 MAINTAINER="devel@slitaz.org"
pascal@2926 10 DEPENDS="linux"
pascal@899 11 WANTED="linux"
pascal@899 12 WEB_SITE="http://www.kernel.org/"
pascal@899 13
pascal@899 14 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@899 15 genpkg_rules()
pascal@899 16 {
pascal@899 17 local path
pascal@899 18 path=lib/modules/$VERSION-slitaz/kernel
pascal@899 19 mkdir -p $fs/$path
pascal@899 20 export src
pascal@899 21 export _pkg
pascal@899 22 $src/list_modules.sh drivers/scsi | while read module; do
pascal@899 23 dir=$path/$(dirname $module)
pascal@899 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@899 25 cp -a $_pkg/$path/$module $fs/$dir
pascal@899 26 done
pascal@899 27 }
pascal@899 28
pascal@899 29 # Post install/remove commands for Tazpkg.
pascal@899 30 post_install()
pascal@899 31 {
pascal@2990 32 chroot "$1/" depmod -a $VERSION-slitaz
pascal@899 33 }
pascal@899 34
pascal@899 35 post_remove()
pascal@899 36 {
pascal@899 37 depmod -a $VERSION-slitaz
pascal@899 38 }
pascal@899 39