wok-current annotate linux-toshiba/receipt @ rev 7073
Up: lvm2 to 2.02.75.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Nov 02 14:53:00 2010 +0000 (2010-11-02) |
parents | ec092698f6e1 |
children | 5355ffc461cf |
rev | line source |
---|---|
pankso@5654 | 1 # SliTaz package receipt. |
pankso@5654 | 2 |
pankso@5654 | 3 PACKAGE="linux-toshiba" |
pankso@5654 | 4 VERSION="2.6.34" |
pankso@5654 | 5 CATEGORY="base-system" |
pankso@5654 | 6 SHORT_DESC="The Linux kernel toshiba module." |
pankso@5654 | 7 MAINTAINER="devel@slitaz.org" |
pankso@5654 | 8 DEPENDS="linux" |
pankso@5654 | 9 WANTED="linux" |
pankso@5654 | 10 WEB_SITE="http://www.kernel.org/" |
pankso@5654 | 11 |
pankso@5654 | 12 # Modules paths and list |
slaxemulator@6719 | 13 MOD_PATH="lib/modules/$VERSION-slitaz/kernel" |
pankso@5654 | 14 MODULES="drivers/char/toshiba.ko.gz" |
pankso@5654 | 15 |
pankso@5654 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5654 | 17 genpkg_rules() |
pankso@5654 | 18 { |
pankso@5654 | 19 mkdir -p ${fs}${MOD_PATH} |
pankso@5654 | 20 for module in $MODULES |
pankso@5654 | 21 do |
pankso@5654 | 22 dir=$MOD_PATH/$(dirname $module) |
pankso@5654 | 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pankso@5654 | 24 cp -a $_pkg/$MOD_PATH/$module $fs/$dir |
pankso@5654 | 25 done |
pankso@5654 | 26 } |
pankso@5654 | 27 |
pankso@5654 | 28 # Post install/remove commands for Tazpkg. |
pankso@5654 | 29 post_install() |
pankso@5654 | 30 { |
pankso@5654 | 31 chroot "$1/" depmod -a $VERSION-slitaz |
pankso@5654 | 32 } |
pankso@5654 | 33 |
pankso@5654 | 34 post_remove() |
pankso@5654 | 35 { |
pankso@5654 | 36 depmod -a $VERSION-slitaz |
pankso@5654 | 37 } |