summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Cristian B. <steven.darklight@gmail.com>2015-02-24 10:15:54 +0200
committerStefan Cristian B. <steven.darklight@gmail.com>2015-02-24 10:15:54 +0200
commit3b868ae4f83138f5eef7851a18320d4dcfb10714 (patch)
tree9c0ddb9ea980cf1ab4c9f2aeb23bd63d8db7e51d
parent24a03037d88d397633a894fca0bee081de333fad (diff)
parent21a45d8f5daa38fe5a26e6c2a425a32d71a65137 (diff)
Merge pull request #32 from crismblog/master
Add Intel Thermald
-rw-r--r--sys-power/Manifest2
-rw-r--r--sys-power/files/thermald20
-rw-r--r--sys-power/intel-thermald-1.04.ebuild36
-rw-r--r--sys-power/intel-thermald-1.2.01.ebuild36
4 files changed, 94 insertions, 0 deletions
diff --git a/sys-power/Manifest b/sys-power/Manifest
new file mode 100644
index 00000000..24d9a261
--- /dev/null
+++ b/sys-power/Manifest
@@ -0,0 +1,2 @@
+DIST thermal_daemon-1.04.tar.gz 762947 SHA256 539ac34253e707daf15a60fd71544311d6081bd67f5f07735e9ce0562f9469da SHA512 15935e9bfbfe690168d598b133f7925a5ad48dee4747c1cd4e558a26b1b066eff1d48e45b33a7dfa6eee2a8634d8a6f0dd05e71acb2d02c848c4eb10225dad1f WHIRLPOOL aee26d718fc3b43f24a23976d60e5c5568d91ee8e8ee28760dcf445d5af0b328ea795b552dc268511275b5af7d94653e28fc6a1884807fb4822eaea273c07ebd
+DIST thermal_daemon-1.2.01.tar.gz 68891 SHA256 14d80566a28e0406371e3e5b50fc339f9a6710a2c03acef9e722f0ddc93ebd6e SHA512 241dbaa20dcd7f00e3530857978a21d1a369bb018bd37333c6da6f01490fe1669247673de7e25a762120f5a498d43109cc6ac9e89c464bd97881a393b86297a3 WHIRLPOOL 6f945475e45517308418808d1b7bcb725c7daeb76561e024f3dd3888144389ccf2adfd032455a77043d2fdba11c7835cda28911b30a7edc8ddcbc3eb5c296011
diff --git a/sys-power/files/thermald b/sys-power/files/thermald
new file mode 100644
index 00000000..6857f60f
--- /dev/null
+++ b/sys-power/files/thermald
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/bin/thermald"
+command_args="--dbus-enable"
+start_stop_daemon_args="--quiet"
+
+
+# start() {
+# ebegin "Starting thermald"
+#
+# start-stop-daemon --start --quiet /usr/bin/thermald --no-daemon --dbus-enable
+# }
+#
+# stop() {
+# ebegin "Stopping thermald"
+# start-stop-daemon --stop --quiet --pidfile "${DISTCCD_PIDFILE}"
+# eend $?
+# } \ No newline at end of file
diff --git a/sys-power/intel-thermald-1.04.ebuild b/sys-power/intel-thermald-1.04.ebuild
new file mode 100644
index 00000000..23256f0f
--- /dev/null
+++ b/sys-power/intel-thermald-1.04.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit systemd autotools
+
+DESCRIPTION="Thermal daemon for Intel architectures"
+HOMEPAGE="https://01.org/linux-thermal-daemon"
+SRC_URI="https://github.com/01org/thermal_daemon/archive/v${PV}.tar.gz -> thermal_daemon-${PV}.tar.gz"
+
+LICENSE="GPL2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+S=${WORKDIR}/thermal_daemon-${PV}
+
+DEPEND="dev-libs/dbus-glib
+ dev-libs/libxml2"
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ econf --with-systemdsystemunitdir=$(systemd_get_unitdir)
+}
+
+src_install() {
+ default
+
+ dobin tools/thermald_set_pref.sh
+ doinitd "${FILESDIR}/thermald"
+}
diff --git a/sys-power/intel-thermald-1.2.01.ebuild b/sys-power/intel-thermald-1.2.01.ebuild
new file mode 100644
index 00000000..6bb1a79a
--- /dev/null
+++ b/sys-power/intel-thermald-1.2.01.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit systemd autotools
+
+DESCRIPTION="Thermal daemon for Intel architectures"
+HOMEPAGE="https://01.org/linux-thermal-daemon"
+SRC_URI="https://github.com/01org/thermal_daemon/archive/v${PV}.tar.gz -> thermal_daemon-${PV}.tar.gz"
+
+LICENSE="GPL2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+S=${WORKDIR}/thermal_daemon-${PV}
+
+DEPEND="dev-libs/dbus-glib
+ dev-libs/libxml2"
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ econf --with-systemdsystemunitdir=$(systemd_get_unitdir)
+}
+
+src_install() {
+ default
+
+ dobin tools/thermald_set_pref.sh
+ doinitd "${FILESDIR}/thermald"
+}