wok-current annotate linux-toshiba/receipt @ rev 15370
Up ipxe-pxe (1.0.0-20130925)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 14 15:05:05 2013 +0000 (2013-10-14) |
parents | 416fab3c90c0 |
children | 051931e905b0 |
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" |
pascal@14657 | 9 LICENSE="GPL2" |
pankso@5654 | 10 DEPENDS="linux" |
pankso@5654 | 11 WANTED="linux" |
pankso@5654 | 12 WEB_SITE="http://www.kernel.org/" |
pankso@5654 | 13 |
pankso@5654 | 14 # Modules paths and list |
pankso@12285 | 15 MOD_PATH="lib/modules/$BASEVER-slitaz/kernel" |
pascal@12638 | 16 MODULES="drivers/char/toshiba.ko.xz" |
pankso@5654 | 17 |
pankso@5654 | 18 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5654 | 19 genpkg_rules() |
pankso@5654 | 20 { |
pankso@12285 | 21 mkdir -p ${fs}/${MOD_PATH} |
pankso@5654 | 22 for module in $MODULES |
pankso@5654 | 23 do |
pankso@5654 | 24 dir=$MOD_PATH/$(dirname $module) |
pankso@5654 | 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pankso@5654 | 26 cp -a $_pkg/$MOD_PATH/$module $fs/$dir |
pankso@5654 | 27 done |
pankso@5654 | 28 } |
pankso@5654 | 29 |
pankso@5654 | 30 # Post install/remove commands for Tazpkg. |
pankso@5654 | 31 post_install() |
pankso@5654 | 32 { |
pankso@12285 | 33 chroot "$1/" depmod -a $BASEVER-slitaz |
pankso@5654 | 34 } |
pankso@5654 | 35 |
pankso@5654 | 36 post_remove() |
pankso@5654 | 37 { |
pankso@12285 | 38 chroot "$1/" depmod -a $BASEVER-slitaz |
pankso@5654 | 39 } |