diff options
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/Manifest.gz | bin | 5062 -> 5058 bytes | |||
-rw-r--r-- | sys-power/powertop/Manifest | 4 | ||||
-rw-r--r-- | sys-power/powertop/powertop-2.15.ebuild | 113 | ||||
-rw-r--r-- | sys-power/powertop/powertop-9999.ebuild | 4 |
4 files changed, 118 insertions, 3 deletions
diff --git a/sys-power/Manifest.gz b/sys-power/Manifest.gz Binary files differindex fbc76088eb57..90cd708933e8 100644 --- a/sys-power/Manifest.gz +++ b/sys-power/Manifest.gz diff --git a/sys-power/powertop/Manifest b/sys-power/powertop/Manifest index 7455a24a7b44..cabbe195f9bb 100644 --- a/sys-power/powertop/Manifest +++ b/sys-power/powertop/Manifest @@ -2,6 +2,8 @@ AUX 2.14-Revert-configure-Remove-AX-macros-from-configure.ac-.patch 1577 BLAKE2B AUX 2.14-configure-Use-AX_REQUIRE_DEFINED.patch 793 BLAKE2B 51db7bdae6443e76ae44aa87aa664763c036d5ec4ed476adba5ae4c9073bb740131b81cee68e86394aeb3eaa649e72371ab86c71e8e3cea4cfb023d4199f2a7c SHA512 8ce08ef7d561d670ac741b88896189745076d678f14fab8d5ad135980cf2f9e18098bae77ee932c735f6767353221ba33e4cf3417d87ff1ce78f01260d0cbd47 AUX powertop-2.8-ncurses_tinfo.patch 1385 BLAKE2B 1b11138ae9c8fc90236b421d733f8cf0edff843572cfbfececba0efed5dd2a154ca561692b42e087a1c75bc19966b71fde241a029f16b126074b7d857e8c4bf5 SHA512 f1f483c43355fc1c52d0d7b9ca8e01f71c371e4e77c275584afc9f7178985e0028d42ed675adc52a1ea014325c5aaaafe245fa9166c14326cf467bd92c274522 DIST powertop-2.14.tar.gz 302578 BLAKE2B 5f53f81b01e83004f6436f497818d2a552b5e7ffda5007749aad415773adeab2a256aeffbacbf9e5fe803ff343a0c1954b5264aebdffa841bb70406b8b9611bc SHA512 f3e25901fb29405e0c8016643855a209cf9dba589fe9dd3e27c291d44699cebeb00dc8c7264c24436db08deb496759bd106666cb52d9ebd5f831bbb99e30f20f +DIST powertop-2.15.tar.gz 302891 BLAKE2B f554ee9499c78f1888ecd58a1a357bc6f29f53ae2d3bf6b2819d760afe901f5d5394665a2e6a3ecae9b48cbf9703532feb5c16da9bd3edd4f1d31fe12610a2da SHA512 de4ca3ea25697d2cd5f05c41c82c326ad3e2d21cbf38ddb9b3af40c0d862a70781ca45d9ef7b735ad6def0cb580e4fa153eb4a6e6598e204fc931b30d85ecf41 EBUILD powertop-2.14.ebuild 3703 BLAKE2B 5c4be1b430cded2f8dda01f51b28df7983a8d51887c217e4b4f86cb206f1feb220cc52a201a88cd63093bd3144145285d127703aaed9c1e4d32336bb711326a8 SHA512 bd37cd2ff50ae7a78089ef94ccd9cc06e6308d82e474b402c43055c44df9755abc22e3ebba75fce7506c8d8ce2b247295b3649278513c1822d24a214e4aab827 -EBUILD powertop-9999.ebuild 3510 BLAKE2B 42b8048f45e6c77fc2551f89a096c33e88be620b8559e65c6ea0dc5966c63cfd48756e7ed4aee217e4784e36d50d060b337f4223210c9abb695de4550bee4963 SHA512 ac9c788c0c0ac5107eecee6134ca94ecdc222f7be8b97a6e5522e76ca9a1faf505277dd8c558a8b5fc384ceccd381069016c1866dcfedb4726a53d1ce7e0b649 +EBUILD powertop-2.15.ebuild 3568 BLAKE2B d327d6372bec2d08defb603892c8e280a20f6351a8df41afade41b1f398e459434a83f66bde983a5c060ee5d80331d3846055e9376045b3b5da6c194fa7e13a1 SHA512 ff4b2fb3fccfca6eb6ed2f55bddcc9a7240f13cdc0c6da5e4cf8adf5d7b999fe8f3bad43ec40f750f68db55b2ead1742b7d3257d944a5a63ba47fc98fe4ed6bf +EBUILD powertop-9999.ebuild 3510 BLAKE2B 1a7de71ba7c00397381b03f3147311145c92c0a7ad72b827202d787c2348779528fedec71d98fc3e9a4b096f766f96f096bad971701551071243fc8cf498039b SHA512 0d5ffd9d19af1efc123cd6e6dd13a23baa64c42589729753da2a42ea02fc1ce253e93e5c207a64d2c5054a32811a4e0b32d071013586733b54d78b91a933b905 MISC metadata.xml 329 BLAKE2B 36e2978d4bf67578b4b7f91394698392a26706d5192ce83091c904255009dee966e58b7b10e92b23852a304f870b866f46904d0ea118efa1b192b467aff71511 SHA512 5621a5cdf201d058b65bcb4c4afea6b8bb3ef7d7fb67fc9c582f5d728b19693883493255e485e90aaa06a18ceb6bde55f6bd099f1be454be3bad762be7ff5843 diff --git a/sys-power/powertop/powertop-2.15.ebuild b/sys-power/powertop/powertop-2.15.ebuild new file mode 100644 index 000000000000..4398073e6d2e --- /dev/null +++ b/sys-power/powertop/powertop-2.15.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +EGIT_REPO_URI="https://github.com/fenrus75/powertop.git" + +if [[ ${PV} == "9999" ]] ; then + GIT_ECLASS="git-r3" + SRC_URI="" +else + SRC_URI="https://github.com/fenrus75/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +inherit autotools ${GIT_ECLASS} linux-info + +DESCRIPTION="tool to diagnose issues with power consumption and power management" +HOMEPAGE="https://01.org/powertop/ https://github.com/fenrus75/powertop/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="nls unicode X" + +DEPEND=" + dev-libs/libnl:3 + sys-apps/pciutils + sys-libs/ncurses:=[unicode(+)?] +" + +BDEPEND=" + virtual/pkgconfig + sys-devel/autoconf-archive + >=sys-devel/gettext-0.20.2 +" +RDEPEND=" + ${DEPEND} + X? ( x11-apps/xset ) + virtual/libintl +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.8-ncurses_tinfo.patch +) + +pkg_setup() { + CONFIG_CHECK=" + ~X86_MSR + ~DEBUG_FS + ~PERF_EVENTS + ~TRACEPOINTS + ~NO_HZ_IDLE + ~HIGH_RES_TIMERS + ~HPET_TIMER + ~CPU_FREQ_STAT + ~CPU_FREQ_GOV_ONDEMAND + ~FTRACE + ~BLK_DEV_IO_TRACE + ~TRACING + " + ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost certainly need it" + ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you almost certainly need it" + ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel for full powertop function" + ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel for full powertop function" + ERROR_KERNEL_NO_HZ_IDLE="NO_HZ_IDLE should be enabled in the kernel for full powertop function" + ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the kernel for full powertop function" + ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for full powertop function" + ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the kernel for full powertop function" + ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be enabled in the kernel for full powertop function" + ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable BLK_DEV_IO_TRACE" + ERROR_KERNEL_BLK_DEV_IO_TRACE="BLK_DEV_IO_TRACE needs to be turned on to enable other config options" + ERROR_KERNEL_TRACING="TRACING should be enabled in the kernel for full powertop function" + linux-info_pkg_setup + if linux_config_exists; then + if kernel_is -lt 3 7 0; then + if linux_chkconfig_present SND_HDA_INTEL; then + CONFIG_CHECK="~SND_HDA_POWER_SAVE" + ERROR_KERNEL_SND_HDA_POWER_SAVE="SND_HDA_POWER_SAVE should be enabled in the kernel for full powertop function" + check_extra_config + fi + fi + if kernel_is -lt 3 9 0; then + CONFIG_CHECK="~EVENT_POWER_TRACING_DEPRECATED" + ERROR_KERNEL_EVENT_POWER_TRACING_DEPRECATED="EVENT_POWER_TRACING_DEPRECATED should be enabled in the kernel for full powertop function" + check_extra_config + fi + if kernel_is -lt 3 19; then + CONFIG_CHECK="~PM_RUNTIME" + ERROR_KERNEL_PM_RUNTIME="PM_RUNTIME should be enabled in the kernel for full powertop function" + check_extra_config + else + CONFIG_CHECK="~PM" + ERROR_KERNEL_PM="PM should be enabled in the kernel for full powertop function" + check_extra_config + fi + if kernel_is -lt 4 11; then + CONFIG_CHECK="~TIMER_STATS" + ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled in the kernel for full powertop function" + check_extra_config + fi + fi +} + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses) + econf $(use_enable nls) +} diff --git a/sys-power/powertop/powertop-9999.ebuild b/sys-power/powertop/powertop-9999.ebuild index b0062714c6c4..bc423e970175 100644 --- a/sys-power/powertop/powertop-9999.ebuild +++ b/sys-power/powertop/powertop-9999.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 EGIT_REPO_URI="https://github.com/fenrus75/powertop.git" |