From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4E1321382C5 for ; Mon, 3 May 2021 22:38:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 67576E088C; Mon, 3 May 2021 22:38:00 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4CD54E088C for ; Mon, 3 May 2021 22:38:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7D068340A5D for ; Mon, 3 May 2021 22:37:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 38B0D63D for ; Mon, 3 May 2021 22:37:58 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1620081470.13b2d4a97078e21b981c0c0ed1e9ad1952fc78ac.williamh@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-metrics/blackbox_exporter/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-metrics/blackbox_exporter/blackbox_exporter-0.18.0-r2.ebuild X-VCS-Directories: app-metrics/blackbox_exporter/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 13b2d4a97078e21b981c0c0ed1e9ad1952fc78ac X-VCS-Branch: master Date: Mon, 3 May 2021 22:37:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f9689fb2-6a7f-4e32-93d9-6826cc732498 X-Archives-Hash: 1e672625bf666792df5bf45259b76f8a commit: 13b2d4a97078e21b981c0c0ed1e9ad1952fc78ac Author: William Hubbs gentoo org> AuthorDate: Mon May 3 22:27:53 2021 +0000 Commit: William Hubbs gentoo org> CommitDate: Mon May 3 22:37:50 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13b2d4a9 app-metrics/blackbox_exporter: 0.18.2 rev bump - clean up binary renaming - disable tests (they require the network) Closes: https://bugs.gentoo.org/701232 Closes: https://bugs.gentoo.org/731006 Closes: https://bugs.gentoo.org/781869 Signed-off-by: William Hubbs gentoo.org> .../blackbox_exporter-0.18.0-r2.ebuild | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/app-metrics/blackbox_exporter/blackbox_exporter-0.18.0-r2.ebuild b/app-metrics/blackbox_exporter/blackbox_exporter-0.18.0-r2.ebuild new file mode 100644 index 00000000000..f91c8f04e99 --- /dev/null +++ b/app-metrics/blackbox_exporter/blackbox_exporter-0.18.0-r2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit fcaps go-module systemd +GIT_COMMIT=1bc7680 +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" + +LICENSE="Apache-2.0 BSD BSD-2 MIT" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND="dev-util/promu" + +DEPEND=" + acct-group/blackbox_exporter + acct-user/blackbox_exporter" + +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/{{.Revision}}/${PV}/" .promu.yml || die +} + +src_compile() { + 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 + keepdir /var/lib/blackbox_exporter /var/log/blackbox_exporter + fowners ${PN}:${PN} /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}" +}