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 BCB77138331 for ; Tue, 27 Feb 2018 12:30:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E1CD3E096D; Tue, 27 Feb 2018 12:30:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 B278FE096D for ; Tue, 27 Feb 2018 12:30:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 168EC335C2C for ; Tue, 27 Feb 2018 12:30:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 26EB61EA for ; Tue, 27 Feb 2018 12:30:09 +0000 (UTC) From: "Manuel Rüger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Manuel Rüger" Message-ID: <1519734436.25b44c32530a8826c12ce5121d827c15bfd1b8cc.mrueg@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/prometheus-blackbox_exporter/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/prometheus-blackbox_exporter/Manifest net-analyzer/prometheus-blackbox_exporter/prometheus-blackbox_exporter-0.12.0.ebuild X-VCS-Directories: net-analyzer/prometheus-blackbox_exporter/ X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rüger X-VCS-Revision: 25b44c32530a8826c12ce5121d827c15bfd1b8cc X-VCS-Branch: master Date: Tue, 27 Feb 2018 12:30:09 +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-Archives-Salt: 302e56e8-3e8d-4f07-b0fa-c2829215acda X-Archives-Hash: db1bec91c79b14b4678e73209fddd2b3 commit: 25b44c32530a8826c12ce5121d827c15bfd1b8cc Author: Manuel Rüger gentoo org> AuthorDate: Tue Feb 27 12:27:16 2018 +0000 Commit: Manuel Rüger gentoo org> CommitDate: Tue Feb 27 12:27:16 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25b44c32 net-analyzer/prometheus-blackbox_exporter: Version bump to 0.12.0 Package-Manager: Portage-2.3.24, Repoman-2.3.6 net-analyzer/prometheus-blackbox_exporter/Manifest | 1 + .../prometheus-blackbox_exporter-0.12.0.ebuild | 54 ++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/net-analyzer/prometheus-blackbox_exporter/Manifest b/net-analyzer/prometheus-blackbox_exporter/Manifest index a1a5b146887..ea54e3c8ac0 100644 --- a/net-analyzer/prometheus-blackbox_exporter/Manifest +++ b/net-analyzer/prometheus-blackbox_exporter/Manifest @@ -1 +1,2 @@ DIST prometheus-blackbox_exporter-0.11.0.tar.gz 2143849 BLAKE2B e9a35b4b5adca955c1ac5b2219dd892112f6b3bd2dfe825f6393daca9dee3cba943309be024cc56f3d682a8544a4f78949072de620a4e6b07da61a740a84d55f SHA512 9bc397b846cdaf8cc0054100adffb39bbe2e5cf6743a61565e90f2e4298d8a165a138c985431937083fd88ccac065e278d8c9eab8a83015bf58fddb6da8ea812 +DIST prometheus-blackbox_exporter-0.12.0.tar.gz 2202465 BLAKE2B e3b082f8a491b531b0caf3331ecd391bf8734df0915ccbb7988ac1e67e57436bd45169aa403d5511fbb44eb176f89836ad8c04c491f5194f90f9f8a3b686a656 SHA512 2c98c0f4127bdd04ac54eb182c5468fd38121558f85aa8b4bec860f783f266b144df3153da0b028fdb84a4131a4e374a969bb09ce3a781ddf95f0a008c11bbb6 diff --git a/net-analyzer/prometheus-blackbox_exporter/prometheus-blackbox_exporter-0.12.0.ebuild b/net-analyzer/prometheus-blackbox_exporter/prometheus-blackbox_exporter-0.12.0.ebuild new file mode 100644 index 00000000000..40cd040b804 --- /dev/null +++ b/net-analyzer/prometheus-blackbox_exporter/prometheus-blackbox_exporter-0.12.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit fcaps user golang-build golang-vcs-snapshot + +EGO_PN="github.com/prometheus/blackbox_exporter" +EGIT_COMMIT="v${PV/_rc/-rc.}" +BLACKBOX_EXPORTER_COMMIT="4a22506" +ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="Prometheus exporter for blackbox probing via HTTP, HTTPS, DNS, TCP and ICMP" +HOMEPAGE="https://github.com/prometheus/blackbox_exporter" +SRC_URI="${ARCHIVE_URI}" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +DEPEND="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}}/${BLACBOX_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die +} + +src_compile() { + pushd src/${EGO_PN} || die + mkdir -p bin || die + GOPATH="${S}" promu build -v --prefix blackbox_exporter || die + popd || die +} + +src_install() { + pushd src/${EGO_PN} || die + dobin blackbox_exporter/blackbox_exporter + dodoc {README,CONFIGURATION}.md blackbox.yml + insinto /etc/blackbox_exporter + newins example.yml blackbox.yml.example + popd || die + 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} +}