diff options
author | 2024-03-22 14:29:25 +0530 | |
---|---|---|
committer | 2024-03-23 08:29:05 +0000 | |
commit | fb6b3375c44746b0c038b38f4c4b41b02427ec87 (patch) | |
tree | 7f0809a487c204c3e1e5f7eb4b12d9965a9e957a /app-metrics | |
parent | app-containers/podman-tui: add 1.0.0 (diff) | |
download | gentoo-fb6b3375c44746b0c038b38f4c4b41b02427ec87.tar.gz gentoo-fb6b3375c44746b0c038b38f4c4b41b02427ec87.tar.bz2 gentoo-fb6b3375c44746b0c038b38f4c4b41b02427ec87.zip |
app-metrics/prometheus-podman-exporter: add 1.11.0
Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-metrics')
-rw-r--r-- | app-metrics/prometheus-podman-exporter/Manifest | 1 | ||||
-rw-r--r-- | app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-1.11.0.ebuild | 86 |
2 files changed, 87 insertions, 0 deletions
diff --git a/app-metrics/prometheus-podman-exporter/Manifest b/app-metrics/prometheus-podman-exporter/Manifest index c3ac5cb308e6..75f6786cc292 100644 --- a/app-metrics/prometheus-podman-exporter/Manifest +++ b/app-metrics/prometheus-podman-exporter/Manifest @@ -1,3 +1,4 @@ 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.7.0.tar.gz 12251956 BLAKE2B 91a6a217db3fd2b408344f738a7acad5c161adad6da53ef3d3750b73d9135022b0a4c18d85d0f79fc331344462e600574c8cd94477b57261adb29e5ffccdcc83 SHA512 3f9184681f1466ca4bbd32830c8fd233bb7e95af4df0b97cff606e39987d6c608b8847924d3b1c5fe98d058b32324dea86a142065bae7afdb0f99e4cfe0d9b52 DIST prometheus-podman-exporter-1.8.0.tar.gz 12253412 BLAKE2B 673986f2acce525ab6c9d0858ca6c193bc292bc5e6c8ad50f81921a8f66673c29f724ad562efefb6fe63d556e491432b593b7581af3a01faf44279013a2ec209 SHA512 eb647d8d5c7d30a6676fe192ac2f8c3be5ee67525206c67ac9d0dc06f2fd5fb7dbad838f53fa75f550f5dcfa5c188bd2eb0e7c46b13fe2795b38187ac2fdb81a diff --git a/app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-1.11.0.ebuild b/app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-1.11.0.ebuild new file mode 100644 index 000000000000..4452311819fe --- /dev/null +++ b/app-metrics/prometheus-podman-exporter/prometheus-podman-exporter-1.11.0.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2024 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=( + "${T}/gentoo-specific-systemd-service.patch" +) + +src_prepare() { + cat <<-'EOF' > "${T}/gentoo-specific-systemd-service.patch" + --- a/contrib/systemd/system/prometheus-podman-exporter.service + +++ b/contrib/systemd/system/prometheus-podman-exporter.service + @@ -2,7 +2,7 @@ + Description=Prometheus exporter for podman (v4) machine + [Service] + Restart=on-failure + -EnvironmentFile=-/etc/sysconfig/prometheus-podman-exporter + +EnvironmentFile=-/etc/default/prometheus-podman-exporter + ExecStart=/usr/bin/prometheus-podman-exporter $PODMAN_EXPORTER_OPTS + ExecReload=/bin/kill -HUP $MAINPID + TimeoutStopSec=20s + --- a/contrib/systemd/user/prometheus-podman-exporter.service + +++ b/contrib/systemd/user/prometheus-podman-exporter.service + @@ -2,7 +2,7 @@ + Description=Prometheus exporter for podman (v4) machine + [Service] + Restart=on-failure + -EnvironmentFile=-/etc/sysconfig/prometheus-podman-exporter + +EnvironmentFile=-/etc/default/prometheus-podman-exporter + EnvironmentFile=-%h/.config/prometheus-podman-exporter + ExecStart=/usr/bin/prometheus-podman-exporter $PODMAN_EXPORTER_OPTS + ExecReload=/bin/kill -HUP $MAINPID + EOF + default +} + +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 +} |