diff options
author | William Hubbs <williamh@gentoo.org> | 2020-07-16 19:29:06 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2020-07-16 19:51:33 -0500 |
commit | ab5af214169c2ac7be441f72b46e332d72f4544d (patch) | |
tree | a4735f0af3ff656c77b4ce001114ec73852e4572 /app-metrics | |
parent | dev-util/idea-community: arm64 keyworded (bug #729804) (diff) | |
download | gentoo-ab5af214169c2ac7be441f72b46e332d72f4544d.tar.gz gentoo-ab5af214169c2ac7be441f72b46e332d72f4544d.tar.bz2 gentoo-ab5af214169c2ac7be441f72b46e332d72f4544d.zip |
app-metrics/nginx-vts-exporter: rev bump to fix dependencies
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-metrics')
-rw-r--r-- | app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.7-r1.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.7-r1.ebuild b/app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.7-r1.ebuild new file mode 100644 index 000000000000..73b7421fdceb --- /dev/null +++ b/app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.7-r1.ebuild @@ -0,0 +1,44 @@ +# 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" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" + +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} +} |