# HG changeset patch # User Alexander Medvedev # Date 1275187413 0 # Node ID c8a4c5842b87a2ac92710d48f65a6be4b7eec76b # Parent a2ee97f1c132cf22b3546e698783d2d75c21ca95# Parent ec092698f6e1566a50c9dd7e111728d820d4eee3 Merge diff -r a2ee97f1c132 -r c8a4c5842b87 linux-toshiba/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux-toshiba/receipt Sun May 30 02:43:33 2010 +0000 @@ -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 +}