summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahil Bhimjiani <rahil3108@gmail.com>2023-11-11 11:03:45 +0530
committerYixun Lan <dlan@gentoo.org>2023-11-14 02:27:37 +0000
commit410b959c6e7e6d4e12baf9fa4a179c2904f970d3 (patch)
tree46cc4cfe7f44fe9b8108b4e127c6bd914af2d301 /app-metrics/prometheus-podman-exporter
parentapp-containers/podman-tui: add 0.12.0 (diff)
downloadgentoo-410b959c6e7e6d4e12baf9fa4a179c2904f970d3.tar.gz
gentoo-410b959c6e7e6d4e12baf9fa4a179c2904f970d3.tar.bz2
gentoo-410b959c6e7e6d4e12baf9fa4a179c2904f970d3.zip
app-metrics/prometheus-podman-exporter: add 1.5.0
Closes: https://github.com/gentoo/gentoo/pull/33764 Signed-off-by: Rahil Bhimjiani <rahil3108@gmail.com> Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'app-metrics/prometheus-podman-exporter')
-rw-r--r--app-metrics/prometheus-podman-exporter/Manifest1
-rw-r--r--app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-1.5.0.ebuild45
-rw-r--r--app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-9999.ebuild2
3 files changed, 47 insertions, 1 deletions
diff --git a/app-metrics/prometheus-podman-exporter/Manifest b/app-metrics/prometheus-podman-exporter/Manifest
index 14475c516e01..f3d6e9b4f861 100644
--- a/app-metrics/prometheus-podman-exporter/Manifest
+++ b/app-metrics/prometheus-podman-exporter/Manifest
@@ -1 +1,2 @@
DIST prometheus-podman-exporter-1.4.0.tar.gz 11934764 BLAKE2B 9f0c7431a15ca0abbfbc54affc7026180c156a655379e18840e8923cced2b80a86644e6edd139f052d9a777d1465a2b7bc4432fc2ebb2e3f47bc3b4880800745 SHA512 ba0c79741add66cb7e943dd64c0662fabb95be10864efa22cbb580b4e0ff01f5896e269b90b6b8b4a59878e77736344390258a1bf8ecbe58fd5870fd428ee388
+DIST prometheus-podman-exporter-1.5.0.tar.gz 12032097 BLAKE2B 15e209330342432a1f71e4686a705b6c6dc41d14b9022828cf10cb0538dcbf6b26c47f243ad96aef17eb71470d5af15bd090afc57960ee6d7b8828b2cff32c46 SHA512 d5eca9d0c87cbddfef6a58cdfc5213c65846219ff8a60e9efa038a8e4ca37f36bb6dc0687a78defb80a4901eeb617e8aa689b94ef0a48625548e74816fafbfec
diff --git a/app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-1.5.0.ebuild b/app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-1.5.0.ebuild
new file mode 100644
index 000000000000..029b77899c4a
--- /dev/null
+++ b/app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-1.5.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
index b6b911e1954f..029b77899c4a 100644
--- a/app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-9999.ebuild
+++ b/app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-9999.ebuild
@@ -8,7 +8,7 @@ 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
+if [[ ${PV} == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/containers/prometheus-podman-exporter.git"
else