From 6f57e716c7968def6387f9db258e883125bab84f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 4 May 2023 23:29:09 +0100 Subject: gentoo auto-resync : 04:05:2023 - 23:29:09 --- app-metrics/Manifest.gz | Bin 6627 -> 6626 bytes app-metrics/bind_exporter/Manifest | 3 ++ .../bind_exporter/bind_exporter-0.6.1.ebuild | 59 +++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 app-metrics/bind_exporter/bind_exporter-0.6.1.ebuild (limited to 'app-metrics') diff --git a/app-metrics/Manifest.gz b/app-metrics/Manifest.gz index 4220bbc2edbb..7e8740490d9e 100644 Binary files a/app-metrics/Manifest.gz and b/app-metrics/Manifest.gz differ diff --git a/app-metrics/bind_exporter/Manifest b/app-metrics/bind_exporter/Manifest index 5802d6728a52..f138cc261261 100644 --- a/app-metrics/bind_exporter/Manifest +++ b/app-metrics/bind_exporter/Manifest @@ -1,5 +1,8 @@ AUX bind_exporter.confd 57 BLAKE2B dfffea2f2859b377d5132a2c56ace0260f2d272463c104144acea0a2489141d01e35f4899d53af1526fe0ca1ae760fef62c96a0b6849c8b8678b7693a53ac20f SHA512 54c5162993d488eecec2453b06b2cbedd5eb4599074cf43fda644e2faba4c35ad481840dbb8b05979bf1a0dcdff32edd9efa56bc779f264d81056793d1d00be0 AUX bind_exporter.initd 550 BLAKE2B fcb4eb3066023024b8605a2c9787ba7c8871d05d1b11a1ea97ebab91e403e21876c8b29136b114c6ceef29e9be79056accdde7061e13f615b1f55c25998b938e SHA512 1471a0644c1c2d5a242987638b6fa0576913b9dfbcf886ade42951b3cc71f632c210060a619637988c5239a3ff934c2073e2bd34b913abd9871eb028fd71e2e1 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 EBUILD bind_exporter-0.3.0.ebuild 1440 BLAKE2B 451ceb186a0b4b1d8c414d90a972e47f363d1ec8590101e6890f0768e704c4d0183751da9181a5d4a4fc4c3eae36d91febb048dabdfc3b7d28d984018c593d7d SHA512 b91c57241d0afdf5bbca27df9e8fa5f7b0eee3518315afcfa8ab524921aa742b37816205e021428669b21ee95f945d034c54058ef8c37d64ab0f9d60671ab597 +EBUILD bind_exporter-0.6.1.ebuild 1547 BLAKE2B 5fd351fe61f4530e373a34b106631af4d36e49320fbff6bc97366a5185549f388b35e497d03264650860a82b1ac310217f96755a63863ed9825cd87fc95a68c7 SHA512 83e287bdf93944883339687758388e5751511c22943457b2c73b737cbdeced6e6af8fc96029994f7472fd16170086ee11f89e6ae16318f48261894770dd68aa8 MISC metadata.xml 340 BLAKE2B 6538097f3ef7715762179083b4ac60b9c4fd470efa4d0513cbf5f40a2e4bfbcba81fd7c3dccc67f174537cc06119bb74da41db6c37487148731a70189175a085 SHA512 59f4ca7175d231c295dd7fe8d268ecdb618bfdd81aabc6e54de9898610ddd436374d8de2ba673101c2512050d236c7b5bd601f2a23e4397505e656112146fb9b 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 "};" +} -- cgit v1.2.3