public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Manuel Rüger" <mrueg@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/prometheus-snmp_exporter/
Date: Tue, 27 Feb 2018 12:30:09 +0000 (UTC)	[thread overview]
Message-ID: <1519734596.686c680c3c5d9244c639628f646a3c501de013c5.mrueg@gentoo> (raw)

commit:     686c680c3c5d9244c639628f646a3c501de013c5
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 27 12:29:56 2018 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Tue Feb 27 12:29:56 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=686c680c

net-analyzer/prometheus-snmp_exporter: Version bump to 0.9.0

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 net-analyzer/prometheus-snmp_exporter/Manifest     |  1 +
 .../prometheus-snmp_exporter-0.9.0.ebuild          | 50 ++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/net-analyzer/prometheus-snmp_exporter/Manifest b/net-analyzer/prometheus-snmp_exporter/Manifest
index 5d9c2d327e0..e10472f330c 100644
--- a/net-analyzer/prometheus-snmp_exporter/Manifest
+++ b/net-analyzer/prometheus-snmp_exporter/Manifest
@@ -1 +1,2 @@
 DIST prometheus-snmp_exporter-0.8.0.tar.gz 3257344 BLAKE2B 32f0cf6c72b518fc62c420bf64ed04243bef8f9b70be2fba15472f63871e96bc113ddc7fe2e6265a29facf8c32c1d3f245bf6fc2dbce934876ebac0225069642 SHA512 0cae5fc107baedd8d498972aa7c6b3b48ff19f951c5366e5be5173009e956de8da06b84a46926d6f157287df0793e996686740c491f502da24172d5806b49339
+DIST prometheus-snmp_exporter-0.9.0.tar.gz 3257207 BLAKE2B 3e7e91d7e66b32e3f84c9e53061f54ffc10116913b91598edfa011663daf2c67314661dbe6cd5b2c20b30968833bd64a48bdd5dd06694e76f1e787d59ad63933 SHA512 eb287f4519f2174a9ce80414c2b7a698bc50e1bcb2303a8190164002af088e0694e01233314cfe2bd89b2cd751f2fd6f8447eb641541701b7bd481373ce084b1

diff --git a/net-analyzer/prometheus-snmp_exporter/prometheus-snmp_exporter-0.9.0.ebuild b/net-analyzer/prometheus-snmp_exporter/prometheus-snmp_exporter-0.9.0.ebuild
new file mode 100644
index 00000000000..2d73fe9faa4
--- /dev/null
+++ b/net-analyzer/prometheus-snmp_exporter/prometheus-snmp_exporter-0.9.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit user golang-build golang-vcs-snapshot
+
+EGO_PN="github.com/prometheus/snmp_exporter"
+EGIT_COMMIT="v${PV/_rc/-rc.}"
+SNMP_EXPORTER_COMMIT="abb143a"
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="Prometheus exporter for snmp metrics"
+HOMEPAGE="https://github.com/prometheus/snmp_exporter"
+SRC_URI="${ARCHIVE_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-util/promu"
+
+pkg_setup() {
+	enewgroup ${PN}
+	enewuser ${PN} -1 -1 -1 ${PN}
+}
+
+src_prepare() {
+	default
+	sed -i -e "s/{{.Revision}}/${SNMP_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
+}
+
+src_compile() {
+	pushd src/${EGO_PN} || die
+	mkdir -p bin || die
+	GOPATH="${S}" promu build -v --prefix snmp_exporter || die
+	popd || die
+}
+
+src_install() {
+	pushd src/${EGO_PN} || die
+	dobin snmp_exporter/snmp_exporter
+	dodoc {README,CONTRIBUTING}.md
+	insinto /etc/snmp_exporter
+	newins snmp.yml snmp.yml.example
+	popd || die
+	keepdir /var/lib/snmp_exporter /var/log/snmp_exporter
+	fowners ${PN}:${PN} /var/lib/snmp_exporter /var/log/snmp_exporter
+	newinitd "${FILESDIR}"/${PN}.initd ${PN}
+	newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}


             reply	other threads:[~2018-02-27 12:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-27 12:30 Manuel Rüger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-03-06 21:34 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/prometheus-snmp_exporter/ Manuel Rüger
2017-11-29 10:56 Manuel Rüger
2017-11-20 18:06 Manuel Rüger
2017-10-12 18:31 Manuel Rüger
2017-10-12 18:29 Manuel Rüger
2017-10-12 18:29 Manuel Rüger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1519734596.686c680c3c5d9244c639628f646a3c501de013c5.mrueg@gentoo \
    --to=mrueg@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox