wok-6.x diff linux-toshiba/receipt @ rev 5731
down: xorg-dev (7.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 24 17:35:04 2010 +0200 (2010-06-24) |
parents | |
children | 5b6e682d7c62 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux-toshiba/receipt Thu Jun 24 17:35:04 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 +}