diff options
author | Rahil Bhimjiani <rahil3108@gmail.com> | 2023-09-30 21:22:40 +0530 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-10-31 16:02:21 +0200 |
commit | bf5cd99a517e89863819001c51ee00ed8f69435e (patch) | |
tree | 23b2ba957a776c56f8e81cf7f01bec731f11e7fe /app-metrics/prometheus-podman-exporter | |
parent | sci-calculators/tiemu: fix newlines in patch (diff) | |
download | gentoo-bf5cd99a517e89863819001c51ee00ed8f69435e.tar.gz gentoo-bf5cd99a517e89863819001c51ee00ed8f69435e.tar.bz2 gentoo-bf5cd99a517e89863819001c51ee00ed8f69435e.zip |
app-metrics/prometheus-podman-exporter: add 1.4.0 & live
I'll add openrc's init.d script if someone provides patch/PR
Signed-off-by: Rahil Bhimjiani <rahil3108@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/33137
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-metrics/prometheus-podman-exporter')
4 files changed, 111 insertions, 0 deletions
diff --git a/app-metrics/prometheus-podman-exporter/Manifest b/app-metrics/prometheus-podman-exporter/Manifest new file mode 100644 index 000000000000..14475c516e01 --- /dev/null +++ b/app-metrics/prometheus-podman-exporter/Manifest @@ -0,0 +1 @@ +DIST prometheus-podman-exporter-1.4.0.tar.gz 11934764 BLAKE2B 9f0c7431a15ca0abbfbc54affc7026180c156a655379e18840e8923cced2b80a86644e6edd139f052d9a777d1465a2b7bc4432fc2ebb2e3f47bc3b4880800745 SHA512 ba0c79741add66cb7e943dd64c0662fabb95be10864efa22cbb580b4e0ff01f5896e269b90b6b8b4a59878e77736344390258a1bf8ecbe58fd5870fd428ee388 diff --git a/app-metrics/prometheus-podman-exporter/metadata.xml b/app-metrics/prometheus-podman-exporter/metadata.xml new file mode 100644 index 000000000000..0e2e52ba0fc6 --- /dev/null +++ b/app-metrics/prometheus-podman-exporter/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="person" proxied="yes"> + <email>rahil3108@gmail.com</email> + <name>Rahil Bhimjiani</name> + </maintainer> + <use> + <flag name="btrfs">Collect metrics for btrfs filesystem</flag> + </use> + <upstream> + <remote-id type="github">containers/prometheus-podman-exporter</remote-id> + <bugs-to>https://github.com/containers/prometheus-podman-exporter/issues</bugs-to> + <doc>https://github.com/containers/prometheus-podman-exporter/blob/main/README.md</doc> + </upstream> +</pkgmetadata> diff --git a/app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-1.4.0.ebuild b/app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-1.4.0.ebuild new file mode 100644 index 000000000000..b6b911e1954f --- /dev/null +++ b/app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-1.4.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd + +DESCRIPTION="Exporter for podman giving containers, pods, images, volumes & networks metrics" +HOMEPAGE="https://github.com/containers/prometheus-podman-exporter" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/containers/prometheus-podman-exporter.git" +else + SRC_URI="https://github.com/containers/prometheus-podman-exporter/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +# Main package +LICENSE="Apache-2.0" +# Dependencies +LICENSE+=" BSD-2 BSD ISC MIT MPL-2.0" + +SLOT="0" +IUSE="btrfs" + +# there are no test files so prevent tests +RESTRICT="test" +RDEPEND=" + app-containers/podman[btrfs?] +" +DEPEND="${RDEPEND}" + +src_compile() { + export BUILDFLAGS=" -tags exclude_graphdriver_devicemapper" + use !btrfs && BUILDFLAGS+=",exclude_graphdriver_btrfs,btrfs_noversion" + default +} + +src_install() { + emake DESTDIR="${ED}/usr/bin" install + systemd_dounit "contrib/systemd/prometheus-podman-exporter.service" + systemd_douserunit "contrib/systemd/prometheus-podman-exporter.service" + einstalldocs +} diff --git a/app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-9999.ebuild b/app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-9999.ebuild new file mode 100644 index 000000000000..b6b911e1954f --- /dev/null +++ b/app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-9999.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd + +DESCRIPTION="Exporter for podman giving containers, pods, images, volumes & networks metrics" +HOMEPAGE="https://github.com/containers/prometheus-podman-exporter" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/containers/prometheus-podman-exporter.git" +else + SRC_URI="https://github.com/containers/prometheus-podman-exporter/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +# Main package +LICENSE="Apache-2.0" +# Dependencies +LICENSE+=" BSD-2 BSD ISC MIT MPL-2.0" + +SLOT="0" +IUSE="btrfs" + +# there are no test files so prevent tests +RESTRICT="test" +RDEPEND=" + app-containers/podman[btrfs?] +" +DEPEND="${RDEPEND}" + +src_compile() { + export BUILDFLAGS=" -tags exclude_graphdriver_devicemapper" + use !btrfs && BUILDFLAGS+=",exclude_graphdriver_btrfs,btrfs_noversion" + default +} + +src_install() { + emake DESTDIR="${ED}/usr/bin" install + systemd_dounit "contrib/systemd/prometheus-podman-exporter.service" + systemd_douserunit "contrib/systemd/prometheus-podman-exporter.service" + einstalldocs +} |