diff options
author | 2008-03-21 23:30:00 -0700 | |
---|---|---|
committer | 2008-03-21 23:30:00 -0700 | |
commit | b10a94318335678c05ede9d5c282ee40f0b7dd10 (patch) | |
tree | 5810f9b723519682f7bd5face57d7bd0fa1fd5b5 /app-laptop | |
parent | theseus: bump to 1.2.7 (diff) | |
download | dberkholz-b10a94318335678c05ede9d5c282ee40f0b7dd10.tar.gz dberkholz-b10a94318335678c05ede9d5c282ee40f0b7dd10.tar.bz2 dberkholz-b10a94318335678c05ede9d5c282ee40f0b7dd10.zip |
tp_smapi: Add patch for 2.6.25 compatibility (removal of cdev).
Diffstat (limited to 'app-laptop')
-rw-r--r-- | app-laptop/tp_smapi/ChangeLog | 99 | ||||
-rw-r--r-- | app-laptop/tp_smapi/Manifest | 5 | ||||
-rw-r--r-- | app-laptop/tp_smapi/files/0.33-remove-cdev.patch | 19 | ||||
-rw-r--r-- | app-laptop/tp_smapi/metadata.xml | 9 | ||||
-rw-r--r-- | app-laptop/tp_smapi/tp_smapi-0.33.ebuild | 57 |
5 files changed, 189 insertions, 0 deletions
diff --git a/app-laptop/tp_smapi/ChangeLog b/app-laptop/tp_smapi/ChangeLog new file mode 100644 index 0000000..7c7b3c9 --- /dev/null +++ b/app-laptop/tp_smapi/ChangeLog @@ -0,0 +1,99 @@ +# ChangeLog for app-laptop/tp_smapi +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/tp_smapi/ChangeLog,v 1.23 2007/12/31 18:30:43 welp Exp $ + +*tp_smapi-0.33 (31 Dec 2007) + + 31 Dec 2007; <welp@gentoo.org> +tp_smapi-0.33.ebuild: + Bump, bug 203892 + +*tp_smapi-0.32 (16 Nov 2007) + + 16 Nov 2007; <welp@gentoo.org> metadata.xml, +tp_smapi-0.32.ebuild: + Update metadata.xml, bump ebuild wrt bug 187316 + + 10 Oct 2007; Dawid Węgliński <cla@gentoo.org> tp_smapi-0.31.ebuild: + Stable on x86 for bug 195379 + + 26 Apr 2007; Saleem Abdulrasool <compnerd@gentoo.org> + tp_smapi-0.31.ebuild: + keyword ~amd64 + +*tp_smapi-0.31 (20 Apr 2007) + + 20 Apr 2007; Tony Vroon <chainsaw@gentoo.org> +tp_smapi-0.31.ebuild: + Version bump, closes bug #170106. + + 29 Dec 2006; Stefan Schweizer <genstef@gentoo.org> tp_smapi-0.30.ebuild: + Fix for wrong kernel source in bug 159039 for jkt and uberlord + +*tp_smapi-0.30 (05 Dec 2006) + + 05 Dec 2006; Roy Marples <uberlord@gentoo.org> +tp_smapi-0.30.ebuild: + New version, fixes #157185 thanks to Anton. + +*tp_smapi-0.27 (14 Aug 2006) + + 14 Aug 2006; Roy Marples <uberlord@gentoo.org> +tp_smapi-0.27.ebuild: + Version bump, #143821 thanks to Anton Bolshakov. + + 26 Jun 2006; Henrik Brix Andersen <brix@gentoo.org> tp_smapi-0.20.ebuild: + Stable on x86. + +*tp_smapi-0.21 (21 Jun 2006) + + 21 Jun 2006; Henrik Brix Andersen <brix@gentoo.org> +tp_smapi-0.21.ebuild: + Version bump. + + 28 May 2006; Henrik Brix Andersen <brix@gentoo.org> tp_smapi-0.19.ebuild: + Stable on x86. + +*tp_smapi-0.20 (27 May 2006) + + 27 May 2006; Henrik Brix Andersen <brix@gentoo.org> +tp_smapi-0.20.ebuild: + Version bump, thanks to Anton in bug #132519. + +*tp_smapi-0.19 (14 Apr 2006) + + 14 Apr 2006; Henrik Brix Andersen <brix@gentoo.org> +tp_smapi-0.19.ebuild: + Version bump, bug #128863. + + 19 Mar 2006; Henrik Brix Andersen <brix@gentoo.org> -tp_smapi-0.09.ebuild, + -tp_smapi-0.10.ebuild, -tp_smapi-0.12.ebuild, -tp_smapi-0.13.ebuild, + -tp_smapi-0.16.ebuild: + Pruned old ebuilds. + + 15 Mar 2006; Henrik Brix Andersen <brix@gentoo.org> tp_smapi-0.17.ebuild: + Stable on x86. + +*tp_smapi-0.17 (17 Feb 2006) + + 17 Feb 2006; Henrik Brix Andersen <brix@gentoo.org> +tp_smapi-0.17.ebuild: + Version bump, bug #122459. + +*tp_smapi-0.16 (15 Jan 2006) + + 15 Jan 2006; Henrik Brix Andersen <brix@gentoo.org> +tp_smapi-0.16.ebuild: + Version bump, bug #118979. + +*tp_smapi-0.13 (28 Dec 2005) + + 28 Dec 2005; Henrik Brix Andersen <brix@gentoo.org> +tp_smapi-0.13.ebuild: + Version bump. + +*tp_smapi-0.12 (17 Dec 2005) + + 17 Dec 2005; Henrik Brix Andersen <brix@gentoo.org> +tp_smapi-0.12.ebuild: + Version bump, bug #115766. + +*tp_smapi-0.10 (14 Dec 2005) + + 14 Dec 2005; Henrik Brix Andersen <brix@gentoo.org> +tp_smapi-0.10.ebuild: + Version bump. + +*tp_smapi-0.09 (13 Dec 2005) + + 13 Dec 2005; Henrik Brix Andersen <brix@gentoo.org> +metadata.xml, + +tp_smapi-0.09.ebuild: + Initial import. + diff --git a/app-laptop/tp_smapi/Manifest b/app-laptop/tp_smapi/Manifest new file mode 100644 index 0000000..f1d2b36 --- /dev/null +++ b/app-laptop/tp_smapi/Manifest @@ -0,0 +1,5 @@ +AUX 0.33-remove-cdev.patch 871 RMD160 aa03041890a2ff70587fd6db4d89076fda4f6699 SHA1 577f8e793fb5a25c74ea4b4991e571d6f7cc90e9 SHA256 ebd1531b3a99af67a95180a1d2f5b8d7c17129999ef4626da86c662ee9f1d702 +DIST tp_smapi-0.33.tgz 36407 RMD160 20be782d2b8e684867177c3f8617c5971277225c SHA1 2253f8e95bda1ae003443ab6e12588a35d5b9559 SHA256 715d8e234f60814a98756062a02cdf922445d806093fbb1ca6af8be402169d81 +EBUILD tp_smapi-0.33.ebuild 1213 RMD160 c90686f2662d11e7ca4c628d80c3eb7049dad695 SHA1 9367db9fc0ad90de90e1727646df57eee65ce88e SHA256 39313f39320f42ca1fff354aaa65e5a4a48270af1319df8256c96d7dd062b9e9 +MISC ChangeLog 2948 RMD160 25dca704075bb5b7183220bdf7c4c7412b7559f3 SHA1 7df385e3ff69efb387e463c6ca009b42fb81c710 SHA256 04f62e34a0f540c9a7224f076b5b29fb0ff77fe4940cf879b99633eda70db4bb +MISC metadata.xml 247 RMD160 b3f1fa5b78abd67407da3071742319c07697ef8f SHA1 f44979eefe1314886e71e3796ecc964f2f86ef62 SHA256 7cb16124facba1f3e602873bd816878fa6f052500dd007e308c187f916e7e01f diff --git a/app-laptop/tp_smapi/files/0.33-remove-cdev.patch b/app-laptop/tp_smapi/files/0.33-remove-cdev.patch new file mode 100644 index 0000000..69445e6 --- /dev/null +++ b/app-laptop/tp_smapi/files/0.33-remove-cdev.patch @@ -0,0 +1,19 @@ +diff -urN tp_smapi-0.33.orig/hdaps.c tp_smapi-0.33/hdaps.c +--- tp_smapi-0.33.orig/hdaps.c 2008-03-12 00:42:20.000000000 -0700 ++++ tp_smapi-0.33/hdaps.c 2008-03-12 00:43:30.000000000 -0700 +@@ -827,7 +827,6 @@ + hdaps_idev->id.vendor = HDAPS_INPUT_VENDOR; + hdaps_idev->id.product = HDAPS_INPUT_PRODUCT; + hdaps_idev->id.version = HDAPS_INPUT_JS_VERSION; +- hdaps_idev->cdev.dev = &pdev->dev; + hdaps_idev->evbit[0] = BIT(EV_ABS); + hdaps_idev->open = hdaps_mousedev_open; + hdaps_idev->close = hdaps_mousedev_close; +@@ -847,7 +846,6 @@ + hdaps_idev_raw->id.vendor = HDAPS_INPUT_VENDOR; + hdaps_idev_raw->id.product = HDAPS_INPUT_PRODUCT; + hdaps_idev_raw->id.version = HDAPS_INPUT_RAW_VERSION; +- hdaps_idev_raw->cdev.dev = &pdev->dev; + hdaps_idev_raw->evbit[0] = BIT(EV_ABS); + hdaps_idev_raw->open = hdaps_mousedev_open; + hdaps_idev_raw->close = hdaps_mousedev_close; diff --git a/app-laptop/tp_smapi/metadata.xml b/app-laptop/tp_smapi/metadata.xml new file mode 100644 index 0000000..d391ed0 --- /dev/null +++ b/app-laptop/tp_smapi/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>mobile</herd> +<maintainer> + <email>welp@gentoo.org</email> + <name>Peter Weller</name> +</maintainer> +</pkgmetadata> diff --git a/app-laptop/tp_smapi/tp_smapi-0.33.ebuild b/app-laptop/tp_smapi/tp_smapi-0.33.ebuild new file mode 100644 index 0000000..b2decff --- /dev/null +++ b/app-laptop/tp_smapi/tp_smapi-0.33.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/tp_smapi/tp_smapi-0.33.ebuild,v 1.1 2007/12/31 18:30:43 welp Exp $ + +inherit linux-mod + +DESCRIPTION="IBM ThinkPad SMAPI BIOS driver" +HOMEPAGE="http://tpctl.sourceforge.net/" +SRC_URI="mirror://sourceforge/tpctl/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="hdaps" + +RESTRICT="userpriv" + +# We need dmideode if the kernel does not support DMI_DEV_TYPE_OEM_STRING +# in dmi.h +DEPEND="sys-apps/dmidecode" + +pkg_setup() { + linux-mod_pkg_setup + + if kernel_is lt 2 6 19; then + eerror + eerror "${P} requires Linux kernel 2.6.19 or above." + eerror + die "Unsupported kernel version" + fi + + MODULE_NAMES="thinkpad_ec(extra:) tp_smapi(extra:)" + BUILD_PARAMS="KSRC=${KV_DIR} KBUILD=${KV_DIR}" + BUILD_TARGETS="default" + + if use hdaps; then + MODULE_NAMES="${MODULE_NAMES} hdaps(extra:)" + BUILD_PARAMS="${BUILD_PARAMS} HDAPS=1" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/0.33-remove-cdev.patch + + # Remove usage of `sudo` in Makefile. + sed -i 's,sudo ,,' Makefile +} + +src_install() { + linux-mod_src_install + + dodoc CHANGES README +} |