wok-undigest rev 394

Add tp_smapi
author Dominique Corbex <domcox@slitaz.org>
date Sun Aug 28 11:16:37 2011 +0200 (2011-08-28)
parents ae1938fe0a97
children 26980c47185c
files tp_smapi/description.txt tp_smapi/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tp_smapi/description.txt	Sun Aug 28 11:16:37 2011 +0200
     1.3 @@ -0,0 +1,13 @@
     1.4 +ThinkPad laptops include a proprietary interface called SMAPI BIOS 
     1.5 +(System Management Application Program Interface) which provides some
     1.6 +hardware control functionality that is not accessible by other means.
     1.7 +
     1.8 +tp_smapi is highly recommended if you're using a ThinkPad laptop.
     1.9 +
    1.10 +Not all functions are available on all models; for detailed status, see:
    1.11 +http://thinkwiki.org/wiki/tp_smapi
    1.12 +
    1.13 +WARNING: 
    1.14 +This driver uses undocumented features and direct hardware access.
    1.15 +It thus cannot be guaranteed to work, and may cause arbitrary damage
    1.16 +(especially on models it wasn't tested on).
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/tp_smapi/receipt	Sun Aug 28 11:16:37 2011 +0200
     2.3 @@ -0,0 +1,31 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="tp_smapi"
     2.7 +VERSION="0.41"
     2.8 +CATEGORY="base-system"
     2.9 +SHORT_DESC="IBM ThinkPad SMAPI BIOS driver"
    2.10 +MAINTAINER="domcox@slitaz.org"
    2.11 +BUILD_DEPENDS="linux-module-headers linux-source"
    2.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.13 +WEB_SITE="https://github.com/evgeni/tp_smapi"
    2.14 +WGET_URL="https://github.com/downloads/evgeni/$PACKAGE/$TARBALL"
    2.15 +
    2.16 +# Rules to configure and make the package.
    2.17 +compile_rules()
    2.18 +{
    2.19 +	cd $src
    2.20 +	make modules HDAPS=1
    2.21 +}
    2.22 +
    2.23 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.24 +genpkg_rules()
    2.25 +{
    2.26 +	MOD_DIR=lib/modules/`uname -r`/extra
    2.27 +	mkdir -p $fs/$MOD_DIR
    2.28 +	cp -a $src/*.ko $fs/$MOD_DIR
    2.29 +}
    2.30 +
    2.31 +post_install()
    2.32 +{
    2.33 +	/sbin/depmod -a
    2.34 +}
    2.35 \ No newline at end of file