summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2025-01-29 08:15:36 -0600
committerWilliam Hubbs <williamh@gentoo.org>2025-01-29 08:15:36 -0600
commitcd48069e33603d7cf46360fb11273ee3918cb88f (patch)
treed90dff6f5870f97b78404f7a25c015a278aac2c4 /app-metrics/elasticsearch_exporter
parentnet-proxy/haproxy: Bump to 3.1.3 (diff)
downloadgentoo-cd48069e33603d7cf46360fb11273ee3918cb88f.tar.gz
gentoo-cd48069e33603d7cf46360fb11273ee3918cb88f.tar.bz2
gentoo-cd48069e33603d7cf46360fb11273ee3918cb88f.zip
app-metrics/elasticsearch_exporter: add 1.8.0
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-metrics/elasticsearch_exporter')
-rw-r--r--app-metrics/elasticsearch_exporter/Manifest2
-rw-r--r--app-metrics/elasticsearch_exporter/elasticsearch_exporter-1.8.0.ebuild45
2 files changed, 47 insertions, 0 deletions
diff --git a/app-metrics/elasticsearch_exporter/Manifest b/app-metrics/elasticsearch_exporter/Manifest
index 2ce154fb2add..01992dabedde 100644
--- a/app-metrics/elasticsearch_exporter/Manifest
+++ b/app-metrics/elasticsearch_exporter/Manifest
@@ -1,2 +1,4 @@
DIST elasticsearch_exporter-1.3.0-deps.tar.xz 106387304 BLAKE2B d67e8b746ecf9f05310194485ac99b95768b813a7265b3ec445261d52708551c37bc14718021ee67306c84fedc323f5ef4e87cba043354b3b49c9ba0764e5575 SHA512 0374030189927deb14c8bd34b6472e9be8f7025aea525394a5eca5d6899311296e7eeefb7d05a2b4a75549c4590b9590dd592ab3c0aaf008c311922a01ea81d5
DIST elasticsearch_exporter-1.3.0.tar.gz 93489 BLAKE2B 33e2dbe9608bd052bc4f31fc2a38774981d96f30fd54465bd2b10d075f0fade29fe6c40d2e32370a38edc41d04b3772100c39f5670c302a0a334e2a7d5ee6463 SHA512 a88ec20cd7f2f9859d2e169f7813b84c3286b65dfc3a625545608416dbee5f96d4e223e7d2ea2f2b788be766ead1abb11b795d3059a628d0c3c56f567eebea00
+DIST elasticsearch_exporter-1.8.0-deps.tar.xz 9361520 BLAKE2B 67b89d1dd7d2fb3751cb8f64f55b851dfbebe0629f1efc90428145783d80b2e815ef6c317acb6920da366ba68ed3b8079311addea020e3ed0342b1e20177f294 SHA512 40050c678f4bd71d1c6bc23947d47434d23838f127476649a0bc533cf2a5db3f9195bf31b1f197b9ee80347be4de9cfa92cbe7ebee478780d25d3bd66267ac56
+DIST elasticsearch_exporter-1.8.0.tar.gz 111232 BLAKE2B 50a32a27492a7c21f5bd0f5022087566733fbc1a477011cfd19a7be7601fe01ec0c993a5c71ca32bd7e09ba28e00f45be4f546ab95cf78207b8542e41de681e9 SHA512 d9c0e582b566f1cdd025da2fda812b458c96f14db9f05a4e82238ddc581c5b30d4685e8f5d40e41c0c919b66e7af810ba01b649cd34537cf8d2995bd4b49045c
diff --git a/app-metrics/elasticsearch_exporter/elasticsearch_exporter-1.8.0.ebuild b/app-metrics/elasticsearch_exporter/elasticsearch_exporter-1.8.0.ebuild
new file mode 100644
index 000000000000..dfb7077974a5
--- /dev/null
+++ b/app-metrics/elasticsearch_exporter/elasticsearch_exporter-1.8.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module
+
+GIT_COMMIT=fd25030ff5
+
+MY_PV=${PV/_/}
+DESCRIPTION="Elasticsearch stats exporter for Prometheus"
+HOMEPAGE="https://github.com/justwatchcom/elasticsearch_exporter"
+SRC_URI="https://github.com/justwatchcom/elasticsearch_exporter/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
+
+LICENSE="Apache-2.0 BSD MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="acct-group/elasticsearch_exporter
+ acct-user/elasticsearch_exporter"
+ RDEPEND="${DEPEND}"
+BDEPEND="dev-util/promu"
+
+src_prepare() {
+ default
+ sed -i -e "/-s$/d" -e "s/{{.Revision}}/${GIT_COMMIT}/" .promu.yml || die
+}
+
+src_compile() {
+ promu build --prefix bin || die
+}
+
+src_test() {
+ emake test-flags= test
+}
+
+src_install() {
+ dobin bin/elasticsearch_exporter
+ dodoc {README,CHANGELOG}.md
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ keepdir /var/log/elasticsearch_exporter
+ fowners ${PN}:${PN} /var/log/elasticsearch_exporter
+}