1 |
commit: 29e6cf72101e6b8e4c4cf3731f196044002ac37b |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 23 13:13:11 2022 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 23 13:13:56 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29e6cf72 |
7 |
|
8 |
sys-power/thermald: add 2.5.1 |
9 |
|
10 |
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org> |
11 |
|
12 |
sys-power/thermald/Manifest | 1 + |
13 |
sys-power/thermald/thermald-2.5.1.ebuild | 54 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 55 insertions(+) |
15 |
|
16 |
diff --git a/sys-power/thermald/Manifest b/sys-power/thermald/Manifest |
17 |
index b26f4898d31a..b57bee2aa716 100644 |
18 |
--- a/sys-power/thermald/Manifest |
19 |
+++ b/sys-power/thermald/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST thermald-2.4.9.tar.gz 144780 BLAKE2B 92eb36c19608c454336d8cf709a1650d5853ca3884c0a99d2371ee5e5d749e1b9cc10eab9a9382e2c43dd7d424d58263de9333aa223902714f8794545a0034bd SHA512 801508cf1d6215fdb40730418d2302469ad88fe4456d6f3f99e8695286b86b5b9ee6c90184cff4ff843e0811451cf96afe15478002cba0b25cda4fe8bdb17de5 |
22 |
+DIST thermald-2.5.1.tar.gz 160908 BLAKE2B 546d540b53365f9f57059dd74378226ba111abdd0bf9a47a2b81b29726cf2b2d99bfdf166f6b50f30071d28c6fad00d84f48e83f886ec8e50f9f08989b28192a SHA512 76974458b3986cb156ee599e9a96be0082f1e4d85cfe40fd387d69992b0b778186b98abb833a0493db9c070feee8c1147dcf591a7aba039c428e925c66bb0e4f |
23 |
DIST thermald-2.5.tar.gz 160338 BLAKE2B df7004cdd9f0a36479f7d8c129338ac9b2fd3b4deca188ef3568336c448f563460ca74203384694f37a29fd7ba71b52d356f861d28313e52b443a81557ea406e SHA512 0112d1648c6eed127c83eecb69ac5dcd56614dc485a9d54cd14d6506ad1c48c80880b1d3498258d65a0435220ef3ad3f7ddaa1f5a6f9595c9b56e14d71629390 |
24 |
|
25 |
diff --git a/sys-power/thermald/thermald-2.5.1.ebuild b/sys-power/thermald/thermald-2.5.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..0bee30caf643 |
28 |
--- /dev/null |
29 |
+++ b/sys-power/thermald/thermald-2.5.1.ebuild |
30 |
@@ -0,0 +1,54 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+inherit autotools out-of-source systemd |
37 |
+ |
38 |
+DESCRIPTION="Thermal daemon for Intel architectures" |
39 |
+HOMEPAGE="https://github.com/intel/thermal_daemon" |
40 |
+SRC_URI="https://github.com/intel/thermal_daemon/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="GPL-2+" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+IUSE="" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ dev-libs/dbus-glib:= |
49 |
+ dev-libs/glib:= |
50 |
+ dev-libs/libxml2:= |
51 |
+ dev-libs/libevdev |
52 |
+ sys-power/upower |
53 |
+ sys-apps/dbus:=" |
54 |
+DEPEND="${RDEPEND} |
55 |
+ dev-util/gtk-doc |
56 |
+ dev-util/glib-utils" |
57 |
+ |
58 |
+S=${WORKDIR}/thermal_daemon-${PV} |
59 |
+DOCS=( thermal_daemon_usage.txt README.txt ) |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ sed -i -e "/group=/s/power/wheel/g" \ |
63 |
+ data/org.freedesktop.thermald.conf || die |
64 |
+ |
65 |
+ sed -i -e '/tdrundir/s@\$localstatedir/run@\$runstatedir@' \ |
66 |
+ configure.ac || die |
67 |
+ |
68 |
+ default |
69 |
+ eautoreconf |
70 |
+} |
71 |
+ |
72 |
+my_src_configure() { |
73 |
+ ECONF_SOURCE="${S}" econf \ |
74 |
+ --disable-werror \ |
75 |
+ --runstatedir="${EPREFIX}"/run \ |
76 |
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
77 |
+} |
78 |
+ |
79 |
+my_src_install_all() { |
80 |
+ einstalldocs |
81 |
+ |
82 |
+ rm -rf "${ED}"/etc/init || die |
83 |
+ doinitd "${FILESDIR}"/thermald |
84 |
+} |