aboutsummaryrefslogtreecommitdiff
path: root/system/tp_smapi
diff options
context:
space:
mode:
Diffstat (limited to 'system/tp_smapi')
-rw-r--r--system/tp_smapi/README10
-rw-r--r--system/tp_smapi/modprobe.d/thinkpad_ec.conf (renamed from system/tp_smapi/modprobe.thinkpad_ec.conf)0
-rw-r--r--system/tp_smapi/modprobe.d/tp_smapi.conf (renamed from system/tp_smapi/modprobe.tp_smapi.conf)0
-rw-r--r--system/tp_smapi/patches/tp_smapi-0.40-2.6.37.patch30
-rw-r--r--system/tp_smapi/patches/tp_smapi-0.40-x200-x200s-support.patch11
-rw-r--r--system/tp_smapi/tp_smapi.SlackBuild20
-rw-r--r--system/tp_smapi/tp_smapi.info10
7 files changed, 14 insertions, 67 deletions
diff --git a/system/tp_smapi/README b/system/tp_smapi/README
index fad787b148a28..75df263693cab 100644
--- a/system/tp_smapi/README
+++ b/system/tp_smapi/README
@@ -10,11 +10,9 @@ It thus cannot be guaranteed to work, and may cause arbitrary damage
(especially to models on which it wasn't tested).
NOTES:
-* There's a patch (patches/tp_smapi-0.40-x200-x200s-support.patch) to
-add axis inversion handling for thinkpads x200 and x200s but since
-this patch *does not* come from upstream its not applied by default
-so use it at your own risk. Edit the SlackBuild to apply it.
+* The source code of this package is from a tp_smapi fork:
+https://github.com/evgeni/tp_smapi
* It's highly recommended to read the following links:
- http://www.thinkwiki.org/wiki/Tp_smapi
- http://wiki.archlinux.org/index.php/Tp_smapi
+http://www.thinkwiki.org/wiki/Tp_smapi
+http://wiki.archlinux.org/index.php/Tp_smapi
diff --git a/system/tp_smapi/modprobe.thinkpad_ec.conf b/system/tp_smapi/modprobe.d/thinkpad_ec.conf
index 6e9b47637e97f..6e9b47637e97f 100644
--- a/system/tp_smapi/modprobe.thinkpad_ec.conf
+++ b/system/tp_smapi/modprobe.d/thinkpad_ec.conf
diff --git a/system/tp_smapi/modprobe.tp_smapi.conf b/system/tp_smapi/modprobe.d/tp_smapi.conf
index 98080e9df6009..98080e9df6009 100644
--- a/system/tp_smapi/modprobe.tp_smapi.conf
+++ b/system/tp_smapi/modprobe.d/tp_smapi.conf
diff --git a/system/tp_smapi/patches/tp_smapi-0.40-2.6.37.patch b/system/tp_smapi/patches/tp_smapi-0.40-2.6.37.patch
deleted file mode 100644
index 60f05997a1d40..0000000000000
--- a/system/tp_smapi/patches/tp_smapi-0.40-2.6.37.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-diff -urN tp_smapi-0.40.orig/thinkpad_ec.c tp_smapi-0.40/thinkpad_ec.c
---- tp_smapi-0.40.orig/thinkpad_ec.c 2008-12-16 08:03:06.000000000 +0300
-+++ tp_smapi-0.40/thinkpad_ec.c 2010-11-22 18:16:54.000000000 +0300
-@@ -88,7 +88,11 @@
- #define TPC_PREFETCH_JUNK (INITIAL_JIFFIES+1) /* Ignore prefetch */
-
- /* Locking: */
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
- static DECLARE_MUTEX(thinkpad_ec_mutex);
-+#else
-+static DEFINE_SEMAPHORE(thinkpad_ec_mutex);
-+#endif
-
- /* Kludge in case the ACPI DSDT reserves the ports we need. */
- static int force_io; /* Willing to do IO to ports we couldn't reserve? */
-diff -urN tp_smapi-0.40.orig/tp_smapi.c tp_smapi-0.40/tp_smapi.c
---- tp_smapi-0.40.orig/tp_smapi.c 2008-12-16 08:03:06.000000000 +0300
-+++ tp_smapi-0.40/tp_smapi.c 2010-11-22 18:17:29.000000000 +0300
-@@ -109,7 +109,11 @@
- #define SMAPI_PORT2 0x4F /* fixed port, meaning unclear */
- static unsigned short smapi_port; /* APM control port, normally 0xB2 */
-
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
- static DECLARE_MUTEX(smapi_mutex);
-+#else
-+static DEFINE_SEMAPHORE(smapi_mutex);
-+#endif
-
- /**
- * find_smapi_port - read SMAPI port from NVRAM
diff --git a/system/tp_smapi/patches/tp_smapi-0.40-x200-x200s-support.patch b/system/tp_smapi/patches/tp_smapi-0.40-x200-x200s-support.patch
deleted file mode 100644
index b1c4fa5c1a32b..0000000000000
--- a/system/tp_smapi/patches/tp_smapi-0.40-x200-x200s-support.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/hdaps.c
-+++ b/hdaps.c
-@@ -750,6 +750,8 @@
- HDAPS_DMI_MATCH_INVERT("LENOVO", "ThinkPad X60s", HDAPS_ORIENT_INVERT_Y),
- HDAPS_DMI_MATCH_INVERT("LENOVO", "ThinkPad X60", HDAPS_ORIENT_SWAP | HDAPS_ORIENT_INVERT_X),
- HDAPS_DMI_MATCH_INVERT("LENOVO", "ThinkPad X61", HDAPS_ORIENT_SWAP | HDAPS_ORIENT_INVERT_X),
-+ HDAPS_DMI_MATCH_INVERT("LENOVO", "ThinkPad X200", HDAPS_ORIENT_SWAP | HDAPS_ORIENT_INVERT_XY),
-+ HDAPS_DMI_MATCH_INVERT("LENOVO", "ThinkPad X200s", HDAPS_ORIENT_SWAP | HDAPS_ORIENT_INVERT_XY),
- { .ident = NULL }
- };
-
diff --git a/system/tp_smapi/tp_smapi.SlackBuild b/system/tp_smapi/tp_smapi.SlackBuild
index 3e982c13fa652..f5158d0d60142 100644
--- a/system/tp_smapi/tp_smapi.SlackBuild
+++ b/system/tp_smapi/tp_smapi.SlackBuild
@@ -22,8 +22,8 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=tp_smapi
-VERSION=0.40
-BUILD=${BUILD:-4}
+VERSION=0.41
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
KERNEL=${KERNEL:-"$(uname -r)"}
@@ -61,7 +61,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tgz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -71,16 +71,6 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Thanks to debian, gentoo and arch guys for this patches :)
-# Fix tp_smapi build in kernel version >= 2.6.37
-# http://sourceforge.net/tracker/index.php?func=detail&aid=3153602&group_id=1212&atid=101212
-patch -p1 < $CWD/patches/tp_smapi-0.40-2.6.37.patch
-
-# Adds axis inversion handling for x200 and x200s
-# https://aur.archlinux.org/packages.php?ID=3985
-# This patch *does not* come from upstream, so use it at your own risk.
-# patch -p1 < $CWD/patches/tp_smapi-0.40-x200-x200s-support.patch
-
( case "$ARCH" in
i?86) ARCH=x86 ;;
esac
@@ -101,8 +91,8 @@ install -m 0664 thinkpad_ec.ko tp_smapi.ko \
# We're not going to install these with a .new extension, because we don't
# want them to be present if the package is removed.
mkdir -p $PKG/etc/modprobe.d
-cat $CWD/modprobe.tp_smapi.conf > $PKG/etc/modprobe.d/tp_smapi.conf
-cat $CWD/modprobe.thinkpad_ec.conf > $PKG/etc/modprobe.d/thinkpad_ec.conf
+cat $CWD/modprobe.d/tp_smapi.conf > $PKG/etc/modprobe.d/tp_smapi.conf
+cat $CWD/modprobe.d/thinkpad_ec.conf > $PKG/etc/modprobe.d/thinkpad_ec.conf
# Make hdaps kernel module from this package be prefered over hdaps in kernel-module package.
mkdir -p $PKG/etc/depmod.d
diff --git a/system/tp_smapi/tp_smapi.info b/system/tp_smapi/tp_smapi.info
index e5165c994d63b..34291d2bc0870 100644
--- a/system/tp_smapi/tp_smapi.info
+++ b/system/tp_smapi/tp_smapi.info
@@ -1,10 +1,10 @@
PRGNAM="tp_smapi"
-VERSION="0.40"
-HOMEPAGE="http://tpctl.sourceforge.net"
-DOWNLOAD="http://downloads.sourceforge.net/tpctl/tp_smapi-0.40.tgz"
-MD5SUM="f4eb8bb4d4413a5ae65aa7d77f4112c0"
+VERSION="0.41"
+HOMEPAGE="https://github.com/evgeni/tp_smapi"
+DOWNLOAD="https://github.com/downloads/evgeni/tp_smapi/tp_smapi-0.41.tar.gz"
+MD5SUM="63c683415c764568f6bf17c7eabe4752"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Antonio Hernández Blas"
EMAIL="hba.nihilismus@gmail.com"
-APPROVED="rworkman"
+APPROVED="rworkman,Erik Hanson"