summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2022-08-12 14:51:21 -0700
committerZac Medico <zmedico@gentoo.org>2022-08-12 14:53:09 -0700
commitf0f136201f695c4ab25daeb70e27057c5aab8161 (patch)
tree0531cd7ea86d89cb3ae72ae6ff69b459d9befe98 /app-metrics
parentdev-util/strace: add gitlab upstream metadata (diff)
downloadgentoo-f0f136201f695c4ab25daeb70e27057c5aab8161.tar.gz
gentoo-f0f136201f695c4ab25daeb70e27057c5aab8161.tar.bz2
gentoo-f0f136201f695c4ab25daeb70e27057c5aab8161.zip
app-metrics/uwsgi_exporter: add 1.1.0
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-metrics')
-rw-r--r--app-metrics/uwsgi_exporter/Manifest2
-rw-r--r--app-metrics/uwsgi_exporter/uwsgi_exporter-1.1.0.ebuild52
2 files changed, 54 insertions, 0 deletions
diff --git a/app-metrics/uwsgi_exporter/Manifest b/app-metrics/uwsgi_exporter/Manifest
index f37b4229fd92..5e156c4c575c 100644
--- a/app-metrics/uwsgi_exporter/Manifest
+++ b/app-metrics/uwsgi_exporter/Manifest
@@ -1 +1,3 @@
DIST uwsgi_exporter-0.8.0.tar.gz 3040547 BLAKE2B 5b6769487b3a08752cdff9dccc727096bc6b9d49e12e8aa35d04bbd0c3534503c19a4dda882c7efd7409549f3cae750021fa7ce87d12b798a2998efcdfc9f1cf SHA512 a5a1439f554749c7db4857651a11cbbf0ad0a0a8da0ffd421e374fe08194ba289a6bb04a95e4169ba6a75d0358c7a96e5b9f3cc5813cc39004f81dce42edb3ed
+DIST uwsgi_exporter-1.1.0-deps.tar.xz 6393556 BLAKE2B ce75723b9de728560fc367c31b8f70498ffda083f1aa3ed138aaed37d540ed4b05681c022c63bd3f8aa6c1bf9d9e7fc7e6f947c556794b5d65724b1ff95ceb60 SHA512 e5140951a895981eb85be571035e017b3d3a344cb074a40b693f46e25d9355192debecb9710afb4952cbfe6beb62741ddca2c16ac5454df8643927400e3f2d6b
+DIST uwsgi_exporter-1.1.0.tar.gz 39335 BLAKE2B af7fc7ba6d2479467e4b0b90c469fd3a3de1d967b1f4130ce54b5db5bec4dcf910687cf375dcc98a6b68463831d49117e23f589d03d37579b2d83b33a74b519f SHA512 62db351903f6876efea60cc25bea1560b5061ecdf6ca1f113bfa51a745d1524b397350cc2bd0e720aab9357f4f9f6dbca0285eb41ed9cdabebeb4f4176d9c652
diff --git a/app-metrics/uwsgi_exporter/uwsgi_exporter-1.1.0.ebuild b/app-metrics/uwsgi_exporter/uwsgi_exporter-1.1.0.ebuild
new file mode 100644
index 000000000000..88aeeefc02fa
--- /dev/null
+++ b/app-metrics/uwsgi_exporter/uwsgi_exporter-1.1.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit go-module systemd
+
+SRC_URI="https://github.com/timonwong/uwsgi_exporter/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
+ https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz"
+UWSGI_EXPORTER_COMMIT="f04f713"
+
+DESCRIPTION="uWSGI metrics exporter for prometheus.io"
+HOMEPAGE="https://github.com/timonwong/uwsgi_exporter"
+
+LICENSE="Apache-2.0 BSD ISC MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ acct-group/uwsgi_exporter
+ acct-user/uwsgi_exporter
+"
+
+DEPEND="
+ ${RDEPEND}
+ dev-util/promu
+"
+
+src_prepare() {
+ default
+ sed -e "s/{{.Revision}}/${UWSGI_EXPORTER_COMMIT}/" -i "${S}/.promu.yml" || die
+}
+
+src_compile() {
+ mkdir -p bin || die
+ GO111MODULE=on promu build -v --prefix bin || die
+}
+
+src_install() {
+ newbin bin/${P} uwsgi_exporter
+ dodoc README.md
+ local dir
+ for dir in /var/log/${PN}; do
+ keepdir "${dir}"
+ fowners ${PN}:${PN} "${dir}"
+ done
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}.logrotated" "${PN}"
+ systemd_dounit "${FILESDIR}/${PN}.service"
+}