summaryrefslogtreecommitdiff
path: root/sys-kernel/tp_smapi-dkms
diff options
context:
space:
mode:
authorStefanCristian <steven.darklight@gmail.com>2016-10-26 00:37:55 +0000
committerStefanCristian <steven.darklight@gmail.com>2016-10-26 00:37:55 +0000
commitdb527c9ef0411fca9323e604c0aabeff0f3924fc (patch)
tree27061732481dbff26fa3ca3748efa3d1ee43e885 /sys-kernel/tp_smapi-dkms
parent6f59c25a6454b4604edaaa604bdaf344f08f5111 (diff)
Added tp_smapi stable dkms
Diffstat (limited to 'sys-kernel/tp_smapi-dkms')
-rw-r--r--sys-kernel/tp_smapi-dkms/Manifest1
-rw-r--r--sys-kernel/tp_smapi-dkms/files/dkms.conf9
-rw-r--r--sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.41.ebuild47
3 files changed, 57 insertions, 0 deletions
diff --git a/sys-kernel/tp_smapi-dkms/Manifest b/sys-kernel/tp_smapi-dkms/Manifest
new file mode 100644
index 00000000..425ca7eb
--- /dev/null
+++ b/sys-kernel/tp_smapi-dkms/Manifest
@@ -0,0 +1 @@
+DIST tp_smapi-0.41.tar.gz 38852 SHA256 6aef02b92d10360ac9be0db29ae390636be55017990063a092a285c70b54e666 SHA512 924a11cdf64bc151d069d4f61ca476cf006773291f363b21a80ce091f560a78c4828d2e522e646a5b133c58149a37cb5c2432a165e92e6980eb510b9488c728e WHIRLPOOL 10c74811148934a49b2d2b65cd65d366c58de03682c02d6b82694b4831634a25f2da9986b0493e28b372abf7ada692ee8ea85b2881b823b0cb7b35b73f348d6e
diff --git a/sys-kernel/tp_smapi-dkms/files/dkms.conf b/sys-kernel/tp_smapi-dkms/files/dkms.conf
new file mode 100644
index 00000000..4407eef0
--- /dev/null
+++ b/sys-kernel/tp_smapi-dkms/files/dkms.conf
@@ -0,0 +1,9 @@
+PACKAGE_NAME="tp_smapi-dkms"
+PACKAGE_VERSION="0.41"
+MAKE[0]="make KVER=$kernelver"
+MAKE[0]="make KV_FULL=$kernelver"
+BUILT_MODULE_NAME[0]="tp_smapi"
+DEST_MODULE_LOCATION[0]="/extra"
+BUILT_MODULE_NAME[1]="thinkpad_ec"
+DEST_MODULE_LOCATION[1]="/extra"
+AUTOINSTALL="YES"
diff --git a/sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.41.ebuild b/sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.41.ebuild
new file mode 100644
index 00000000..490948f7
--- /dev/null
+++ b/sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.41.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+MY_PN="tp_smapi"
+MY_P="${MY_PN}-${PVR}"
+DESCRIPTION="IBM ThinkPad SMAPI BIOS driver"
+HOMEPAGE="https://github.com/evgeni/tp_smapi/ http://tpctl.sourceforge.net/"
+SRC_URI="mirror://github/evgeni/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="sys-kernel/dkms"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+
+src_prepare(){
+ :
+}
+
+src_compile(){
+ :
+}
+
+src_install() {
+ cp "${FILESDIR}/dkms.conf" "${S}" || die
+ dodir /usr/src/${P}
+ insinto /usr/src/${P}
+ doins -r "${S}"/*
+}
+
+pkg_postinst() {
+ dkms add ${PN}/${PV}
+}
+
+pkg_prerm() {
+ dkms remove ${PN}/${PV} --all
+}