wok-next annotate linux-toshiba/receipt @ rev 12607
cryptsetup: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 29 09:01:02 2012 +0200 (2012-04-29) |
parents | 1d89aa1672da |
children | 829b8ae84e70 |
rev | line source |
---|---|
pankso@5654 | 1 # SliTaz package receipt. |
pankso@5654 | 2 |
pankso@5654 | 3 PACKAGE="linux-toshiba" |
pankso@12285 | 4 VERSION="3.2.14" |
pankso@12285 | 5 BASEVER="${VERSION:0:3}" |
pankso@5654 | 6 CATEGORY="base-system" |
pankso@5654 | 7 SHORT_DESC="The Linux kernel toshiba module." |
pankso@5654 | 8 MAINTAINER="devel@slitaz.org" |
pankso@5654 | 9 DEPENDS="linux" |
pankso@5654 | 10 WANTED="linux" |
pankso@5654 | 11 WEB_SITE="http://www.kernel.org/" |
pankso@5654 | 12 |
pankso@5654 | 13 # Modules paths and list |
pankso@12285 | 14 MOD_PATH="lib/modules/$BASEVER-slitaz/kernel" |
pankso@5654 | 15 MODULES="drivers/char/toshiba.ko.gz" |
pankso@5654 | 16 |
pankso@5654 | 17 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5654 | 18 genpkg_rules() |
pankso@5654 | 19 { |
pankso@12285 | 20 mkdir -p ${fs}/${MOD_PATH} |
pankso@5654 | 21 for module in $MODULES |
pankso@5654 | 22 do |
pankso@5654 | 23 dir=$MOD_PATH/$(dirname $module) |
pankso@5654 | 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pankso@5654 | 25 cp -a $_pkg/$MOD_PATH/$module $fs/$dir |
pankso@5654 | 26 done |
pankso@5654 | 27 } |
pankso@5654 | 28 |
pankso@5654 | 29 # Post install/remove commands for Tazpkg. |
pankso@5654 | 30 post_install() |
pankso@5654 | 31 { |
pankso@12285 | 32 chroot "$1/" depmod -a $BASEVER-slitaz |
pankso@5654 | 33 } |
pankso@5654 | 34 |
pankso@5654 | 35 post_remove() |
pankso@5654 | 36 { |
pankso@12285 | 37 chroot "$1/" depmod -a $BASEVER-slitaz |
pankso@5654 | 38 } |