diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-11-10 21:02:07 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-11-10 21:02:07 +0000 |
commit | 0ca3f86640e2f1f361da895b997c43bac22090a1 (patch) | |
tree | 029b42e7b1425ce16f4299635e5caad713501ead /sys-power/throttled | |
parent | be94ae04eee564451203d45977c2ef7c7ace1580 (diff) |
gentoo auto-resync : 10:11:2024 - 21:02:06
Diffstat (limited to 'sys-power/throttled')
-rw-r--r-- | sys-power/throttled/Manifest | 2 | ||||
-rw-r--r-- | sys-power/throttled/throttled-0.11.ebuild | 49 |
2 files changed, 51 insertions, 0 deletions
diff --git a/sys-power/throttled/Manifest b/sys-power/throttled/Manifest index b8f98228ff37..b409b12aec2c 100644 --- a/sys-power/throttled/Manifest +++ b/sys-power/throttled/Manifest @@ -1,5 +1,7 @@ AUX throttled.initd 138 BLAKE2B 5f032097afb1a6aa1e7cf17c01416dafeeb16d758ebac50854f1583e788598749678ae87e8efb085ba14d4d6a669f0e6cb17360f406c431c561b3b05e7aea231 SHA512 35ce59d72146d641eefcbb8aad026677204af421526ee6b34cb799338b1b109f5a21eee8dcb6562758a2d0c2d75ece80dea128d461bde05ee149ca9efbd0c99b AUX throttled.service 251 BLAKE2B 2eee705a40bcdd273cb52757330083ad82018814bfa6fa52cffc29e4709ee608e5253022ff547ee9447242d06db138da4846d2ba632596a79867cc5a6f14906d SHA512 66a47dc1349a18115868cc0a92739dc19b4f141e3ae6b65beebdb2add902013488ec33ac224075c261e788a36631f7d8ba7e3249c537bc04b499d1f03acf4239 DIST throttled-0.10.0.gh.tar.gz 22191 BLAKE2B c301ee070ff462acd613c90525209eb5237c57e7171bf25133535f9c9a50d226b919065d8f6999f95b45f7f0d4c30e63abb5e04ec768d76b3c82dd19f092a693 SHA512 b89c467295bfc592d7b3ce0c4a41fedf436acf8067f8ef63d8596b92343ed8e04d371d065a9e35fdddba40772f12255c30960c2c46f0cbd5093bfc5e72fb4e18 +DIST throttled-0.11.gh.tar.gz 22195 BLAKE2B d45b8fe04c92dfd2903c1777a3d2bd017cfa4d4f740fa7f7dfc384b4ca902552b386f3e92112dcc57bd6b25644c9bf63a987f9ad4d7c81d3bcfa0a445c1cedfa SHA512 f60ce27d17abd6ddd7db6b77a80ac80e129fba24bbc2d21608d1cc8ed2b0131dac2f53d3fea07ac24f994850146e553c6d4c7fc0dedffee109a1aa6df8684c7a EBUILD throttled-0.10.0.ebuild 998 BLAKE2B 98d61163d187c1d4c4b5da57f758625673645efc73e1b24b352796e01b3d74d6839cb58c6842508ea8bb8058f768b88f8ec0fbd9307d6ec1e8acfc2eaa2b87fd SHA512 9668ca181a1a6f3146549c7b0dfbbce9443a264bc3cccae6f2e5a860f1a821f1bc2446470150bf2498c6cbe79166e522af07045639df59d9ad9bb0df04af0c4f +EBUILD throttled-0.11.ebuild 1142 BLAKE2B 8a45b704da57b087900e65833c2e156fc6f66ae832cc168a4b7e0b24e5fe5bbdb89127821c7f7dca3f7ab7f767aec9ef7b90eec42648683fe88ab8b471b88835 SHA512 fd6a7aaa98e8598fe12457531a1e6cac17dba034b7328405a0ddefaddd102febd8156c233fc2a93f8b66b0a17bc5efe12d3958d871f19ba8184bfe447d3a9add MISC metadata.xml 600 BLAKE2B e55795b1a0947d87afa39d04ba63755c97c173ab201234efe87e49833d3a41dd74a98ac2aee22bab0e4f723e34b6a36e999f07f8c71cf78915fef6fb1c11f273 SHA512 1f0ad49b2c3b2703f8508b87a63ec2fa695fc77a769ad34d9a0bd19359cab2305582211552586cd3ec608cd6a0c64ed7c5928d7ffaddcf8a50baeb348fc362bd diff --git a/sys-power/throttled/throttled-0.11.ebuild b/sys-power/throttled/throttled-0.11.ebuild new file mode 100644 index 000000000000..955b3325dd7f --- /dev/null +++ b/sys-power/throttled/throttled-0.11.ebuild @@ -0,0 +1,49 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit linux-info python-single-r1 systemd + +DESCRIPTION="Daemon to work around throttling issues on some Intel laptops" +HOMEPAGE="https://github.com/erpalma/throttled" +SRC_URI="https://github.com/erpalma/throttled/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +CONFIG_CHECK="~X86_MSR ~DEVMEM" + +RDEPEND=" + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/pygobject[${PYTHON_USEDEP}] + ') + sys-apps/pciutils + test? ( dev-python/pytest-import-check ) +" + +pkg_setup() { + linux-info_pkg_setup + python-single-r1_pkg_setup +} + +src_test() { + epytest -p no:python --import-check mmio.py throttled.py +} + +src_install() { + default + python_newscript throttled.py throttled + python_domodule mmio.py + newinitd "${FILESDIR}/throttled.initd" throttled + systemd_dounit "${FILESDIR}/throttled.service" + insinto /etc + doins etc/throttled.conf +} |