diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2023-05-04 11:25:53 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2023-05-04 11:26:30 -0700 |
commit | 1bc6e33356514d468e3db1a54cc1675afff38547 (patch) | |
tree | bce0a24d1fe878f722b9e6f703ae613a98d727cf /app-metrics/bind_exporter | |
parent | app-admin/awscli-bin: add 2.11.17 (diff) | |
download | gentoo-1bc6e33356514d468e3db1a54cc1675afff38547.tar.gz gentoo-1bc6e33356514d468e3db1a54cc1675afff38547.tar.bz2 gentoo-1bc6e33356514d468e3db1a54cc1675afff38547.zip |
app-metrics/bind_exporter: bump
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'app-metrics/bind_exporter')
-rw-r--r-- | app-metrics/bind_exporter/Manifest | 2 | ||||
-rw-r--r-- | app-metrics/bind_exporter/bind_exporter-0.6.1.ebuild | 59 |
2 files changed, 61 insertions, 0 deletions
diff --git a/app-metrics/bind_exporter/Manifest b/app-metrics/bind_exporter/Manifest index 8a39f9d61057..9c17ec11501a 100644 --- a/app-metrics/bind_exporter/Manifest +++ b/app-metrics/bind_exporter/Manifest @@ -1 +1,3 @@ DIST bind_exporter-0.3.0.tar.gz 1796507 BLAKE2B a79b9e0d159d3deb83f1a040325ad34bc0d4ae50b6af205dce4ebf8d7152ccbd4b7d46fda40bf76db953996ddf4237ca13058250478b08cca51b8bea08ccc31b SHA512 762901a63a9493f852e5514429f55b10400931f0a77d2e11c7565e93e1ff759eb30d3bbc9278451bb9df358a983aa099bd55cf57241cf36187d2789c89a3852d +DIST bind_exporter-0.6.1-vendor.tar.xz 1300068 BLAKE2B 058f4f61ff9c403a5672390dd3944dec9a6b4b1dcf8ac7bcb6943494d43c116236e23f4b0437d5b2e91cb0d936377ba896740594d90b50ce99a61963713ab70c SHA512 9fd880655ac9657d49c0d250b22e46c53a63c0a2d4097763ca8856da36f75527d515a4e4cde7dd68c2c5cbf4ea784c07d9bd5e38a01eeb2d308a585c31d5c19b +DIST bind_exporter-0.6.1.tar.gz 48904 BLAKE2B ad2def162e0fac5e857328bb142bc20655d0d1ea4a9d90a3bd8d305a3d86f9247671ca92f90d5ccdcb1a8bd147ed56858a9782feeac019b87666b4b18b7219c1 SHA512 d710b7228587e12a101a1d626ec5e0290b0740074f3976eee02463165030b361d3b6df556ab949d632488582ef6d4a3197270afc197d6d756a99c16e55c5448c diff --git a/app-metrics/bind_exporter/bind_exporter-0.6.1.ebuild b/app-metrics/bind_exporter/bind_exporter-0.6.1.ebuild new file mode 100644 index 000000000000..6f9020afafd7 --- /dev/null +++ b/app-metrics/bind_exporter/bind_exporter-0.6.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module +GIT_COMMIT=c34ff3d6b4817f42e74b2b05b3797cf99683b4a9 + +DESCRIPTION="Prometheus exporter for BIND" +HOMEPAGE="https://github.com/prometheus-community/bind_exporter" +SRC_URI=" + https://github.com/prometheus-community/bind_exporter/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~robbat2/distfiles/bind_exporter-${PV}-vendor.tar.xz + " + +LICENSE="Apache-2.0 BSD MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +COMMON_DEPEND="acct-group/bind_exporter + acct-user/bind_exporter" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" +BDEPEND="dev-util/promu" + +src_prepare() { + default + sed -i -e "/-s$/d" -e "s/{{.Revision}}/${GIT_COMMIT}/" .promu.yml || die +} + +src_compile() { + mkdir -p bin || die + promu build -v --prefix bin || die +} + +src_test() { + emake test-flags= test +} + +src_install() { + dobin bin/${PN} + dodoc {README,CHANGELOG}.md + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} +} + +pkg_postinst() { + elog "Make sure BIND was built with libxml2 support. You can check with the" + elog "following command: named -V | grep libxml2." + elog "Configure BIND to open a statistics channel. It's recommended to run" + elog "the bind_exporter next to BIND, so it's only necessary to open a port" + elog "locally." + elog "" + elog "statistics-channels {" + elog "inet 127.0.0.1 port 8053 allow { 127.0.0.1; };" + elog "};" +} |