1 |
commit: 39b92753f99a1d6f24c11757cd67e39b8c5e02d8 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 27 01:46:17 2021 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 27 01:46:27 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39b92753 |
7 |
|
8 |
sys-power/cpupower: add 5.12 |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/22108 |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
sys-power/cpupower/Manifest | 1 + |
14 |
sys-power/cpupower/cpupower-5.12.ebuild | 66 +++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 67 insertions(+) |
16 |
|
17 |
diff --git a/sys-power/cpupower/Manifest b/sys-power/cpupower/Manifest |
18 |
index f23592fdec5..aa084c78ff1 100644 |
19 |
--- a/sys-power/cpupower/Manifest |
20 |
+++ b/sys-power/cpupower/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
+DIST linux-5.12.tar.xz 118112412 BLAKE2B 842d921b9a73d2aaade763dbd2ec67bdfe0275baa6d628b775f5c87574ad7dc86f0419afcd48c10c1235f4bffa16084243f2cf4556e6afcd391e975fe8ba530b SHA512 be03b6fee1d1ea8087b09874d27c0a602c0b04fd90ad38b975bd2c8455a07e83c29b56814aaf1389e82305fae0e4c2d1701075a7f0a7295dd28149f967ec5b3d |
23 |
DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f |
24 |
|
25 |
diff --git a/sys-power/cpupower/cpupower-5.12.ebuild b/sys-power/cpupower/cpupower-5.12.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..1676159b939 |
28 |
--- /dev/null |
29 |
+++ b/sys-power/cpupower/cpupower-5.12.ebuild |
30 |
@@ -0,0 +1,66 @@ |
31 |
+# Copyright 2013-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit systemd toolchain-funcs |
37 |
+ |
38 |
+DESCRIPTION="Shows and sets processor power related values" |
39 |
+HOMEPAGE="https://www.kernel.org/" |
40 |
+SRC_URI="https://cdn.kernel.org/pub/linux/kernel/v${PV%%.*}.x/linux-${PV}.tar.xz" |
41 |
+ |
42 |
+LICENSE="GPL-2" |
43 |
+SLOT="0/0" |
44 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" |
45 |
+IUSE="nls" |
46 |
+ |
47 |
+# File collision w/ headers of the deprecated cpufrequtils |
48 |
+RDEPEND="sys-apps/pciutils" |
49 |
+DEPEND="${RDEPEND} |
50 |
+ virtual/os-headers |
51 |
+ nls? ( sys-devel/gettext )" |
52 |
+ |
53 |
+PATCHES=( |
54 |
+ "${FILESDIR}/cpupower-5.4-cflags.patch" |
55 |
+) |
56 |
+ |
57 |
+S="${WORKDIR}/linux-${PV}" |
58 |
+ |
59 |
+src_configure() { |
60 |
+ export bindir="${EPREFIX}/usr/bin" |
61 |
+ export sbindir="${EPREFIX}/usr/sbin" |
62 |
+ export mandir="${EPREFIX}/usr/share/man" |
63 |
+ export includedir="${EPREFIX}/usr/include" |
64 |
+ export libdir="${EPREFIX}/usr/$(get_libdir)" |
65 |
+ export localedir="${EPREFIX}/usr/share/locale" |
66 |
+ export docdir="${EPREFIX}/usr/share/doc/${PF}" |
67 |
+ export confdir="${EPREFIX}/etc" |
68 |
+ export bash_completion_dir="${EPREFIX}/usr/share/bash-completion/completions" |
69 |
+ export V=1 |
70 |
+ export NLS=$(usex nls true false) |
71 |
+} |
72 |
+ |
73 |
+src_compile() { |
74 |
+ myemakeargs=( |
75 |
+ AR="$(tc-getAR)" |
76 |
+ CC="$(tc-getCC)" |
77 |
+ LD="$(tc-getCC)" |
78 |
+ VERSION=${PV} |
79 |
+ ) |
80 |
+ |
81 |
+ cd tools/power/cpupower || die |
82 |
+ emake "${myemakeargs[@]}" |
83 |
+} |
84 |
+ |
85 |
+src_install() { |
86 |
+ cd tools/power/cpupower || die |
87 |
+ emake "${myemakeargs[@]}" DESTDIR="${D}" install |
88 |
+ doheader lib/cpupower.h |
89 |
+ einstalldocs |
90 |
+ |
91 |
+ newconfd "${FILESDIR}"/conf.d-r2 cpupower |
92 |
+ newinitd "${FILESDIR}"/init.d-r4 cpupower |
93 |
+ |
94 |
+ systemd_dounit "${FILESDIR}"/cpupower-frequency-set.service |
95 |
+ systemd_install_serviced "${FILESDIR}"/cpupower-frequency-set.service.conf |
96 |
+} |