diff options
author | William Hubbs <williamh@gentoo.org> | 2020-07-05 12:10:07 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2020-07-05 12:17:40 -0500 |
commit | ee4ed6e5e7a2c75d3414787a2b4c204dd35b1f6a (patch) | |
tree | 85a632d84c82c91e617ef99ecffae1795331b26c /app-metrics | |
parent | app-metrics/bind_exporter: remove old (diff) | |
download | gentoo-ee4ed6e5e7a2c75d3414787a2b4c204dd35b1f6a.tar.gz gentoo-ee4ed6e5e7a2c75d3414787a2b4c204dd35b1f6a.tar.bz2 gentoo-ee4ed6e5e7a2c75d3414787a2b4c204dd35b1f6a.zip |
app-metrics/blackbox_exporter: 0.17.0 bump
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-metrics')
-rw-r--r-- | app-metrics/blackbox_exporter/Manifest | 1 | ||||
-rw-r--r-- | app-metrics/blackbox_exporter/blackbox_exporter-0.17.0.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/app-metrics/blackbox_exporter/Manifest b/app-metrics/blackbox_exporter/Manifest index 05c86972c8e3..774f4cb710b1 100644 --- a/app-metrics/blackbox_exporter/Manifest +++ b/app-metrics/blackbox_exporter/Manifest @@ -1,2 +1,3 @@ DIST blackbox_exporter-0.15.1.tar.gz 2120525 BLAKE2B c21a621dce663ccbc184c87b66e894ddc6a94bee9bbd2b9fb432a4d349afb35410f07ad150e946c5f8eb9ec8e6e7f2e6d4cbcafe118e8b2efe34902fbd0bf38a SHA512 2c7d0989bc70982a0fd528c7c6ed5ec6686f5e93db0a90db2b06e4e578503443da0750aaa2d6a01ae4fcd4c722eef522c0e06b019aa59a2eb837f233e317d4e2 DIST blackbox_exporter-0.16.0.tar.gz 2121367 BLAKE2B 92c55dbc3f47d7a2d8c37ad116857dd1d7314a6684d9f228039b09cc086edf72bdf5e0c2cc770ce45d687c45a38f6de72e612c0491ec66f836bed28b75b2e5a9 SHA512 85103b62e345ab5d59626e658047ac75649f9ef991c9bbaff32b95ea75ec2da2bf916573e664520766158805c6cf24163f2850c885a594d32b4f9c4c9dbed1a8 +DIST blackbox_exporter-0.17.0.tar.gz 2615179 BLAKE2B 3746ceef8ffdfe017921a78873c09f196d82c3874aa24a0795b56d8858c355f2a4f9f557c65708037358fdbe8445a680c56a3725e7af4d634ef9396419bb4221 SHA512 9e79d083c5c8caebbc19b6feef04dd189bc91a72dcb3aa946a96543fbe28ae2c49cafeed3f42618747661421897adc17988ffc6cf0d7054cf0a385b85eeafc61 diff --git a/app-metrics/blackbox_exporter/blackbox_exporter-0.17.0.ebuild b/app-metrics/blackbox_exporter/blackbox_exporter-0.17.0.ebuild new file mode 100644 index 000000000000..9d7d5ee5b741 --- /dev/null +++ b/app-metrics/blackbox_exporter/blackbox_exporter-0.17.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit fcaps go-module user + +EGO_PN=github.com/prometheus/blackbox_exporter +MY_PV="v${PV/_rc/-rc.}" +GIT_COMMIT=1bc7680 + +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" + +LICENSE="Apache-2.0 BSD BSD-2 MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +BDEPEND="dev-util/promu" + +FILECAPS=( + cap_net_raw usr/bin/blackbox_exporter +) + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_prepare() { + default + sed -i -e "s/{{.Revision}}/${GIT_COMMIT}/" .promu.yml || die +} + +src_compile() { + mkdir -p bin || die + promu build -v --prefix bin || die +} + +src_install() { + dobin bin/* + dodoc {README,CONFIGURATION}.md blackbox.yml + insinto /etc/blackbox_exporter + newins example.yml blackbox.yml.example + keepdir /var/lib/blackbox_exporter /var/log/blackbox_exporter + fowners ${PN}:${PN} /var/lib/blackbox_exporter /var/log/blackbox_exporter + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" +} |