summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2022-11-29 16:50:28 -0800
committerZac Medico <zmedico@gentoo.org>2022-11-29 16:50:58 -0800
commit89921c6d9254242e3c74762c57dc3531b5fb102c (patch)
treea15717c7a8e661896236b2bd8e65e88832c2989b /app-metrics
parentsys-devel/gdb: add readline 8.2 patch to gdb-11.2 too (diff)
downloadgentoo-89921c6d9254242e3c74762c57dc3531b5fb102c.tar.gz
gentoo-89921c6d9254242e3c74762c57dc3531b5fb102c.tar.bz2
gentoo-89921c6d9254242e3c74762c57dc3531b5fb102c.zip
app-metrics/pushgateway: add 1.5.1
Bug: https://bugs.gentoo.org/883647 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-metrics')
-rw-r--r--app-metrics/pushgateway/Manifest2
-rw-r--r--app-metrics/pushgateway/pushgateway-1.5.1.ebuild48
2 files changed, 50 insertions, 0 deletions
diff --git a/app-metrics/pushgateway/Manifest b/app-metrics/pushgateway/Manifest
index 5f1f4524f678..6fb21115206b 100644
--- a/app-metrics/pushgateway/Manifest
+++ b/app-metrics/pushgateway/Manifest
@@ -2,3 +2,5 @@ DIST pushgateway-1.4.2-deps.tar.xz 28339728 BLAKE2B 6f6e351f1a50e14db8b66b1ecd63
DIST pushgateway-1.4.2.tar.gz 4264206 BLAKE2B 966593b53184e091400d73c7aa00b147597096ca61adc71964c5ca04c5c7487dbcc4eee652bc47745bb459fa0d3a27bad4936833cd759081c8ae735319582b15 SHA512 7b1da7eecf03c4f7b493d025920e93c52333becf7da6a2d7bdd0eb6f9a2a4a5d08b00786d0796682a465d84750e2c8092cdb1c4ca59a08f15b8b586d6eaa5f1a
DIST pushgateway-1.4.3-deps.tar.xz 23184228 BLAKE2B a16ce542df626668d94b67989107110a3c89f3d57a60cf75d4b4e7d2b3c90f81871e376358461556818ba59e088264e9d0298700ffef403b54a21fae524478bb SHA512 7c100e8f23c63783a74642cd9e6b1ab2c2a6d6641c5c0c0de00479affa37328b98e947959d0c9d258700536f19596557503777593702687a7386a4bc9c875fb3
DIST pushgateway-1.4.3.tar.gz 4263325 BLAKE2B 3180e99d0fe883b2ce6111254c557d9e63e8b0d307b520f33093c93fd9f7ce94240823ca45f29bb1246e50d48f48c4a2195da6b0384a433fd48ecfed8eb6a370 SHA512 e41b8cf89c55569d47fae43310e88e548dfa5b598d1d282ae302844444cd1f7d64b7551763dd34aaca16c1807b232861e423caa15ced63599b95a87c78c14a98
+DIST pushgateway-1.5.1-deps.tar.xz 28913128 BLAKE2B dc7f352a4085ff365a3039501992e7678c1c8b59d3f56ecafa4fe7e50d5693c8399edede9f994c6fca8af739d33bc5cb627b1dbfe27bd0dd63539834290f816d SHA512 82f586be350b1d5f3169adee7e88c9522e34e37de1c9741a32b824d3f9e5b3bdc914177f1a1cff722de89eebe9bd6221ad6b9c29684a348cc7ba93d8cc3c05fd
+DIST pushgateway-1.5.1.tar.gz 4272543 BLAKE2B 01aeda87efdbbd6c7d0c1a8676fe0798c8d97f7638ca26eb8720412eb00d2abff5c7e73d21e1c2424bd375efa8878c85642a06196e933e44ea804e6e053adbf2 SHA512 01ebcdb85f059c330195f37f9466e2042311d8196948881f07d53f1ac4c7daedf343c14856f51db274df00b652b09eb52c735f04f774baf66559697864e1f93b
diff --git a/app-metrics/pushgateway/pushgateway-1.5.1.ebuild b/app-metrics/pushgateway/pushgateway-1.5.1.ebuild
new file mode 100644
index 000000000000..c1a6e8e79cf4
--- /dev/null
+++ b/app-metrics/pushgateway/pushgateway-1.5.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit go-module systemd
+
+GIT_COMMIT="7afc96c"
+DESCRIPTION="Prometheus push acceptor for ephemeral and batch jobs"
+HOMEPAGE="https://github.com/prometheus/pushgateway"
+SRC_URI="
+ https://github.com/prometheus/pushgateway/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz
+"
+
+LICENSE="Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv"
+
+RDEPEND="
+ acct-group/pushgateway
+ acct-user/pushgateway
+"
+DEPEND="${RDEPEND}"
+
+BDEPEND=">=dev-util/promu-0.3.0"
+
+src_prepare() {
+ default
+ sed -i -e 's|{{\.Revision}}|'${GIT_COMMIT}'|g' .promu.yml || die
+}
+
+src_compile() {
+ mkdir -p bin || die
+ promu build -v --prefix bin || die
+}
+
+src_install() {
+ newbin "bin/${P}" "${PN}"
+ dodoc {README,CHANGELOG,CONTRIBUTING}.md
+ keepdir /var/log/${PN}
+ fowners ${PN}:${PN} /var/log/${PN}
+ newinitd "${FILESDIR}"/${PN}-1.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}-1.confd ${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}.logrotated" "${PN}"
+ systemd_dounit "${FILESDIR}/${PN}-1.service"
+}