summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2020-07-14 17:53:34 -0500
committerWilliam Hubbs <williamh@gentoo.org>2020-07-14 17:54:15 -0500
commited195bb99880d4a738ecab89c6ab8df0ead59809 (patch)
treed476848862d11ba87fe8434c38110328a644c104 /app-metrics
parentacct-user/nginx-vts-exporter: add user for nginx-vts-exporter (diff)
downloadgentoo-ed195bb99880d4a738ecab89c6ab8df0ead59809.tar.gz
gentoo-ed195bb99880d4a738ecab89c6ab8df0ead59809.tar.bz2
gentoo-ed195bb99880d4a738ecab89c6ab8df0ead59809.zip
app-metrics/nginx-vts-exporter: 0.10.7 bump
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-metrics')
-rw-r--r--app-metrics/nginx-vts-exporter/Manifest1
-rw-r--r--app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.7.ebuild42
2 files changed, 43 insertions, 0 deletions
diff --git a/app-metrics/nginx-vts-exporter/Manifest b/app-metrics/nginx-vts-exporter/Manifest
index a5b7ce07890b..3b8cf75dda4f 100644
--- a/app-metrics/nginx-vts-exporter/Manifest
+++ b/app-metrics/nginx-vts-exporter/Manifest
@@ -1 +1,2 @@
DIST nginx-vts-exporter-0.10.3.tar.gz 149578 BLAKE2B c73a8cfdb875fcc02d3b7d66f5b436b9e3e8d516c8a241062721e3124452722e9e30abefd5c79e89772a480fad005d0cf25d0359dd253a39d7ae5a20495f074a SHA512 0ee97be313dc829ae9e23bc836d7e11106c4843306583ff8baa38fa10bd9d56396ae3f6ce12cad4e08a383047c3179013962284aef6e627b23b89c72c564789e
+DIST nginx-vts-exporter-0.10.7.tar.gz 436116 BLAKE2B 0b6306f20c429fb30e166a6862d7b050f80f6fa47ef2db07d9cd883dfc92e70e2099b99bcab2e7530f1350da955abd1abbbf538613691d2ba76bcccaca2837e7 SHA512 54145aa7c4298e1ab65087c42258b690649e0e374d7bcc4abc426a128878849921afecd4bd25cca67ca2b3c65e3abb2786c09d4ffe811cbbec65e7257fe9a043
diff --git a/app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.7.ebuild b/app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.7.ebuild
new file mode 100644
index 000000000000..ed6d121878b4
--- /dev/null
+++ b/app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.7.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit go-module
+EGO_PN="github.com/hnlq715/nginx-vts-exporter"
+EXPORTER_COMMIT=b935b793fbd8478d3feea529b036e753169ddabd
+
+DESCRIPTION="Nginx virtual host traffic stats exporter for Prometheus"
+HOMEPAGE="https://github.com/hnlq715/nginx-vts-exporter"
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT Apache-2.0 BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+BDEPEND="dev-util/promu"
+COMMON_DEPEND="acct-group/nginx-vts-exporter
+ acct-user/nginx-vts-exporter"
+
+src_prepare() {
+ default
+ sed -i \
+ -e "/-s$/d" \
+ -e "s/{{.Revision}}/${EXPORTER_COMMIT}/" \
+ .promu.yml || die
+}
+
+src_compile() {
+ mkdir -p bin || die
+ promu build -v --prefix bin || die
+}
+
+src_install() {
+ newbin bin/${P} ${PN}
+ dodoc README.md
+ keepdir /var/log/${PN}
+ fowners ${PN}:${PN} /var/log/${PN}
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}