summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2022-06-19 20:38:32 -0500
committerWilliam Hubbs <williamh@gentoo.org>2022-06-19 20:40:43 -0500
commitae2f4361e6f6fc3bfa84aa696dae48ebe6c609a8 (patch)
tree73963498d188996cd96e73ac36070eb85e1d259d /app-metrics
parentsys-apps/dbus: drop which, bash dependency (diff)
downloadgentoo-ae2f4361e6f6fc3bfa84aa696dae48ebe6c609a8.tar.gz
gentoo-ae2f4361e6f6fc3bfa84aa696dae48ebe6c609a8.tar.bz2
gentoo-ae2f4361e6f6fc3bfa84aa696dae48ebe6c609a8.zip
app-metrics/blackbox_exporter: add 0.21.1
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-metrics')
-rw-r--r--app-metrics/blackbox_exporter/Manifest2
-rw-r--r--app-metrics/blackbox_exporter/blackbox_exporter-0.21.1.ebuild56
2 files changed, 58 insertions, 0 deletions
diff --git a/app-metrics/blackbox_exporter/Manifest b/app-metrics/blackbox_exporter/Manifest
index b238e05fe95a..f6e13545469b 100644
--- a/app-metrics/blackbox_exporter/Manifest
+++ b/app-metrics/blackbox_exporter/Manifest
@@ -1,5 +1,7 @@
DIST blackbox_exporter-0.18.0.tar.gz 2614990 BLAKE2B 8c6681f3b122b3d83980c74d888442bde4bbbbd02e34a33f1560494d724f4f596e87d2b87a0702d4c860e7bbc3720d70d49d8e08ae9e74b8a6e9abed907d74bd SHA512 6579d190c755515d4e5f05e2b6ed4d811010874dba1e16eaf6052e97c655f87aec33550f22ff173d2f3bbc77d091fb4fccad059f62ca6fbb33a372d48ae692f0
DIST blackbox_exporter-0.19.0.tar.gz 72280 BLAKE2B 8e6336d20c6225d58b873a270cb7bbc41bc85094fc5eebd228828128877d671b36bc9f283842bd3498e53bd138a155dca3f6843f0aca90eb542b78ad0cd276ff SHA512 86b11bc7afa0d8261d0961ca21563047b1ea8bfd1a9d4d034c393a8b098b035147883a44011cdafca8e9795a5e9a043cc15235375990f3424137af63469a8878
+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 cloud.google.com%2Fgo%2F@v%2Fv0.26.0.mod 27 BLAKE2B 814b0fa8f12d5ce6171fa629b5a7eb34e0e882cc0c5430986896bb38c243e08dc83098f271227f4ba019e78f16dc97fbb381e833aff1819833d243b08add916b SHA512 5132f3438533427c0ab0fbb7a12112a7830ea9122662ed46019ff89c71d9cf80c02edc32dd5c892da572031b5a2cce100f2602fa6a19bea6be7c02781f701273
DIST cloud.google.com%2Fgo%2F@v%2Fv0.34.0.mod 27 BLAKE2B 814b0fa8f12d5ce6171fa629b5a7eb34e0e882cc0c5430986896bb38c243e08dc83098f271227f4ba019e78f16dc97fbb381e833aff1819833d243b08add916b SHA512 5132f3438533427c0ab0fbb7a12112a7830ea9122662ed46019ff89c71d9cf80c02edc32dd5c892da572031b5a2cce100f2602fa6a19bea6be7c02781f701273
DIST github.com%2F!burnt!sushi%2Ftoml%2F@v%2Fv0.3.1.mod 34 BLAKE2B ce54a247aef91043830bdf0603c8452ba38eceb1495af6e7a74c9119234a0dc5cd080cb25258c28f5e270acf91189a5ed33e361cbf17de2be5e37dadbda1d90d SHA512 320941bc3b7fb8bc595e6135cbc513a7583d129f0cd92508055291e141191066303cf75148e25198c21f6c6c539a790ea3210f3ecf5de6a2a03b70c753091146
diff --git a/app-metrics/blackbox_exporter/blackbox_exporter-0.21.1.ebuild b/app-metrics/blackbox_exporter/blackbox_exporter-0.21.1.ebuild
new file mode 100644
index 000000000000..702f21755fc4
--- /dev/null
+++ b/app-metrics/blackbox_exporter/blackbox_exporter-0.21.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit fcaps go-module systemd
+GIT_COMMIT=e0d5e44
+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/~williamh/dist/${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
+}