summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2024-01-03 15:33:10 -0800
committerZac Medico <zmedico@gentoo.org>2024-01-03 15:34:14 -0800
commit757105c3b5f4b0ca1807b8c9510ac74d182fc8e8 (patch)
tree5e5783582aac564a841105208dbfc41928f847c0 /app-metrics
parentnet-libs/libssh: Cleanup vulnerable 0.10.5 (diff)
downloadgentoo-757105c3b5f4b0ca1807b8c9510ac74d182fc8e8.tar.gz
gentoo-757105c3b5f4b0ca1807b8c9510ac74d182fc8e8.tar.bz2
gentoo-757105c3b5f4b0ca1807b8c9510ac74d182fc8e8.zip
app-metrics/exabgp_exporter: add 1.1.3
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-metrics')
-rw-r--r--app-metrics/exabgp_exporter/Manifest2
-rw-r--r--app-metrics/exabgp_exporter/exabgp_exporter-1.1.3.ebuild33
-rw-r--r--app-metrics/exabgp_exporter/metadata.xml2
3 files changed, 36 insertions, 1 deletions
diff --git a/app-metrics/exabgp_exporter/Manifest b/app-metrics/exabgp_exporter/Manifest
index 65e942d9b88f..b3506c54101c 100644
--- a/app-metrics/exabgp_exporter/Manifest
+++ b/app-metrics/exabgp_exporter/Manifest
@@ -1,2 +1,4 @@
DIST exabgp_exporter-1.0.0_p20200718-deps.tar.xz 3538492 BLAKE2B d04f31b135f6f0cab4032f00e77a5bd1543e27e589cb8665d1917014eae561a4982e7b67639d4beeec1066c038eba16203b129be8d6ca1aa2f31a98706cefd89 SHA512 0ec3b68f62afbb17586afd6b8134aff10a21b2363b99439d4e1c5175382fb87168efe3cf3ea916b45d1a25198d529db0b8d29e571f41c8b4873ff2904e4e9394
DIST exabgp_exporter-1.0.0_p20200718.tar.gz 75858 BLAKE2B 838f445b3a18405c2d38b7b73cb0da13791d12f05b5881f196d507b44a810d28cfe01e059894c2a50063d33437f71362308a9f7543df6d85444add1e7c60c04b SHA512 0b6f468365cc2b1db2a2915d00f3b57ce34f72e8373b713ba0ff85b3d06e7075d5d8995129065dee193eaa763d63ac0b76d124902123134708f7086c505214b3
+DIST exabgp_exporter-1.1.3-deps.tar.xz 6513860 BLAKE2B 171180eac9880f23d9e26275e546234595c224dfa1f5350ce1fb196bf8360cf7818f5438b94d587470e307230b2fb8b0386bc8713e91d8be27a0ea3b81ea9e9f SHA512 00278fee0b6a214f41e0ff47879961f5092d07d4b45aa593e23b8c55f4732bd269385e692a6156c47ed1c92c1b9ee50fbf659e2e6f05c62fe1fd42e2db83bd1b
+DIST exabgp_exporter-1.1.3.tar.gz 102411 BLAKE2B 936a1aabaf52c9ee1ff02e14f899e00d481b178b492aabb53a531387c730b7fe6bbe90c3b3568c89323cb7d414b050a51cbb06d363ab0b93fdef93f71f88c1dc SHA512 55d19c5d305aa277797d3b6fe92f0a43bedf44916a24719c722316ad31079a5df6d69bca319475fcd2b6c9cbd7f7ad5b9acb10b46e188d45c84ed9bb99528c04
diff --git a/app-metrics/exabgp_exporter/exabgp_exporter-1.1.3.ebuild b/app-metrics/exabgp_exporter/exabgp_exporter-1.1.3.ebuild
new file mode 100644
index 000000000000..87ba58aa1fa2
--- /dev/null
+++ b/app-metrics/exabgp_exporter/exabgp_exporter-1.1.3.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd
+
+DESCRIPTION="Prometheus exporter for exabgp"
+HOMEPAGE="https://github.com/gizmoguy/exabgp_exporter"
+SRC_URI="https://github.com/gizmoguy/exabgp_exporter/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+src_compile() {
+ CGO_ENABLED=0 go build \
+ -ldflags "-X github.com/prometheus/common/version.Version=${PV%_*}
+ -X github.com/prometheus/common/version.Branch=master \
+ -X github.com/prometheus/common/version.BuildUser=$(whoami)
+ -X github.com/prometheus/common/version.BuildDate=$(date -u +'%FT%T%z')" \
+ -o ./bin/${PN} ./cmd/exabgp_exporter/main.go || die
+}
+
+src_install() {
+ dobin ./bin/${PN}
+ dodoc README.md
+ systemd_dounit "${FILESDIR}/${PN}.service"
+ systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service"
+ newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+ newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+}
diff --git a/app-metrics/exabgp_exporter/metadata.xml b/app-metrics/exabgp_exporter/metadata.xml
index 84b81a53410f..ea2e61fb8d91 100644
--- a/app-metrics/exabgp_exporter/metadata.xml
+++ b/app-metrics/exabgp_exporter/metadata.xml
@@ -6,6 +6,6 @@
<name>Zac Medico</name>
</maintainer>
<upstream>
- <remote-id type="github">lusis/exabgp_exporter</remote-id>
+ <remote-id type="github">gizmoguy/exabgp_exporter</remote-id>
</upstream>
</pkgmetadata>