From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sys-power/thermald/Manifest | 13 +++++ sys-power/thermald/files/thermald | 19 +++++++ .../files/thermald-1.4.2-terminate-r1.patch | 65 ++++++++++++++++++++++ sys-power/thermald/metadata.xml | 16 ++++++ sys-power/thermald/thermald-1.4.2-r1.ebuild | 44 +++++++++++++++ sys-power/thermald/thermald-1.5.3.ebuild | 40 +++++++++++++ sys-power/thermald/thermald-1.5.4.ebuild | 40 +++++++++++++ sys-power/thermald/thermald-1.6.ebuild | 40 +++++++++++++ 8 files changed, 277 insertions(+) create mode 100644 sys-power/thermald/Manifest create mode 100644 sys-power/thermald/files/thermald create mode 100644 sys-power/thermald/files/thermald-1.4.2-terminate-r1.patch create mode 100644 sys-power/thermald/metadata.xml create mode 100644 sys-power/thermald/thermald-1.4.2-r1.ebuild create mode 100644 sys-power/thermald/thermald-1.5.3.ebuild create mode 100644 sys-power/thermald/thermald-1.5.4.ebuild create mode 100644 sys-power/thermald/thermald-1.6.ebuild (limited to 'sys-power/thermald') diff --git a/sys-power/thermald/Manifest b/sys-power/thermald/Manifest new file mode 100644 index 000000000000..c5b5a5ebf170 --- /dev/null +++ b/sys-power/thermald/Manifest @@ -0,0 +1,13 @@ +AUX thermald 374 SHA256 1a4839420ceb57830c2e9e0cf02a7eec95e5578e9bb6eb2d249ce9a1adb285ed SHA512 17f1c2133e47e897c4a5407ef622adfebb8498fce7ea9bf17cfd177269a3d869bdc21c3d2558010e9669ddc53e69e521bb4c1e112c51010168aa3c074c259e02 WHIRLPOOL 6cec3086ae2ea6225ebfcc25f4061744b59edfc9ebfbe94131cb661c7dcf1ca16508840701130a22a82d299c749ae83d8fe668d18de8b5cbbdde09e549a72299 +AUX thermald-1.4.2-terminate-r1.patch 1970 SHA256 0c5487bed104f17a915de38598de05f6259ea65a3dfe59c111daed9ae42ca549 SHA512 74e28bccacdf8b33b48991042a559858390bd551620700222655d33f682afec8445889733c1efda884377cc6d56d75f12d04010a33abecec088c57eb0111f77e WHIRLPOOL 42e073e4a8a3ca2da5b54478412b7a43253a0f2df61e0a8f11a2762f1d4e0435b7d04c4a48805594eee1a54da7e5907395dc539210b8e5f33e98cdb9ced1adc1 +DIST thermald-1.4.2.tar.gz 89080 SHA256 4be5e1105f8b24af17d19357eda97b6edd3d74284c3ee762060d487158997f8b SHA512 373620679df7db242770ae2b5c6e2b9015cfb480539889c43b8f20f52faa139ea307985c8f7369daf14c41d987f7c5af4baecc9dd460ef63556ac982eb4bcd47 WHIRLPOOL 6abde17fc60f30dda58935663084e53cbc26ba8b59bc058b3b6f8fc03af538d6f2e363d578fcbbfb38a02bf3cda0856abcb361fb63fd2e5ce0bc2c63a4d42484 +DIST thermald-1.5.3.tar.gz 335067 SHA256 e20b450ef27a5b5e45474c831663c8f5ecd14c82ace5a4b1e06c442e0a23b53e SHA512 aab4ade4dc50985cd5d45bcce6ea9b75cce22504eb113c86b8733c8be88a701c8812b8b0f3202f084a8128d50ec794ebe1c73312c0a5a5fd1dbc87eedf02df16 WHIRLPOOL 9b48d92fd677c1b327173cac114dd4bc4dbf86c29cc8ab929841342c7e4f7bf651fc03aebb140cce633095230222fac8302931cee8ab2c943beb816e816d9ca0 +DIST thermald-1.5.4.tar.gz 336768 SHA256 42f72fc32c84adcbb2ee6667645c2e1653cdc4f85963e6f72efd83517f7c29f0 SHA512 c23b4aabc59f11fe93074459d8343f587275771268d9c71c871da6bb46d8533a46ab9ac0b495c22771d9064288872abfd3180e3bc92dbe5842cff53046e543d6 WHIRLPOOL 7ad9588218c3b17433061f9a2218efcddc049d9f005177221c2b4bfbec045ca4b2ac2efb2b2b814ff382848390e0624cfcea61fa79c541030abe55e714abcb45 +DIST thermald-1.6.tar.gz 331682 SHA256 c63ae1b031f2b4ce037441e7e9910d05405b540fe6668e156d32c56d5dfa7492 SHA512 ddcd01dcd2f6b5666ffa16ba635734e4c146244b5df7c3f0deb8120f8ee7ebf1f4ee302d49db2b7e9a4950045650922977bd40bf6b38ccea9896f81e06df1d49 WHIRLPOOL 0e246c2e011ef40c07d9194d0bf481349a042dca806a0cf5e3e58a9c211cdac2d18641a87ecebfc78c41ea905683a7ac5f94ba4afeeccfb1ff6bb27e76855c09 +EBUILD thermald-1.4.2-r1.ebuild 920 SHA256 1f9edae494cd0a841b2a91187bf3e62d98f34a222512cf4896cf3ae88a0d016d SHA512 df876af934eaa953c597d720c7c7552cd7d171b6ee9f519405636b104550bc35d4028e5ecead51bdd16afc90cd0bcdfa0c6c8a003d3a54701c950bc8f2ab5bd1 WHIRLPOOL 60fd685ef0a061a335cf00f9c3650cdbe2ae0c39ccbf26167b66eaec4dd518ea8d72228e60e88fd6a38aaf91b0a4aaeb1819b9a153048f7377485ec36504d99a +EBUILD thermald-1.5.3.ebuild 868 SHA256 8ccb875ffde3a223331644eadc3e911c42e4d96bd29d84e9c6d9fef479d8ce52 SHA512 80bb3add8d1323d29a9028df94f47790c54fd9f786d3ca8e3c41b802e5b5d514538afea2960e731dc1ff3184e3e2dd4e5aa474a475e5b8b983e813236ee63047 WHIRLPOOL 0400ca12270cca70416382fcffadc0fda16e5e40424671b1f0989ea1593c08f7b82996b88e79719ba02be4da30463d6ab11fdab8daedc4351345b172d4432deb +EBUILD thermald-1.5.4.ebuild 868 SHA256 cd4b9aa6e69f2ecf0cbb92f4a80f2590cbe836e7a84abe62f6e1b7fa463bb70d SHA512 7d331bf20f8fa2f808045118d79a5cfded63292eee463dbb98a9f37de287405208661d90426166cab44df10d39ab9aee4865209834a8a8eb3860f0886a7b19d9 WHIRLPOOL 78884f8ddc0c031bf33c9be942e8743ef3130d301d0db663af5353f845ec17ee41fc61c00f36bcad6a4a1b477ed8e109f7c6c0467b426a5ed981355c33fea10b +EBUILD thermald-1.6.ebuild 868 SHA256 cd4b9aa6e69f2ecf0cbb92f4a80f2590cbe836e7a84abe62f6e1b7fa463bb70d SHA512 7d331bf20f8fa2f808045118d79a5cfded63292eee463dbb98a9f37de287405208661d90426166cab44df10d39ab9aee4865209834a8a8eb3860f0886a7b19d9 WHIRLPOOL 78884f8ddc0c031bf33c9be942e8743ef3130d301d0db663af5353f845ec17ee41fc61c00f36bcad6a4a1b477ed8e109f7c6c0467b426a5ed981355c33fea10b +MISC ChangeLog 2757 SHA256 c9358f676f48d0f8164d584b78e64b4b24d530aef860068253be2a25425c2e54 SHA512 f73554cfdd3922f33924559de963e533d1ca16feedb75bc249759da0d84c6b592674119667ae8e16a3140aaf41b626a2d24f23d2ec5ccc129de9b0836f1df4f7 WHIRLPOOL 0a5ef948fbf9dd9dab003bdac6c4427ef9f19fe7bae01b520b2f4dd71548ae09039e3b112d48685433ddc33b789474111ee6e045f201aac3b62704ffa07b06a9 +MISC ChangeLog-2015 1021 SHA256 2f484e2c570d92366c3566595af089aaf1886fd15a95f4b432d43c4c1f2b23be SHA512 81682b8e4a5b43f68bf1ddacd7e04f23648f72178d7834cc3066546b2b5dbcb0849d3d7defee14aa6bd10808ecc62e3da703df23d242e6739d05dac5899cddb2 WHIRLPOOL efd4eba3cbc74bb2b43cbfdace7d2177a941237c3b109ca5a1c2db2ac57e65fd376694edf057b521fd9391b82ee5e070665c0a1871a85ab3b67e41bc0b449745 +MISC metadata.xml 643 SHA256 562a5b717d084f29e5a3b6a9de0e7445cebbf38f2067cabae04462b26396b281 SHA512 bad363023e01da0232632d54b2cb65dce89a7c70441f05fc873640a29f6fd4ec4ea30b00f94f723a786de1eef87b94673dad455102bc57a11573346e3a8ae2e8 WHIRLPOOL cbbc0589c56ff2d6ae8995f0ca3549257a94f729c8aede51755ccf585b04b0ce219b727eed35512bea67261b38614adcd391cfe38160ec1cc047891534863657 diff --git a/sys-power/thermald/files/thermald b/sys-power/thermald/files/thermald new file mode 100644 index 000000000000..6d59f77d0bb4 --- /dev/null +++ b/sys-power/thermald/files/thermald @@ -0,0 +1,19 @@ +#!/sbin/openrc-run + +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/files/thermald-1.4.2-terminate-r1.patch b/sys-power/thermald/files/thermald-1.4.2-terminate-r1.patch new file mode 100644 index 000000000000..96ba91ffe5ec --- /dev/null +++ b/sys-power/thermald/files/thermald-1.4.2-terminate-r1.patch @@ -0,0 +1,65 @@ +commit 14bf458675a735975c6b9bf7394682e93398a8e0 +Author: Srinivas Pandruvada +Date: Tue Jul 14 17:46:45 2015 -0700 + + Fix regression in exit via dbus message + + Terminate via dbus terminate message is broken. Fixed this. + Thanks to Yixun Lan for finding this. + +diff --git a/src/main.cpp b/src/main.cpp +index 2cf4864..d692cf3 100644 +--- a/src/main.cpp ++++ b/src/main.cpp +@@ -50,7 +50,7 @@ + #define TD_DIST_VERSION PACKAGE_VERSION + #endif + +-extern int thd_dbus_server_init(); ++extern int thd_dbus_server_init(void (*exit_handler)(int)); + + // Default log level + static int thd_log_level = G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL +@@ -263,7 +263,7 @@ int main(int argc, char *argv[]) { + } + + if (dbus_enable) +- thd_dbus_server_init(); ++ thd_dbus_server_init(sig_int_handler); + + if (!no_daemon) { + printf("Ready to serve requests: Daemonizing.. %d\n", thd_daemonize); +diff --git a/src/thd_dbus_interface.cpp b/src/thd_dbus_interface.cpp +index 021bce2..7926101 100644 +--- a/src/thd_dbus_interface.cpp ++++ b/src/thd_dbus_interface.cpp +@@ -187,8 +187,12 @@ gboolean thd_dbus_interface_get_current_preference(PrefObject *obj, + return TRUE; + } + ++void (*thd_dbus_exit_callback)(int); + gboolean thd_dbus_interface_terminate(PrefObject *obj, GError **error) { + thd_engine->thd_engine_terminate(); ++ if (thd_dbus_exit_callback) ++ thd_dbus_exit_callback(0); ++ + return TRUE; + } + +@@ -561,13 +565,15 @@ gboolean thd_dbus_interface_get_sensor_temperature(PrefObject *obj, int index, + } + + // Setup dbus server +-int thd_dbus_server_init() { ++int thd_dbus_server_init(void (*exit_handler)(int)) { + DBusGConnection *bus; + DBusGProxy *bus_proxy; + GError *error = NULL; + guint result; + PrefObject *value_obj; + ++ thd_dbus_exit_callback = exit_handler; ++ + bus = dbus_g_bus_get(DBUS_BUS_SYSTEM, &error); + if (error != NULL) { + thd_log_error("Couldn't connect to session bus: %s:\n", error->message); diff --git a/sys-power/thermald/metadata.xml b/sys-power/thermald/metadata.xml new file mode 100644 index 000000000000..06e22a1b3827 --- /dev/null +++ b/sys-power/thermald/metadata.xml @@ -0,0 +1,16 @@ + + + + + dlan@gentoo.org + Yixun Lan + + +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 + + + 01org/thermal_daemon + + diff --git a/sys-power/thermald/thermald-1.4.2-r1.ebuild b/sys-power/thermald/thermald-1.4.2-r1.ebuild new file mode 100644 index 000000000000..29cd24743a93 --- /dev/null +++ b/sys-power/thermald/thermald-1.4.2-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 ) + +PATCHES=( + "${FILESDIR}/${P}-terminate-r1.patch" +) + +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 +} diff --git a/sys-power/thermald/thermald-1.5.3.ebuild b/sys-power/thermald/thermald-1.5.3.ebuild new file mode 100644 index 000000000000..d1751b531f21 --- /dev/null +++ b/sys-power/thermald/thermald-1.5.3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} diff --git a/sys-power/thermald/thermald-1.5.4.ebuild b/sys-power/thermald/thermald-1.5.4.ebuild new file mode 100644 index 000000000000..615c338aa4ac --- /dev/null +++ b/sys-power/thermald/thermald-1.5.4.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} diff --git a/sys-power/thermald/thermald-1.6.ebuild b/sys-power/thermald/thermald-1.6.ebuild new file mode 100644 index 000000000000..615c338aa4ac --- /dev/null +++ b/sys-power/thermald/thermald-1.6.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} -- cgit v1.2.3