wok rev 5654
Add: linux-toshiba (Toshiba module)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 30 00:39:44 2010 +0200 (2010-05-30) |
parents | 96860753daa4 |
children | c8a4c5842b87 |
files | linux-toshiba/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux-toshiba/receipt Sun May 30 00:39:44 2010 +0200 1.3 @@ -0,0 +1,37 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="linux-toshiba" 1.7 +VERSION="2.6.34" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="The Linux kernel toshiba module." 1.10 +MAINTAINER="devel@slitaz.org" 1.11 +DEPENDS="linux" 1.12 +WANTED="linux" 1.13 +WEB_SITE="http://www.kernel.org/" 1.14 + 1.15 +# Modules paths and list 1.16 +MOD_PATH="/lib/modules/$VERSION-slitaz/kernel" 1.17 +MODULES="drivers/char/toshiba.ko.gz" 1.18 + 1.19 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.20 +genpkg_rules() 1.21 +{ 1.22 + mkdir -p ${fs}${MOD_PATH} 1.23 + for module in $MODULES 1.24 + do 1.25 + dir=$MOD_PATH/$(dirname $module) 1.26 + [ -d $fs/$dir ] || mkdir -p $fs/$dir 1.27 + cp -a $_pkg/$MOD_PATH/$module $fs/$dir 1.28 + done 1.29 +} 1.30 + 1.31 +# Post install/remove commands for Tazpkg. 1.32 +post_install() 1.33 +{ 1.34 + chroot "$1/" depmod -a $VERSION-slitaz 1.35 +} 1.36 + 1.37 +post_remove() 1.38 +{ 1.39 + depmod -a $VERSION-slitaz 1.40 +}