app-metrics/prometheus-podman-exporter: cleanup

Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
From: https://github.com/gentoo/gentoo/pull/41170
Signed-off-by: Zac Medico <zmedico@gentoo.org>
This commit is contained in:
Rahil Bhimjiani 2025-03-19 18:07:45 +05:30 committed by Zac Medico
parent f00f7f8563
commit f0b614bcd1
No known key found for this signature in database
GPG Key ID: D075FB8C104A3D20
3 changed files with 0 additions and 118 deletions

View File

@ -1,5 +1,3 @@
DIST prometheus-podman-exporter-1.10.1.tar.gz 13578778 BLAKE2B e854a61ac1ac7237f0ab4bb7d6d2f39f3ebcf9c32f45e4b44c551aa45a8a97902084f0f24180a1253d0c664907fa1dcb5dc6ac587d31387c708c83388c2c9ed9 SHA512 f8da5b88e6d88d02bc48c2fcd627aca0e88d8264aa3c971b2e251fd7641b329fbe66686d12e2dfca8fe40cc1488359caa1a345844f32e45c79a28bc172bbd501
DIST prometheus-podman-exporter-1.11.0.tar.gz 13883834 BLAKE2B c8c7334d08c4fa86deb1c8d07cbea1468dbc815d0812fc7dd563a52a29573af8c4ae003e8d5aad80e997770187abf7c5f50ed841a1bbec327f220c676dd829a6 SHA512 f976d77940c08202e629c27ba91810f1d9b03ee6b3ebbbcd1568491aec70eba2fae70e6e5ec261105bcd503e5508a95f75eb5a0e5e7916bcbb17205d8a17f7da
DIST prometheus-podman-exporter-1.12.0.tar.gz 13735898 BLAKE2B 77f1595a2ac6df2d6875b3a3717e0493a5e917872dc8353f3b1290a03088e9f580dc7c138e20109a02c00819963779bee93e8d7abaac70528ea9a9570422b77d SHA512 85505ac8cc54606e2c2a7a0dd82a53bde4135b75f94ddde8d0487d7d5d1f3b20751f27d990f52b288d5969747ed3033e15dfdf1d3b51c8ef67a3b125bcaaa079
DIST prometheus-podman-exporter-1.14.1.tar.gz 14044762 BLAKE2B 33163636da788130bbb49de01145357fbcb3e0b3912aa587df97e1b1518002ea8b9bf9c282b952723f175023c4c3e3a87ab9b71b215cfafe23e636c41be5e40c SHA512 2045c960f7ca80b759151f11a3a825dba30c7ba4da7dc1ce05451e3c16af44874c27f9422a6ad5ec145b131aa32b9db586c73aa2c063ae1e077611e4dce5afa3
DIST prometheus-podman-exporter-1.15.0.tar.gz 14130668 BLAKE2B 930a816321245c3fd849fe1b2a869eb8afa404b59ad646fbf84a779404b297ac53f1609fdc8276e69bbb979dc569fbfafa9159535ddbc378fedc5b63a22a8e96 SHA512 767d0b54629b1c184df11289dac6793b84bf3b16e0c4cc7a749b6b9bc06586bce816443dbe387b6038813f69438e8a7d831b582cf89d7ea91d4e371936f7ce2e

View File

@ -1,58 +0,0 @@
# Copyright 1999-2025 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 systemd"
# there are no test files so prevent tests
RESTRICT="test"
PATCHES=(
"${FILESDIR}/${PN}-1.10.1-gentoo-systemd.patch"
)
src_compile() {
export BUILDTAGS="exclude_graphdriver_devicemapper"
use !btrfs && BUILDTAGS+=",exclude_graphdriver_btrfs,btrfs_noversion"
use systemd && BUILDTAGS+=",systemd"
default
}
src_install() {
emake DESTDIR="${ED}/usr/bin" install
dosym -r /usr/bin/"${PN}" /usr/bin/podman_exporter
insinto /etc/default
newins "contrib/systemd/system/prometheus-podman-exporter.sysconfig" "${PN}"
systemd_dounit "contrib/systemd/system/prometheus-podman-exporter.service"
systemd_douserunit "contrib/systemd/user/prometheus-podman-exporter.service"
dosym prometheus-podman-exporter.service $(systemd_get_systemunitdir)/podman_exporter.service
dosym prometheus-podman-exporter.service $(systemd_get_userunitdir)/podman_exporter.service
newconfd "contrib/openrc/prometheus-podman-exporter.confd" "${PN}"
newinitd "contrib/openrc/prometheus-podman-exporter.initd" "${PN}"
dosym "${PN}" /etc/conf.d/podman_exporter
dosym "${PN}" /etc/init.d/podman_exporter
einstalldocs
}

View File

@ -1,58 +0,0 @@
# Copyright 1999-2025 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 systemd"
# there are no test files so prevent tests
RESTRICT="test"
PATCHES=(
"${FILESDIR}/${PN}-1.10.1-gentoo-systemd.patch"
)
src_compile() {
export BUILDTAGS="exclude_graphdriver_devicemapper"
use !btrfs && BUILDTAGS+=",exclude_graphdriver_btrfs,btrfs_noversion"
use systemd && BUILDTAGS+=",systemd"
default
}
src_install() {
emake DESTDIR="${ED}/usr/bin" install
dosym -r /usr/bin/"${PN}" /usr/bin/podman_exporter
insinto /etc/default
newins "contrib/systemd/system/prometheus-podman-exporter.sysconfig" "${PN}"
systemd_dounit "contrib/systemd/system/prometheus-podman-exporter.service"
systemd_douserunit "contrib/systemd/user/prometheus-podman-exporter.service"
dosym prometheus-podman-exporter.service $(systemd_get_systemunitdir)/podman_exporter.service
dosym prometheus-podman-exporter.service $(systemd_get_userunitdir)/podman_exporter.service
newconfd "contrib/openrc/prometheus-podman-exporter.confd" "${PN}"
newinitd "contrib/openrc/prometheus-podman-exporter.initd" "${PN}"
dosym "${PN}" /etc/conf.d/podman_exporter
dosym "${PN}" /etc/init.d/podman_exporter
einstalldocs
}