# HG changeset patch # User Christophe Lincoln # Date 1275172784 -7200 # Node ID ec092698f6e1566a50c9dd7e111728d820d4eee3 # Parent 96860753daa4c6e041db984644db9293aaf63a1f Add: linux-toshiba (Toshiba module) diff -r 96860753daa4 -r ec092698f6e1 linux-toshiba/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux-toshiba/receipt Sun May 30 00:39:44 2010 +0200 @@ -0,0 +1,37 @@ +# SliTaz package receipt. + +PACKAGE="linux-toshiba" +VERSION="2.6.34" +CATEGORY="base-system" +SHORT_DESC="The Linux kernel toshiba module." +MAINTAINER="devel@slitaz.org" +DEPENDS="linux" +WANTED="linux" +WEB_SITE="http://www.kernel.org/" + +# Modules paths and list +MOD_PATH="/lib/modules/$VERSION-slitaz/kernel" +MODULES="drivers/char/toshiba.ko.gz" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p ${fs}${MOD_PATH} + for module in $MODULES + do + dir=$MOD_PATH/$(dirname $module) + [ -d $fs/$dir ] || mkdir -p $fs/$dir + cp -a $_pkg/$MOD_PATH/$module $fs/$dir + done +} + +# Post install/remove commands for Tazpkg. +post_install() +{ + chroot "$1/" depmod -a $VERSION-slitaz +} + +post_remove() +{ + depmod -a $VERSION-slitaz +}