wok-current annotate linux-toshiba/receipt @ rev 14655
tumbler: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 05 10:35:55 2013 +0200 (2013-06-05) |
parents | 829b8ae84e70 |
children | ad59999b3fce |
rev | line source |
---|---|
pankso@5654 | 1 # SliTaz package receipt. |
pankso@5654 | 2 |
pankso@5654 | 3 PACKAGE="linux-toshiba" |
pascal@14175 | 4 VERSION="3.2.40" |
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" |
pascal@12638 | 15 MODULES="drivers/char/toshiba.ko.xz" |
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 } |