commit: b61db1f03bb336947a32c7830ea446ed272688fb Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com> AuthorDate: Sat Jul 19 14:22:56 2025 +0000 Commit: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com> CommitDate: Sun Jul 20 01:49:41 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b61db1f0
sys-apps/coolercontrold: add 2.2.2 Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com> sys-apps/coolercontrold/Manifest | 3 + .../coolercontrold/coolercontrold-2.2.2.ebuild | 92 ++++++++++++++++++++++ 2 files changed, 95 insertions(+) diff --git a/sys-apps/coolercontrold/Manifest b/sys-apps/coolercontrold/Manifest index 856067ad9e..ec52cef527 100644 --- a/sys-apps/coolercontrold/Manifest +++ b/sys-apps/coolercontrold/Manifest @@ -1,5 +1,8 @@ DIST coolercontrol-2.2.1-dist.tar.xz 992932 BLAKE2B 1dcda744e4e45588f1ba010309de250edd82c47c2130a1c1506c7d191a213471fc4e3c856423ec0276a879133759e5ddc13e51cb0c87263823c9919d061e2d5c SHA512 1a3942f55ba05011ba0c46af095ce0ffdc07ce84ca7d1eab013a6acfe4b560c913dddde0339d810c7383ea86c4467ee20adea34e7edbe8b0cc8491c5c577db06 DIST coolercontrol-2.2.1.tar.bz2 15866674 BLAKE2B aace4917a7c778de60f10387f0a90777479fdcdcbcabcc584e32c570dfe683a75015c31f3793acc91c7d503bdef4cccbea8c3f19fb7e752ba6e77ad58906ea23 SHA512 435a7a6f1ee0f14061f482df16f28adc0f40c9f35add6703e2953c7682897d77204fc7d45a04ea39d2715be104895bb8ed7d4fc59a1a8e024cd18f5d576b3a42 +DIST coolercontrol-2.2.2-dist.tar.xz 997364 BLAKE2B bc614c98382f9731df3ecf8922a0073f7a3912d29d4f29f7c75ba928ccf6c5a800640e70df28f9191914bbd0d59c986b997e517c1550a02ab84125b4014b2ac6 SHA512 c34f88bc432e7f5bca647d73d7366685d77c6ad21632cb59c265ffd625dca6eab5bdd4a739bf94b72a12658bdf84fad6d555d27f5ee4e328152485459280f3ee +DIST coolercontrol-2.2.2.tar.bz2 15870398 BLAKE2B ee26c65b702f934a2a2bc25b1443a0050596c6b10a7c11c40b4391a84aee2cc8d7d4063b082e9ebf39f002aa413c1a023030aebbf23c4a0fb346fa0e6a0a54a2 SHA512 550e323368ecf5131b96544173d36bf05d9e3b2c925d557146f0a3c325b70563fbec19e03918c0398a60749748e3e00d40a25669209009dca37dc2fdec3bbacc DIST coolercontrold-2.2.1-crates.tar.xz 35510096 BLAKE2B b9f2ab744df4bdacd80d2205e58ca06628dc403d650384719462fa14e9432b8130a78fb61259d3da95e89099b6104f586fea63d3d779bdc1af1d4227dcf9b772 SHA512 af8d33f3122a7b50e43166e47a51d17eb3e5a24ff95b670f8dd499dd6da31805324a7369e5cd11e60405804fb104d53ec96b239a5b7dfcc497d5efaada0ed28d +DIST coolercontrold-2.2.2-crates.tar.xz 35507500 BLAKE2B 97e6a99d124d7c2546eb4cceafb6cc65870701e9b8a583209a8b67afd0d6773d842b688897259f9b8d42f0c4e71aaa976922f70ff4e928dd0f4865ebc61511ae SHA512 cccd1c4ff007ee5f0db6bf3250dd6408a2928d4536ca3b4395dd0b8ff4ea05ab858f40610b9fd7dff7bd859fbd3689d3bd5d7e2f5d382ad68885434ed23c0aae DIST nvml-wrapper-572095f631da93be8d243c73820e581676969897.gh.tar.gz 234938 BLAKE2B 91820ff38212c176027ab6fb0552efb1544e539fc0dda29e1f7d82e2cec8dce1ecd6cc499c120049869cde638ecf3918db3f73f86ea73214135e83c4bccbf8b7 SHA512 1ead616cd59058e3c2f100cc0dff9b6f4f97aeb70d30ef7d9667eef3e8b272bfae487e1c68e042680c4be8667246b4048cf8124ffe6a7011899cd2b87d8e9ec2 DIST tower-governor-fd799d86418e58179468953c80ad7094a81a9e37.gh.tar.gz 31787 BLAKE2B 452d9423efbb4230bd88dfd58418850d0ccd53d5d7a45ff5f60005f292637c296c4c67d75397a7f4a59af51028b2fa95a2ef69b372c18b1dc02408437e8aac81 SHA512 40819f6d2dd7f1471af403e0314d261d043c6fddde12c55b797412d07f0ae6db3cfb640cbe3e2ebfea1be11794ed8ded20c39ca489784a4dbbbfdead3ff2f38c diff --git a/sys-apps/coolercontrold/coolercontrold-2.2.2.ebuild b/sys-apps/coolercontrold/coolercontrold-2.2.2.ebuild new file mode 100644 index 0000000000..36a44070a2 --- /dev/null +++ b/sys-apps/coolercontrold/coolercontrold-2.2.2.ebuild @@ -0,0 +1,92 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" +" + +declare -A GIT_CRATES=( + [nvml-wrapper-sys]='https://github.com/codifryed/nvml-wrapper;572095f631da93be8d243c73820e581676969897;nvml-wrapper-%commit%/nvml-wrapper-sys' + [nvml-wrapper]='https://github.com/codifryed/nvml-wrapper;572095f631da93be8d243c73820e581676969897;nvml-wrapper-%commit%/nvml-wrapper' + [tower_governor]='https://github.com/codifryed/tower-governor;fd799d86418e58179468953c80ad7094a81a9e37;tower-governor-%commit%' +) + +RUST_MIN_VER=1.82 + +inherit cargo optfeature systemd + +DESCRIPTION="Monitor and control your cooling and other devices (daemon)" +HOMEPAGE="https://gitlab.com/coolercontrol/coolercontrol" +SRC_URI=" + https://gitlab.com/coolercontrol/coolercontrol/-/archive/${PV}/coolercontrol-${PV}.tar.bz2 + https://gitlab.com/api/v4/projects/32909921/packages/generic/coolercontrol/${PV}/coolercontrol-${PV}-dist.tar.xz + https://gitlab.com/api/v4/projects/32909921/packages/generic/coolercontrol/${PV}/coolercontrold-${PV}-crates.tar.xz + ${CARGO_CRATE_URIS} +" +S="${WORKDIR}/coolercontrol-${PV}/${PN}" + +LICENSE="GPL-3+" +# Dependent crate licenses +LICENSE+=" + AGPL-3+ Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD GPL-3+ + ISC MIT UoI-NCSA Unicode-3.0 ZLIB +" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="video_cards_amdgpu" + +RDEPEND=" + app-arch/zstd:= + video_cards_amdgpu? ( + x11-libs/libdrm[video_cards_amdgpu] + ) +" +DEPEND="${RDEPEND}" + +QA_FLAGS_IGNORED=".*" + +PATCHES=( + "${FILESDIR}"/coolercontrold-2.1.0-optional-libdrm_amdgpu.patch +) + +src_prepare() { + pushd .. >/dev/null || die + default + popd >/dev/null || die + + # Disable stripping + sed -i -e '/^strip =/d' Cargo.toml || die + + cp -rf "${WORKDIR}"/dist/* "${S}"/resources/app/ || die +} + +src_configure() { + export ZSTD_SYS_USE_PKG_CONFIG=1 + + local myfeatures=( + $(usev video_cards_amdgpu libdrm_amdgpu) + ) + + cargo_src_configure +} + +src_install() { + cargo_src_install + + einstalldocs + + doinitd ../packaging/openrc/init.d/coolercontrol + doconfd ../packaging/openrc/conf.d/coolercontrol + + systemd_dounit ../packaging/systemd/coolercontrold.service +} + +pkg_postinst() { + optfeature "interact with AIO liquid coolers and other devices" sys-apps/coolercontrol-liqctld + + if [[ -n ${REPLACING_VERSIONS} ]]; then + elog "Remember to restart coolercontrol service to use the new version." + fi +}
