wok annotate linux-toshiba/receipt @ rev 18978
Up tazlito(418)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Mar 14 14:14:36 2016 +0200 (2016-03-14) |
parents | db5b03f42dd9 |
children | ffc20f9bd49f |
rev | line source |
---|---|
pankso@5654 | 1 # SliTaz package receipt. |
pankso@5654 | 2 |
pankso@5654 | 3 PACKAGE="linux-toshiba" |
pascal@18296 | 4 VERSION="3.2.71" |
pankso@5654 | 5 CATEGORY="base-system" |
pankso@5654 | 6 SHORT_DESC="The Linux kernel toshiba module." |
pankso@5654 | 7 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
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@15855 | 14 MOD_PATH="lib/modules/$VERSION-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 |
pascal@15603 | 25 cp -a $install/$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@15855 | 32 chroot "$root/" depmod -a $VERSION-slitaz |
pankso@5654 | 33 } |
pankso@5654 | 34 |
pankso@5654 | 35 post_remove() |
pankso@5654 | 36 { |
pankso@15855 | 37 chroot "$root/" depmod -a $VERSION-slitaz |
pankso@5654 | 38 } |