From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 654A9138359 for ; Fri, 17 Jul 2020 00:51:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 88BEBE0828; Fri, 17 Jul 2020 00:51:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 404C3E0828 for ; Fri, 17 Jul 2020 00:51:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DDEC434EDEC for ; Fri, 17 Jul 2020 00:51:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 58B172D0 for ; Fri, 17 Jul 2020 00:51:50 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1594947093.ab5af214169c2ac7be441f72b46e332d72f4544d.williamh@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-metrics/nginx-vts-exporter/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.7-r1.ebuild X-VCS-Directories: app-metrics/nginx-vts-exporter/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: ab5af214169c2ac7be441f72b46e332d72f4544d X-VCS-Branch: master Date: Fri, 17 Jul 2020 00:51:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 932bc4b1-82f5-4f5f-b60e-83382eb104b0 X-Archives-Hash: d565c8f7b3b94906d51896d2b4e223fa commit: ab5af214169c2ac7be441f72b46e332d72f4544d Author: William Hubbs gentoo org> AuthorDate: Fri Jul 17 00:29:06 2020 +0000 Commit: William Hubbs gentoo org> CommitDate: Fri Jul 17 00:51:33 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab5af214 app-metrics/nginx-vts-exporter: rev bump to fix dependencies Signed-off-by: William Hubbs gentoo.org> .../nginx-vts-exporter-0.10.7-r1.ebuild | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) 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 00000000000..73b7421fdce --- /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} +}