Skip to content

Commit e74fb1f

Browse files
committed
app-metrics/prometheus-podman-exporter: update to 1.17.1
Remove BUILDTAGS btrfs_noversion & exclude_graphdriver_devicemapper as no longer effective containers/storage#2308 containers/storage#1622 Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
1 parent 080870c commit e74fb1f

File tree

3 files changed

+67
-2
lines changed

3 files changed

+67
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
DIST prometheus-podman-exporter-1.14.1.tar.gz 14044762 BLAKE2B 33163636da788130bbb49de01145357fbcb3e0b3912aa587df97e1b1518002ea8b9bf9c282b952723f175023c4c3e3a87ab9b71b215cfafe23e636c41be5e40c SHA512 2045c960f7ca80b759151f11a3a825dba30c7ba4da7dc1ce05451e3c16af44874c27f9422a6ad5ec145b131aa32b9db586c73aa2c063ae1e077611e4dce5afa3
22
DIST prometheus-podman-exporter-1.15.0.tar.gz 14130668 BLAKE2B 930a816321245c3fd849fe1b2a869eb8afa404b59ad646fbf84a779404b297ac53f1609fdc8276e69bbb979dc569fbfafa9159535ddbc378fedc5b63a22a8e96 SHA512 767d0b54629b1c184df11289dac6793b84bf3b16e0c4cc7a749b6b9bc06586bce816443dbe387b6038813f69438e8a7d831b582cf89d7ea91d4e371936f7ce2e
33
DIST prometheus-podman-exporter-1.16.0.tar.gz 14161221 BLAKE2B e5c877cc13fe350b94dfe61653ffdddcaedd617a928578e8775cf4d79b9878c3cca624cb4bf6654e332e646c37a8b080abc956eb85bfa6ce757c476f6584beeb SHA512 1e733fa1bf256027f6ca5c2101e93e5958858c1fd69ffd7ffd7e25966cb569d77290430701315fab60b3c1e87f20fb7ade6ca214410c068a320caaa77c25a8ce
4+
DIST prometheus-podman-exporter-1.17.1.tar.gz 14318296 BLAKE2B 520d1811dc6fce1f2c1d7e06f6cdcc02f6f3ce6fb22bf294a5716a1df33406283d80ecc55d747c19cb2e1e6845321344c5c3485924997c3a7c3f1f89ae27e909 SHA512 ded57455519c69fd9035716140df513a975a49810ab920dfc4561431b81645d39f7787ea15bd2faa6b53568dfdadaff98f20a7d8c8849e97c77611050bc033b5
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Copyright 1999-2025 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
inherit go-module systemd
7+
8+
DESCRIPTION="Exporter for podman giving containers, pods, images, volumes & networks metrics"
9+
HOMEPAGE="https://github.com/containers/prometheus-podman-exporter"
10+
11+
if [[ ${PV} == 9999* ]]; then
12+
inherit git-r3
13+
EGIT_REPO_URI="https://github.com/containers/prometheus-podman-exporter.git"
14+
else
15+
SRC_URI="https://github.com/containers/prometheus-podman-exporter/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
16+
KEYWORDS="~amd64"
17+
fi
18+
19+
# Main package
20+
LICENSE="Apache-2.0"
21+
# Dependencies
22+
LICENSE+=" BSD-2 BSD ISC MIT MPL-2.0"
23+
24+
SLOT="0"
25+
IUSE="btrfs systemd"
26+
27+
# there are no test files so prevent tests
28+
RESTRICT="test"
29+
30+
DEPEND="
31+
app-crypt/gpgme
32+
btrfs? ( sys-fs/btrfs-progs )
33+
"
34+
RDEPEND="${DEPEND}"
35+
36+
PATCHES=(
37+
"${FILESDIR}/${PN}-1.10.1-gentoo-systemd.patch"
38+
)
39+
40+
src_compile() {
41+
export BUILDTAGS=""
42+
use !btrfs && BUILDTAGS+=",exclude_graphdriver_btrfs"
43+
use systemd && BUILDTAGS+=",systemd"
44+
default
45+
}
46+
47+
src_install() {
48+
emake DESTDIR="${ED}/usr/bin" install
49+
dosym -r /usr/bin/"${PN}" /usr/bin/podman_exporter
50+
51+
insinto /etc/default
52+
newins "contrib/systemd/system/prometheus-podman-exporter.sysconfig" "${PN}"
53+
systemd_dounit "contrib/systemd/system/prometheus-podman-exporter.service"
54+
systemd_douserunit "contrib/systemd/user/prometheus-podman-exporter.service"
55+
dosym prometheus-podman-exporter.service $(systemd_get_systemunitdir)/podman_exporter.service
56+
dosym prometheus-podman-exporter.service $(systemd_get_userunitdir)/podman_exporter.service
57+
58+
newconfd "contrib/openrc/prometheus-podman-exporter.confd" "${PN}"
59+
newinitd "contrib/openrc/prometheus-podman-exporter.initd" "${PN}"
60+
dosym "${PN}" /etc/conf.d/podman_exporter
61+
dosym "${PN}" /etc/init.d/podman_exporter
62+
63+
einstalldocs
64+
}

app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-9999.ebuild

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ PATCHES=(
3838
)
3939

4040
src_compile() {
41-
export BUILDTAGS="exclude_graphdriver_devicemapper"
42-
use !btrfs && BUILDTAGS+=",exclude_graphdriver_btrfs,btrfs_noversion"
41+
export BUILDTAGS=""
42+
use !btrfs && BUILDTAGS+=",exclude_graphdriver_btrfs"
4343
use systemd && BUILDTAGS+=",systemd"
4444
default
4545
}

0 commit comments

Comments
 (0)