summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-laptop/tp_smapi/Manifest1
-rw-r--r--app-laptop/tp_smapi/tp_smapi-0.41-r10000.ebuild27
-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
5 files changed, 85 insertions, 0 deletions
diff --git a/app-laptop/tp_smapi/Manifest b/app-laptop/tp_smapi/Manifest
new file mode 100644
index 00000000..425ca7eb
--- /dev/null
+++ b/app-laptop/tp_smapi/Manifest
@@ -0,0 +1 @@
+DIST tp_smapi-0.41.tar.gz 38852 SHA256 6aef02b92d10360ac9be0db29ae390636be55017990063a092a285c70b54e666 SHA512 924a11cdf64bc151d069d4f61ca476cf006773291f363b21a80ce091f560a78c4828d2e522e646a5b133c58149a37cb5c2432a165e92e6980eb510b9488c728e WHIRLPOOL 10c74811148934a49b2d2b65cd65d366c58de03682c02d6b82694b4831634a25f2da9986b0493e28b372abf7ada692ee8ea85b2881b823b0cb7b35b73f348d6e
diff --git a/app-laptop/tp_smapi/tp_smapi-0.41-r10000.ebuild b/app-laptop/tp_smapi/tp_smapi-0.41-r10000.ebuild
new file mode 100644
index 00000000..48cce801
--- /dev/null
+++ b/app-laptop/tp_smapi/tp_smapi-0.41-r10000.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="IBM ThinkPad SMAPI BIOS driver dummy package"
+HOMEPAGE="https://github.com/evgeni/tp_smapi/ http://tpctl.sourceforge.net/"
+SRC_URI="mirror://github/evgeni/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="=sys-kernel/${PN}-dkms-${PV}"
+RDEPEND="${DEPEND}"
+
+src_compile(){
+ :
+}
+
+src_install() {
+ :
+}
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..079aaab6
--- /dev/null
+++ b/sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.41.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 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
+}