1 |
commit: f96fe70c81dcc870ea86f4a6e401441fdd11df33 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 2 23:14:11 2020 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 2 23:18:22 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f96fe70c |
7 |
|
8 |
app-metrics/bind_exporter: 0.3.0 bump |
9 |
|
10 |
Signed-off-by: William Hubbs <williamh <AT> gentoo.org> |
11 |
|
12 |
app-metrics/bind_exporter/Manifest | 1 + |
13 |
.../bind_exporter/bind_exporter-0.3.0.ebuild | 52 ++++++++++++++++++++++ |
14 |
2 files changed, 53 insertions(+) |
15 |
|
16 |
diff --git a/app-metrics/bind_exporter/Manifest b/app-metrics/bind_exporter/Manifest |
17 |
index 89407b19338..11a260628b3 100644 |
18 |
--- a/app-metrics/bind_exporter/Manifest |
19 |
+++ b/app-metrics/bind_exporter/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST bind_exporter-0.2.0_p20190226.tar.gz 874497 BLAKE2B ce04a168be6844d43ed2c358aa6469d5dbae1730825e4c3c038805f4bbf071bfae2936a6a5341832939e3ed249e5d484f2ca0908ac0e717cd2b5ced496c44a49 SHA512 95a8ae6f7c6470345d5a5f7e4e36eae282e5ca74393dd4372342f44732b54a6cc977ae037d6d16ae4ce6a9ac526b2e01721f5468a6469c30ae60ca59dfec8d5a |
22 |
+DIST bind_exporter-0.3.0.tar.gz 1796507 BLAKE2B a79b9e0d159d3deb83f1a040325ad34bc0d4ae50b6af205dce4ebf8d7152ccbd4b7d46fda40bf76db953996ddf4237ca13058250478b08cca51b8bea08ccc31b SHA512 762901a63a9493f852e5514429f55b10400931f0a77d2e11c7565e93e1ff759eb30d3bbc9278451bb9df358a983aa099bd55cf57241cf36187d2789c89a3852d |
23 |
|
24 |
diff --git a/app-metrics/bind_exporter/bind_exporter-0.3.0.ebuild b/app-metrics/bind_exporter/bind_exporter-0.3.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..bd00e4736b9 |
27 |
--- /dev/null |
28 |
+++ b/app-metrics/bind_exporter/bind_exporter-0.3.0.ebuild |
29 |
@@ -0,0 +1,52 @@ |
30 |
+# Copyright 1999-2020 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+inherit go-module |
35 |
+GIT_COMMIT=c34ff3d6b4817f42e74b2b05b3797cf99683b4a9 |
36 |
+ |
37 |
+DESCRIPTION="Prometheus exporter for BIND" |
38 |
+HOMEPAGE="https://github.com/digitalocean/bind_exporter" |
39 |
+SRC_URI="https://github.com/digitalocean/bind_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="Apache-2.0 BSD MIT" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64" |
44 |
+IUSE="" |
45 |
+ |
46 |
+COMMON_DEPEND="acct-group/bind_exporter |
47 |
+ acct-user/bind_exporter" |
48 |
+DEPEND="${COMMON_DEPEND}" |
49 |
+RDEPEND="${COMMON_DEPEND}" |
50 |
+BDEPEND="dev-util/promu" |
51 |
+ |
52 |
+src_prepare() { |
53 |
+ default |
54 |
+ sed -i -e "/-s$/d" -e "s/{{.Revision}}/${GIT_COMMIT}/" .promu.yml || die |
55 |
+} |
56 |
+ |
57 |
+src_compile() { |
58 |
+ mkdir -p bin || die |
59 |
+ promu build -v --prefix bin || die |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ dobin bin/${PN} |
64 |
+ dodoc {README,CHANGELOG}.md |
65 |
+ newinitd "${FILESDIR}"/${PN}.initd ${PN} |
66 |
+ newconfd "${FILESDIR}"/${PN}.confd ${PN} |
67 |
+ keepdir /var/log/${PN} |
68 |
+ fowners ${PN}:${PN} /var/log/${PN} |
69 |
+} |
70 |
+ |
71 |
+pkg_postinst() { |
72 |
+ elog "Make sure BIND was built with libxml2 support. You can check with the" |
73 |
+ elog "following command: named -V | grep libxml2." |
74 |
+ elog "Configure BIND to open a statistics channel. It's recommended to run" |
75 |
+ elog "the bind_exporter next to BIND, so it's only necessary to open a port" |
76 |
+ elog "locally." |
77 |
+ elog "" |
78 |
+ elog "statistics-channels {" |
79 |
+ elog "inet 127.0.0.1 port 8053 allow { 127.0.0.1; };" |
80 |
+ elog "};" |
81 |
+} |