# HG changeset patch # User Christophe Lincoln # Date 1275156984 -7200 # Node ID e67ccc51f7c06d4d893c320b3870651a8c403ded # Parent b84ff32e34579a614706742c1e8b6f60b8ad10bc Add: linux-eeepc-wmi (EeePC hotkeys modules) Now with new receipt using MODULES variable diff -r b84ff32e3457 -r e67ccc51f7c0 linux-eeepc-wmi/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux-eeepc-wmi/receipt Sat May 29 20:16:24 2010 +0200 @@ -0,0 +1,36 @@ +# SliTaz package receipt. + +PACKAGE="linux-eeepc-wmi" +VERSION="2.6.34" +CATEGORY="base-system" +SHORT_DESC="The Linux kernel eeepc-wmi module." +MAINTAINER="devel@slitaz.org" +DEPENDS="linux" +WANTED="linux" +WEB_SITE="http://www.kernel.org/" + +MODULES="drivers/platform/x86/eeepc-wmi.ko.gz" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + path=lib/modules/$VERSION-slitaz/kernel + mkdir -p $fs/$path + for module in $MODULES + do + dir=$path/$(dirname $module) + [ -d $fs/$dir ] || mkdir -p $fs/$dir + cp -a $_pkg/$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 +}