summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2023-10-28 14:29:05 -0700
committerJohn Helmert III <ajak@gentoo.org>2023-10-28 14:39:58 -0700
commit55b6972bdc5a750b114f66086ee5c79d37c32ec1 (patch)
tree1603e7e247c49ce7b8b2cb1aaa9b0e54012c9a83 /app-metrics/blackbox_exporter
parentnet-libs/mbedtls: Stabilize 2.28.5 x86, #916397 (diff)
downloadgentoo-55b6972bdc5a750b114f66086ee5c79d37c32ec1.tar.gz
gentoo-55b6972bdc5a750b114f66086ee5c79d37c32ec1.tar.bz2
gentoo-55b6972bdc5a750b114f66086ee5c79d37c32ec1.zip
app-metrics/blackbox_exporter: add 0.24.0
Bug: https://bugs.gentoo.org/883651 Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'app-metrics/blackbox_exporter')
-rw-r--r--app-metrics/blackbox_exporter/Manifest2
-rw-r--r--app-metrics/blackbox_exporter/blackbox_exporter-0.24.0.ebuild55
2 files changed, 57 insertions, 0 deletions
diff --git a/app-metrics/blackbox_exporter/Manifest b/app-metrics/blackbox_exporter/Manifest
index 578db65eb20c..151c9bbbec2b 100644
--- a/app-metrics/blackbox_exporter/Manifest
+++ b/app-metrics/blackbox_exporter/Manifest
@@ -1,2 +1,4 @@
DIST blackbox_exporter-0.21.1-deps.tar.xz 55088548 BLAKE2B a078e62ea071df29de3d8b7cd7fc957cd0eccdf076b3257c29513b0d15deaae383fc22273731b6a382c09ce6c51f2666bcd1430bf3f5e4b017189a32889048e1 SHA512 92f46ee0382c85399fe8d4d43b38e77ea81971000dc1b4bcff2d9fbe2b55a5936b712e2345690a5005b68daddde0419c20f2ff5def4058f6eb7a2d7972e8c0af
DIST blackbox_exporter-0.21.1.tar.gz 79415 BLAKE2B 3587b01c33c47f370d55120cf4fac5ceeabdb2e89ea14ca588def902c67b237e78bca755ea5eac102d6f081c60a7bd5e1e6e5de9c2e2df9cb78c2f6856c5ee17 SHA512 a4d5187db9c99279d01d22c42c6569be836def2a033bf60c8f0a3131d329d8ac934b5ee30d2e9f185c4743c88ca287803165f7910378eb2d1ff27ae7671ab690
+DIST blackbox_exporter-0.24.0-deps.tar.xz 44271112 BLAKE2B acda81de9f45e7558c554566cef767c25ba59788ff31859bca16bb6bb8e64a8e7405969482ce96d64ee7df425264a253b6ca5364b91795b77a785d7d304a1964 SHA512 21e2c709ee44d4aedf796fd9a8d2eccd884978ccd770e1776653e7c5cc16a885f3f985b59705f4862d71520b9e78bce7d7fdb876531c27ccf8d9cf13da14febd
+DIST blackbox_exporter-0.24.0.tar.gz 69061 BLAKE2B a82137bfe8b911468ec05360f69a612e3bf2bb4094ce0d44b7499345484159beac06fc0d7f657ff4982b839d2d90759c04590eea1f3192a1e84d3dfb9a3ccfa8 SHA512 0c2c19d5a44465838d17c46318804416d32ed229c9d882d064559c2fec41d82029d0f5b7e5c8e6fb6e3473c41b53ae2a4a6c6e65ffacac3afe4263a48c698c29
diff --git a/app-metrics/blackbox_exporter/blackbox_exporter-0.24.0.ebuild b/app-metrics/blackbox_exporter/blackbox_exporter-0.24.0.ebuild
new file mode 100644
index 000000000000..5ade1463090d
--- /dev/null
+++ b/app-metrics/blackbox_exporter/blackbox_exporter-0.24.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit fcaps go-module systemd
+GIT_COMMIT=0dd0455
+MY_PV="v${PV/_rc/-rc.}"
+
+DESCRIPTION="Prometheus exporter for blackbox probing via HTTP, HTTPS, DNS, TCP and ICMP"
+HOMEPAGE="https://github.com/prometheus/blackbox_exporter"
+SRC_URI="https://github.com/prometheus/blackbox_exporter/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://dev.gentoo.org/~ajak/dist/${CATEGORY}/${PN}/${P}-deps.tar.xz"
+
+LICENSE="Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+COMMON_DEPEND="acct-group/blackbox_exporter
+ acct-user/blackbox_exporter"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}"
+BDEPEND="dev-util/promu"
+
+FILECAPS=(
+ cap_net_raw usr/bin/blackbox_exporter
+)
+
+# tests require the network
+RESTRICT+=" test "
+
+src_prepare() {
+ default
+ sed -i \
+ -e "s/{{.Branch}}/Head/" \
+ -e "s/{{.Revision}}/${GIT_COMMIT}/" \
+ -e "s/{{.Version}}/${PV}/" .promu.yml || die
+}
+
+src_compile() {
+ promu build -v --prefix bin || die
+}
+
+src_install() {
+ newbin bin/${P} ${PN}
+ dodoc {README,CHANGELOG,CONFIGURATION}.md blackbox.yml
+ insinto /etc/blackbox_exporter
+ newins example.yml blackbox.yml
+ keepdir /var/lib/blackbox_exporter /var/log/blackbox_exporter
+ systemd_dounit "${FILESDIR}"/blackbox_exporter.service
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}.logrotated" "${PN}"
+ fowners ${PN}:${PN} /var/lib/blackbox_exporter /var/log/blackbox_exporter
+}