diff options
author | Yixun Lan <dlan@gentoo.org> | 2014-07-17 22:16:03 +0000 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2014-07-17 22:16:03 +0000 |
commit | 8f12cc860393a612ce1b2e2c52cdd71e2d48310e (patch) | |
tree | 24f722e6a85bb0ba29ebdd4a49d193e4da6f600a /sys-power | |
parent | EAPI bump. Undo patch that makes sys-libs/ncurses optional. Fix building agai... (diff) | |
download | gentoo-2-8f12cc860393a612ce1b2e2c52cdd71e2d48310e.tar.gz gentoo-2-8f12cc860393a612ce1b2e2c52cdd71e2d48310e.tar.bz2 gentoo-2-8f12cc860393a612ce1b2e2c52cdd71e2d48310e.zip |
bug 475992, initial version imported by me. thanks Maksim 'max_posedon' Melnikau, and cono
(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55)
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/thermald/ChangeLog | 11 | ||||
-rw-r--r-- | sys-power/thermald/Manifest | 5 | ||||
-rw-r--r-- | sys-power/thermald/files/thermald | 19 | ||||
-rw-r--r-- | sys-power/thermald/metadata.xml | 13 | ||||
-rw-r--r-- | sys-power/thermald/thermald-1.2.01.ebuild | 41 |
5 files changed, 89 insertions, 0 deletions
diff --git a/sys-power/thermald/ChangeLog b/sys-power/thermald/ChangeLog new file mode 100644 index 000000000000..153db68ca254 --- /dev/null +++ b/sys-power/thermald/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sys-power/thermald +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/thermald/ChangeLog,v 1.1 2014/07/17 22:16:03 dlan Exp $ + +*thermald-1.2.01 (17 Jul 2014) + + 17 Jul 2014; Yixun Lan <dlan@gentoo.org> +thermald-1.2.01.ebuild, + +files/thermald, +metadata.xml: + bug 475992, initial version imported by me. thanks Maksim 'max_posedon' + Melnikau, and cono + diff --git a/sys-power/thermald/Manifest b/sys-power/thermald/Manifest new file mode 100644 index 000000000000..3eff4ce0888e --- /dev/null +++ b/sys-power/thermald/Manifest @@ -0,0 +1,5 @@ +AUX thermald 373 SHA256 6431bd5039bf7b5691083735efa88a66bc52a6d16cf1260ccaa65eaf0569a68c SHA512 a2539d179797b939bbc04009370ae4acc82ed553a87bbba974e7371bfb426f97b41a2885e43e9de8fedaa9dabd5290d0dd1c7f1a533d94a7d8ab115af901b34d WHIRLPOOL 0fd1d7880b05ff756017ffd834eae7bcb576124fccdec63a347529cc539ab94736cf724f9932bc77a7cc78d868334a5f8fe79e47d05ba5535ceb90d6dde5cf09 +DIST thermald-1.2.01.tar.gz 68891 SHA256 14d80566a28e0406371e3e5b50fc339f9a6710a2c03acef9e722f0ddc93ebd6e SHA512 241dbaa20dcd7f00e3530857978a21d1a369bb018bd37333c6da6f01490fe1669247673de7e25a762120f5a498d43109cc6ac9e89c464bd97881a393b86297a3 WHIRLPOOL 6f945475e45517308418808d1b7bcb725c7daeb76561e024f3dd3888144389ccf2adfd032455a77043d2fdba11c7835cda28911b30a7edc8ddcbc3eb5c296011 +EBUILD thermald-1.2.01.ebuild 881 SHA256 7b74071cd441c865991d1d74b873553781789a5320fa871c9ccfc5e38c932c1a SHA512 da8890280a4a44fe5bf7b2bbe0d9c1ce091ad07768ce69445bf17df8fe1f7f332d0e58cb5969b38df05830907c2691ed1424224f8fe64cb3ba1271cb5ac13b5f WHIRLPOOL 7aabaebf65979e00a0aacb1d03f10cc8fb61ca36345f3088911b0f915ce81eb8624b88c4d00df380e70dff1f8b96e37cece9cfe4cf21b106894f8ce1169c45f6 +MISC ChangeLog 349 SHA256 043785b23dbd3bcfd33af34027ab46bafceb26720f978536d4a0868ffcdb1d4a SHA512 b917a6b1dd5078446b26f285aa65f86cef3b8081e274558bd37c934d0d392e866b9d5558bc735149a3c63b4651b74615661c2e9630d94e02244ff0612c72f395 WHIRLPOOL 48fb6bc5f74a000832bdb55ffa20acc61f4cf78f1b277d671e3900f5a43ca41cbd6bcdd4911a6c709854435ef10cb5604015e97d81b870b4f36b2f3a24234805 +MISC metadata.xml 537 SHA256 5ca3c9bfc0ab609c4a2ff381d25dc41bea8fb0e033b89e7dbbbf4cfdc5e1612c SHA512 02a0fe551280c241c2de61c0c38f8168bbaf19af92b9d0f37c8aa55212f1d29b4b71b9529ede31e570253c0846dbe401252f7c7aeb3f0aeb5273b014a0146e3a WHIRLPOOL 81f1ea187acdc115303cfffe3b8adcc8ecd81c65693e92538dcff33948aeef37a804f235e950cf494f91b50f8d8e397dcd55d140c8cb24a04ca9f961d27c94e5 diff --git a/sys-power/thermald/files/thermald b/sys-power/thermald/files/thermald new file mode 100644 index 000000000000..73643a27a686 --- /dev/null +++ b/sys-power/thermald/files/thermald @@ -0,0 +1,19 @@ +#!/sbin/runscript + +depend() { + need dbus + after logger +} + +start() { + ebegin "Starting thermald" + + start-stop-daemon --start --quiet --name thermald --exec /usr/sbin/thermald -- --dbus-enable + eend $? +} + +stop() { + ebegin "Stopping thermald" + /usr/bin/dbus-send --system --dest=org.freedesktop.thermald /org/freedesktop/thermald org.freedesktop.thermald.Terminate + eend $? +} diff --git a/sys-power/thermald/metadata.xml b/sys-power/thermald/metadata.xml new file mode 100644 index 000000000000..37b27d47070d --- /dev/null +++ b/sys-power/thermald/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> +<email>dlan@gentoo.org</email> +<name>Yixun Lan</name> +</maintainer> +<longdescription lang="en"> +Thermald is a Linux user mode daemon to system developers, reducing time to market with +controlled thermal management using P-states, T-states, and the Intel power clamp driver. +The Thermal Daemon uses the existing Linux kernel infrastructure and can be easily enhanced +</longdescription> +</pkgmetadata> diff --git a/sys-power/thermald/thermald-1.2.01.ebuild b/sys-power/thermald/thermald-1.2.01.ebuild new file mode 100644 index 000000000000..7d9ee35fdff4 --- /dev/null +++ b/sys-power/thermald/thermald-1.2.01.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/thermald/thermald-1.2.01.ebuild,v 1.1 2014/07/17 22:16:03 dlan Exp $ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 +inherit autotools-utils systemd + +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 -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" +S=${WORKDIR}/thermal_daemon-${PV} + +CDEPEND="dev-libs/dbus-glib + dev-libs/libxml2" +DEPEND="${CDEPEND} + sys-apps/sed" +RDEPEND="${CDEPEND}" + +DOCS=( thermal_daemon_usage.txt README.txt ) + +src_configure() { + local myeconfargs=( + --with-systemdsystemunitdir=$(systemd_get_unitdir) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + rm -rf "${D}"/etc/init || die + doinitd "${FILESDIR}"/thermald +} |