1 |
commit: bbb16c006c4ce394da352eb74dd1ce7af381467c |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 16 14:42:39 2019 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 16 14:42:39 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbb16c00 |
7 |
|
8 |
app-metrics/bind_exporter: Update snapshot |
9 |
|
10 |
Package-Manager: Portage-2.3.71, Repoman-2.3.16 |
11 |
Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org> |
12 |
|
13 |
app-metrics/bind_exporter/Manifest | 1 + |
14 |
.../bind_exporter-0.2.0_p20190226.ebuild | 59 ++++++++++++++++++++++ |
15 |
2 files changed, 60 insertions(+) |
16 |
|
17 |
diff --git a/app-metrics/bind_exporter/Manifest b/app-metrics/bind_exporter/Manifest |
18 |
index 6606b65e97c..d3636d4d4bd 100644 |
19 |
--- a/app-metrics/bind_exporter/Manifest |
20 |
+++ b/app-metrics/bind_exporter/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST bind_exporter-0.2.0_p20180307.tar.gz 873965 BLAKE2B e59cbd2ccbd13dd60b673c6816e2d4c151e85ed159daa272996081814f7f276bc686b5d6a94db59e41085d57a12974bd2dcb8ef7696dba3940de705dfc800f25 SHA512 63331f877d988a41b86c0204569a1cd19cbfa176be9e811ef8fa5509d0af4a2f7dda0b27f9ba3b0f3df985f7c075f4535225298ce8808f97497d8bfa3b41256d |
23 |
+DIST bind_exporter-0.2.0_p20190226.tar.gz 874497 BLAKE2B ce04a168be6844d43ed2c358aa6469d5dbae1730825e4c3c038805f4bbf071bfae2936a6a5341832939e3ed249e5d484f2ca0908ac0e717cd2b5ced496c44a49 SHA512 95a8ae6f7c6470345d5a5f7e4e36eae282e5ca74393dd4372342f44732b54a6cc977ae037d6d16ae4ce6a9ac526b2e01721f5468a6469c30ae60ca59dfec8d5a |
24 |
|
25 |
diff --git a/app-metrics/bind_exporter/bind_exporter-0.2.0_p20190226.ebuild b/app-metrics/bind_exporter/bind_exporter-0.2.0_p20190226.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..06b1f355e34 |
28 |
--- /dev/null |
29 |
+++ b/app-metrics/bind_exporter/bind_exporter-0.2.0_p20190226.ebuild |
30 |
@@ -0,0 +1,59 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+inherit user golang-build golang-vcs-snapshot |
36 |
+ |
37 |
+EGO_PN="github.com/digitalocean/bind_exporter" |
38 |
+EXPORTER_COMMIT="9289b40af62a455ebd587ed4701dd543f4cc5877" |
39 |
+ARCHIVE_URI="https://${EGO_PN}/archive/${EXPORTER_COMMIT}.tar.gz -> ${P}.tar.gz" |
40 |
+KEYWORDS="~amd64" |
41 |
+ |
42 |
+DESCRIPTION="Prometheus exporter for BIND" |
43 |
+HOMEPAGE="https://github.com/digitalocean/bind_exporter" |
44 |
+SRC_URI="${ARCHIVE_URI}" |
45 |
+LICENSE="Apache-2.0" |
46 |
+SLOT="0" |
47 |
+IUSE="" |
48 |
+ |
49 |
+DEPEND="dev-util/promu" |
50 |
+ |
51 |
+pkg_setup() { |
52 |
+ enewgroup ${PN} |
53 |
+ enewuser ${PN} -1 -1 -1 ${PN} |
54 |
+} |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ default |
58 |
+ sed -i -e "/-s$/d" -e "s/{{.Revision}}/${EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die |
59 |
+} |
60 |
+ |
61 |
+src_compile() { |
62 |
+ pushd src/${EGO_PN} || die |
63 |
+ mkdir -p bin || die |
64 |
+ GOPATH="${S}" promu build -v --prefix bin || die |
65 |
+ popd || die |
66 |
+} |
67 |
+ |
68 |
+src_install() { |
69 |
+ pushd src/${EGO_PN} || die |
70 |
+ dobin bin/${PN} |
71 |
+ dodoc {README,CHANGELOG}.md |
72 |
+ popd || die |
73 |
+ keepdir /var/log/${PN} |
74 |
+ fowners ${PN}:${PN} /var/log/${PN} |
75 |
+ newinitd "${FILESDIR}"/${PN}.initd ${PN} |
76 |
+ newconfd "${FILESDIR}"/${PN}.confd ${PN} |
77 |
+} |
78 |
+ |
79 |
+pkg_postinst() { |
80 |
+ elog "Make sure BIND was built with libxml2 support. You can check with the" |
81 |
+ elog "following command: named -V | grep libxml2." |
82 |
+ elog "Configure BIND to open a statistics channel. It's recommended to run" |
83 |
+ elog "the bind_exporter next to BIND, so it's only necessary to open a port" |
84 |
+ elog "locally." |
85 |
+ elog "" |
86 |
+ elog "statistics-channels {" |
87 |
+ elog "inet 127.0.0.1 port 8053 allow { 127.0.0.1; };" |
88 |
+ elog "};" |
89 |
+} |