commit:     05334505f22f26785eada5ec3a746082ce4da97b
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 12 17:39:44 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 12 17:39:56 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05334505

app-containers/cadvisor: add 0.53.0

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-containers/cadvisor/Manifest                |  2 +
 app-containers/cadvisor/cadvisor-0.53.0.ebuild  | 52 +++++++++++++++++++++++++
 app-containers/cadvisor/files/cadvisor.initd-r2 | 17 ++++++++
 3 files changed, 71 insertions(+)

diff --git a/app-containers/cadvisor/Manifest b/app-containers/cadvisor/Manifest
index 9cd0b221876b..a7d751c80454 100644
--- a/app-containers/cadvisor/Manifest
+++ b/app-containers/cadvisor/Manifest
@@ -1,2 +1,4 @@
 DIST cadvisor-0.49.2-deps.tar.xz 101993792 BLAKE2B 
c76a951b0741b513b7a700d9a31b6a0c49d0ae747375e9e968e77035d119a9351ba09e83c7d5d34bd081924e1fdccfd8851c9c7215d049c27da7469c63aab578
 SHA512 
2a104a236749bfcc1b785bf13352d217633c835beddf0c98219dd7dad602a36a934a2acf21975db06e72456ba15a01a5b685b9019f05f0d19e4eb562861478aa
 DIST cadvisor-0.49.2.tar.gz 1198084 BLAKE2B 
7d4a28a22404f324c8cc0d956959bd397426b4fef8462d85bfd3cd5a1f9ec6f5add26c996cce9fb7e2edc382b592ca4cf1ff984371e32ad4fbc3daab050bfc67
 SHA512 
b789ab9d1b96b63edeeba2b474e9d6fb23bfb3c7e4778811fc92cc9b39084a70aaea991aa859b863a44d57934d0231c8ff5c48abfa6dce4b020827f6db3b5cb4
+DIST cadvisor-0.53.0-deps.tar.xz 89910284 BLAKE2B 
448c6a0f87e23b5274b3f3478fde62e8b6b5900795486d06730b4f32f5722125796b2b4ee24fdfd968719fed9233de20eff10f5bbdc1c258c603725df68a5247
 SHA512 
288567f5fd39a624f3a6c2db3a43636bfc516fd7ffd602b94e6cb53c2386743db98a6752ab6f1bde86f25faaf85b2736667e7bcfdf68d9785a8ff18502621526
+DIST cadvisor-0.53.0.tar.gz 992998 BLAKE2B 
3cb8e8ed487811e44aee652084fc173f8274eb98e28f32ddab5e26f2f225dc41dee6fddcde66035447849dac49f28991e993e9faa37b2ae965627fb8cde3c6ec
 SHA512 
b14b0d4025c0b53a4299a38706cc1c5fec181554b3875ab1aa5ca2e80ca4070aa057521812a19e3fb6b175e1ea05ef37af613f69cf84dd131dc82f218fa6ff9c

diff --git a/app-containers/cadvisor/cadvisor-0.53.0.ebuild 
b/app-containers/cadvisor/cadvisor-0.53.0.ebuild
new file mode 100644
index 000000000000..8ed563f4e2b1
--- /dev/null
+++ b/app-containers/cadvisor/cadvisor-0.53.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd
+
+COMMIT=85d18c6139a3f1fd48120c49ae44eac5aa352d86
+
+DESCRIPTION="Analyzes resource usage and performance characteristics of 
running containers"
+HOMEPAGE="https://github.com/google/cadvisor";
+SRC_URI="https://github.com/google/cadvisor/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+SRC_URI+=" 
https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-deps.tar.xz";
+
+LICENSE="Apache-2.0"
+# Dependent licenses
+LICENSE+=" Apache-2.0 BSD BSD-2 ISC MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+       acct-group/cadvisor
+       acct-user/cadvisor
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       default
+       sed -i build/assets.sh -e "/go install/d"  || die
+       sed -i build/build.sh \
+               -e "/^version=/s/=.*/=${PV}/" \
+               -e "/^revision=/s/=.*/=${COMMIT}/" \
+               -e "/^branch=/s/=.*/=v${PV}/" || die
+}
+
+src_compile() {
+       GO_FLAGS="${GOFLAGS}" VERBOSE="true" emake build
+}
+
+src_test() {
+       GO_FLAGS="${GOFLAGS}" VERBOSE="true" emake test
+}
+
+src_install() {
+       dobin _output/${PN}
+
+       newinitd "${FILESDIR}"/${PN}.initd-r2 ${PN}
+       systemd_dounit "${FILESDIR}/${PN}.service"
+
+       keepdir /var/log/${PN}
+       fowners ${PN}:${PN} /var/log/${PN}
+}

diff --git a/app-containers/cadvisor/files/cadvisor.initd-r2 
b/app-containers/cadvisor/files/cadvisor.initd-r2
new file mode 100644
index 000000000000..aae28dfc629a
--- /dev/null
+++ b/app-containers/cadvisor/files/cadvisor.initd-r2
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+# Copyright 2016-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="cAdvisor - Analyzes resource usage and performance 
characteristics of running containers"
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
+command_user=${user:-${RC_SVCNAME}}:${group:-${RC_SVCNAME}}
+output_log=/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log
+error_log=/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log
+
+command="/usr/bin/cadvisor"
+command_background="true"
+
+depend() {
+       after net
+       use docker
+}

Reply via email to