diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
| commit | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch) | |
| tree | 0d7a74b4463ee387f9cf9368ceb1b757f694f72a /app-containers/cadvisor | |
| parent | f716a9fe6455d39eef01e718aae68dae61c19704 (diff) | |
| download | baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip | |
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'app-containers/cadvisor')
| -rw-r--r-- | app-containers/cadvisor/Manifest | 6 | ||||
| -rw-r--r-- | app-containers/cadvisor/cadvisor-0.49.2.ebuild | 47 | ||||
| -rw-r--r-- | app-containers/cadvisor/cadvisor-0.53.0.ebuild | 52 | ||||
| -rw-r--r-- | app-containers/cadvisor/cadvisor-0.56.2.ebuild | 52 | ||||
| -rw-r--r-- | app-containers/cadvisor/files/cadvisor.initd-r1 | 19 | ||||
| -rw-r--r-- | app-containers/cadvisor/files/cadvisor.initd-r2 | 17 | ||||
| -rw-r--r-- | app-containers/cadvisor/files/cadvisor.service | 13 | ||||
| -rw-r--r-- | app-containers/cadvisor/metadata.xml | 11 |
8 files changed, 217 insertions, 0 deletions
diff --git a/app-containers/cadvisor/Manifest b/app-containers/cadvisor/Manifest new file mode 100644 index 000000000000..9689fd9002af --- /dev/null +++ b/app-containers/cadvisor/Manifest @@ -0,0 +1,6 @@ +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 +DIST cadvisor-0.56.2-deps.tar.xz 91038580 BLAKE2B a2ac7627c8c27247ceb6762aa3bb29600a1fd9dd0373f8cc8296f84d5a668bcea53431d7c79a15cc19fc9db56394bbcc73bc9615a36d4af864428102b94e48fd SHA512 e5df929d718fa5f6765c09bf603fd52ed34b259b57abecc3236a49ef10333e803bb031fb3d636fc8c0d0fba42fba15cbfb1320bd30723dea2a36455a3ecd7369 +DIST cadvisor-0.56.2.tar.gz 1010039 BLAKE2B c6f98f9c7e8818977290f9044084b26768dac49b9c76edc00e65e87f48fb0b0ba5ef91fea18f5b1e63de1e4e4f8bd6e5852910c7054748c3e5298aefd74b8593 SHA512 9c8424be5868f97bbd026f1a976abc6a40d0a2b8bfa40f56c03c2a7b416537dec2680fcdcb2076414c3b7aa110955d2d456d6756f1b0eec40afc49837a581152 diff --git a/app-containers/cadvisor/cadvisor-0.49.2.ebuild b/app-containers/cadvisor/cadvisor-0.49.2.ebuild new file mode 100644 index 000000000000..93c595db33e9 --- /dev/null +++ b/app-containers/cadvisor/cadvisor-0.49.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd + +COMMIT=6876475afe3755d62b65df0d32b005047fc69377 + +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://dev.gentoo.org/~arthurzam/distfiles/app-containers/${PN}/${P}-deps.tar.xz" + +LICENSE="Apache-2.0 BSD BSD-2 ISC MIT" +SLOT="0" +KEYWORDS="~amd64" + +COMMON_DEPEND="acct-group/cadvisor + acct-user/cadvisor" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_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() { + newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} + systemd_dounit "${FILESDIR}/${PN}.service" + dobin _output/${PN} + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} +} 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/cadvisor-0.56.2.ebuild b/app-containers/cadvisor/cadvisor-0.56.2.ebuild new file mode 100644 index 000000000000..8b32a4c1bd2c --- /dev/null +++ b/app-containers/cadvisor/cadvisor-0.56.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd + +COMMIT=7cbdee9260c4292d5d27d00416ce8a7dc1dc12a0 + +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-r1 b/app-containers/cadvisor/files/cadvisor.initd-r1 new file mode 100644 index 000000000000..97a593dcd066 --- /dev/null +++ b/app-containers/cadvisor/files/cadvisor.initd-r1 @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 2016-2019 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/${SVCNAME}.pid"} +user=${user:-${SVCNAME}} +group=${group:-${SVCNAME}} + +command="/usr/bin/cadvisor" +command_background="true" +start_stop_daemon_args="--user ${user} --group ${group} \ + --stdout /var/log/${SVCNAME}/${SVCNAME}.log \ + --stderr /var/log/${SVCNAME}/${SVCNAME}.log" + +depend() { + after net + use docker +} 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 +} diff --git a/app-containers/cadvisor/files/cadvisor.service b/app-containers/cadvisor/files/cadvisor.service new file mode 100644 index 000000000000..13966305156f --- /dev/null +++ b/app-containers/cadvisor/files/cadvisor.service @@ -0,0 +1,13 @@ +[Unit] +Description=cAdvisor - Analyzes resource usage and performance characteristics of running containers +Documentation=https://github.com/google/cadvisor +After=network-online.target docker.socket + +[Service] +User=cadvisor +Restart=on-failure +ExecStart=/usr/bin/cadvisor +TimeoutStopSec=20s + +[Install] +WantedBy=multi-user.target diff --git a/app-containers/cadvisor/metadata.xml b/app-containers/cadvisor/metadata.xml new file mode 100644 index 000000000000..3f736ba9d526 --- /dev/null +++ b/app-containers/cadvisor/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>williamh@gentoo.org</email> + <name>William Hubbs</name> + </maintainer> + <upstream> + <remote-id type="github">google/cadvisor</remote-id> + </upstream> +</pkgmetadata> |
