1 |
commit: 25b44c32530a8826c12ce5121d827c15bfd1b8cc |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 27 12:27:16 2018 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 27 12:27:16 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25b44c32 |
7 |
|
8 |
net-analyzer/prometheus-blackbox_exporter: Version bump to 0.12.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
net-analyzer/prometheus-blackbox_exporter/Manifest | 1 + |
13 |
.../prometheus-blackbox_exporter-0.12.0.ebuild | 54 ++++++++++++++++++++++ |
14 |
2 files changed, 55 insertions(+) |
15 |
|
16 |
diff --git a/net-analyzer/prometheus-blackbox_exporter/Manifest b/net-analyzer/prometheus-blackbox_exporter/Manifest |
17 |
index a1a5b146887..ea54e3c8ac0 100644 |
18 |
--- a/net-analyzer/prometheus-blackbox_exporter/Manifest |
19 |
+++ b/net-analyzer/prometheus-blackbox_exporter/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST prometheus-blackbox_exporter-0.11.0.tar.gz 2143849 BLAKE2B e9a35b4b5adca955c1ac5b2219dd892112f6b3bd2dfe825f6393daca9dee3cba943309be024cc56f3d682a8544a4f78949072de620a4e6b07da61a740a84d55f SHA512 9bc397b846cdaf8cc0054100adffb39bbe2e5cf6743a61565e90f2e4298d8a165a138c985431937083fd88ccac065e278d8c9eab8a83015bf58fddb6da8ea812 |
22 |
+DIST prometheus-blackbox_exporter-0.12.0.tar.gz 2202465 BLAKE2B e3b082f8a491b531b0caf3331ecd391bf8734df0915ccbb7988ac1e67e57436bd45169aa403d5511fbb44eb176f89836ad8c04c491f5194f90f9f8a3b686a656 SHA512 2c98c0f4127bdd04ac54eb182c5468fd38121558f85aa8b4bec860f783f266b144df3153da0b028fdb84a4131a4e374a969bb09ce3a781ddf95f0a008c11bbb6 |
23 |
|
24 |
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 |
25 |
new file mode 100644 |
26 |
index 00000000000..40cd040b804 |
27 |
--- /dev/null |
28 |
+++ b/net-analyzer/prometheus-blackbox_exporter/prometheus-blackbox_exporter-0.12.0.ebuild |
29 |
@@ -0,0 +1,54 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+inherit fcaps user golang-build golang-vcs-snapshot |
35 |
+ |
36 |
+EGO_PN="github.com/prometheus/blackbox_exporter" |
37 |
+EGIT_COMMIT="v${PV/_rc/-rc.}" |
38 |
+BLACKBOX_EXPORTER_COMMIT="4a22506" |
39 |
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
40 |
+KEYWORDS="~amd64" |
41 |
+ |
42 |
+DESCRIPTION="Prometheus exporter for blackbox probing via HTTP, HTTPS, DNS, TCP and ICMP" |
43 |
+HOMEPAGE="https://github.com/prometheus/blackbox_exporter" |
44 |
+SRC_URI="${ARCHIVE_URI}" |
45 |
+LICENSE="Apache-2.0" |
46 |
+SLOT="0" |
47 |
+IUSE="" |
48 |
+ |
49 |
+DEPEND="dev-util/promu" |
50 |
+ |
51 |
+FILECAPS=( |
52 |
+ cap_net_raw usr/bin/blackbox_exporter |
53 |
+) |
54 |
+ |
55 |
+pkg_setup() { |
56 |
+ enewgroup ${PN} |
57 |
+ enewuser ${PN} -1 -1 -1 ${PN} |
58 |
+} |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ default |
62 |
+ sed -i -e "s/{{.Revision}}/${BLACBOX_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die |
63 |
+} |
64 |
+ |
65 |
+src_compile() { |
66 |
+ pushd src/${EGO_PN} || die |
67 |
+ mkdir -p bin || die |
68 |
+ GOPATH="${S}" promu build -v --prefix blackbox_exporter || die |
69 |
+ popd || die |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ pushd src/${EGO_PN} || die |
74 |
+ dobin blackbox_exporter/blackbox_exporter |
75 |
+ dodoc {README,CONFIGURATION}.md blackbox.yml |
76 |
+ insinto /etc/blackbox_exporter |
77 |
+ newins example.yml blackbox.yml.example |
78 |
+ popd || die |
79 |
+ keepdir /var/lib/blackbox_exporter /var/log/blackbox_exporter |
80 |
+ fowners ${PN}:${PN} /var/lib/blackbox_exporter /var/log/blackbox_exporter |
81 |
+ newinitd "${FILESDIR}"/${PN}.initd ${PN} |
82 |
+ newconfd "${FILESDIR}"/${PN}.confd ${PN} |
83 |
+} |