# HG changeset patch # User Dominique Corbex # Date 1314522997 -7200 # Node ID 4c2ae66bfd9b7ec531eecda79717b34cfb1f6247 # Parent ae1938fe0a97937d8daf3be9e13f1d324b705f82 Add tp_smapi diff -r ae1938fe0a97 -r 4c2ae66bfd9b tp_smapi/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tp_smapi/description.txt Sun Aug 28 11:16:37 2011 +0200 @@ -0,0 +1,13 @@ +ThinkPad laptops include a proprietary interface called SMAPI BIOS +(System Management Application Program Interface) which provides some +hardware control functionality that is not accessible by other means. + +tp_smapi is highly recommended if you're using a ThinkPad laptop. + +Not all functions are available on all models; for detailed status, see: +http://thinkwiki.org/wiki/tp_smapi + +WARNING: +This driver uses undocumented features and direct hardware access. +It thus cannot be guaranteed to work, and may cause arbitrary damage +(especially on models it wasn't tested on). diff -r ae1938fe0a97 -r 4c2ae66bfd9b tp_smapi/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tp_smapi/receipt Sun Aug 28 11:16:37 2011 +0200 @@ -0,0 +1,31 @@ +# SliTaz package receipt. + +PACKAGE="tp_smapi" +VERSION="0.41" +CATEGORY="base-system" +SHORT_DESC="IBM ThinkPad SMAPI BIOS driver" +MAINTAINER="domcox@slitaz.org" +BUILD_DEPENDS="linux-module-headers linux-source" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="https://github.com/evgeni/tp_smapi" +WGET_URL="https://github.com/downloads/evgeni/$PACKAGE/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + make modules HDAPS=1 +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + MOD_DIR=lib/modules/`uname -r`/extra + mkdir -p $fs/$MOD_DIR + cp -a $src/*.ko $fs/$MOD_DIR +} + +post_install() +{ + /sbin/depmod -a +} \ No newline at end of file