wok annotate linux-scsi/receipt @ rev 14182
Up: aufs-utils (20130311)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 11 12:58:12 2013 +0100 (2013-03-11) |
parents | 6f536abe4f0b |
children | ad59999b3fce |
rev | line source |
---|---|
pascal@899 | 1 # SliTaz package receipt. |
pascal@899 | 2 |
pascal@899 | 3 PACKAGE="linux-scsi" |
pascal@14175 | 4 VERSION="3.2.40" |
pankso@12285 | 5 BASEVER="${VERSION:0:3}" |
pascal@899 | 6 CATEGORY="base-system" |
pascal@899 | 7 SHORT_DESC="The Linux kernel scsi modules." |
pankso@3864 | 8 MAINTAINER="devel@slitaz.org" |
pascal@2926 | 9 DEPENDS="linux" |
pascal@899 | 10 WANTED="linux" |
pascal@899 | 11 WEB_SITE="http://www.kernel.org/" |
pascal@899 | 12 |
pascal@899 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@899 | 14 genpkg_rules() |
pascal@899 | 15 { |
pascal@899 | 16 local path |
pankso@12285 | 17 path=lib/modules/$BASEVER-slitaz/kernel |
pascal@899 | 18 mkdir -p $fs/$path |
pascal@899 | 19 export src |
pascal@899 | 20 export _pkg |
slaxemulator@9700 | 21 $wanted_stuff/list_modules.sh drivers/scsi | while read module; do |
pascal@899 | 22 dir=$path/$(dirname $module) |
pascal@899 | 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@899 | 24 cp -a $_pkg/$path/$module $fs/$dir |
pascal@899 | 25 done |
pascal@899 | 26 } |
pascal@899 | 27 |
pascal@899 | 28 # Post install/remove commands for Tazpkg. |
pascal@899 | 29 post_install() |
pascal@899 | 30 { |
pankso@12285 | 31 chroot "$1/" depmod -a $BASEVER-slitaz |
pascal@899 | 32 } |
pascal@899 | 33 |
pascal@899 | 34 post_remove() |
pascal@899 | 35 { |
pankso@12285 | 36 chroot "$1/" depmod -a $BASEVER-slitaz |
pascal@899 | 37 } |
pascal@899 | 38 |