From: "Manuel Rüger" <mrueg@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-metrics/snmp_exporter/
Date: Thu, 13 Sep 2018 11:54:47 +0000 (UTC) [thread overview]
Message-ID: <1536839666.c749a802c6af64d3e4e0a65d3d6fac333088b287.mrueg@gentoo> (raw)
commit: c749a802c6af64d3e4e0a65d3d6fac333088b287
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 13 11:53:58 2018 +0000
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Thu Sep 13 11:54:26 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c749a802
app-metrics/snmp_exporter: Version bump to 0.13.0
Package-Manager: Portage-2.3.49, Repoman-2.3.10
app-metrics/snmp_exporter/Manifest | 1 +
.../snmp_exporter/snmp_exporter-0.13.0.ebuild | 53 ++++++++++++++++++++++
2 files changed, 54 insertions(+)
diff --git a/app-metrics/snmp_exporter/Manifest b/app-metrics/snmp_exporter/Manifest
index 313466d4b47..b0cbdd72bda 100644
--- a/app-metrics/snmp_exporter/Manifest
+++ b/app-metrics/snmp_exporter/Manifest
@@ -1,2 +1,3 @@
DIST snmp_exporter-0.11.0.tar.gz 3631252 BLAKE2B 9786a17d667f8e6d45691f9df099f67ce103fbb93c9069ca497e59ff9207de05335fe3fac56d3d3bc0617069eb26a9c5b5682a8ec65c78d7e44303002427e9fa SHA512 a5d671d1bf2a98bbdb6ff85ac84ca5fe8da8d075bb1133aae650e73c45770be0403bcfea93595b2f5bc75b2e50cf96ccada0407d6956b4b5d1dc5b7ff604254a
DIST snmp_exporter-0.12.0.tar.gz 3631641 BLAKE2B 4a1be9f51ffd9c2bc7a2eeb853d30499ae967e53980f81a3b14e9d0a201f33b7f3eec76711a4f3d8d54f5f07b74f1f66aab11093e7c0ab076f544da2ac8399f8 SHA512 9da5e4c43bf59562541992456c046063874860f2e7a24f0693b2f5655e0eb6eacd18734a4c932fce01bb535ac7530d71234bfa9d977fcbf15a1468f642e1d157
+DIST snmp_exporter-0.13.0.tar.gz 4096479 BLAKE2B a41ad876ca73a997bc48ac6fcdbc3ca01ff1c689f2f908cf14874f948a50ecd846a2996fc0cbf7d86a473fb80e42e15a7aca1c1b57f2cb3ebfa68a62db8d13ac SHA512 6e4a607cb58e6721acfd77b570dc62589cba5b23d250c9f654659632c97039156869722e1e43bec2b0656f08021ff89b4089f6b91ef28229964f32a34e0067f3
diff --git a/app-metrics/snmp_exporter/snmp_exporter-0.13.0.ebuild b/app-metrics/snmp_exporter/snmp_exporter-0.13.0.ebuild
new file mode 100644
index 00000000000..f4215957f69
--- /dev/null
+++ b/app-metrics/snmp_exporter/snmp_exporter-0.13.0.ebuild
@@ -0,0 +1,53 @@
+# 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="84cab6d"
+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
+ net-analyzer/net-snmp"
+
+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 bin || die
+ pushd generator || die
+ GOPATH="${S}" go build -o ../bin/generator . || die
+ popd || die
+}
+
+src_install() {
+ pushd src/${EGO_PN} || die
+ dobin bin/*
+ dodoc {README,CONTRIBUTING}.md generator/{FORMAT,README}.md generator/generator.yml
+ 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}
+}
next reply other threads:[~2018-09-13 11:54 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-13 11:54 Manuel Rüger [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-24 0:15 [gentoo-commits] repo/gentoo:master commit in: app-metrics/snmp_exporter/ William Hubbs
2024-01-07 5:24 John Helmert III
2023-12-17 11:45 Sam James
2023-10-29 17:22 John Helmert III
2023-05-26 14:42 William Hubbs
2023-05-26 14:42 William Hubbs
2023-02-04 3:35 William Hubbs
2022-10-21 17:40 William Hubbs
2022-03-23 16:11 William Hubbs
2022-03-23 16:11 William Hubbs
2022-03-20 21:44 William Hubbs
2022-03-20 21:44 William Hubbs
2019-12-04 5:34 William Hubbs
2019-12-03 9:48 Michał Górny
2019-11-23 10:38 Manuel Rüger
2019-11-23 10:38 Manuel Rüger
2019-02-12 16:34 Manuel Rüger
2019-01-17 0:11 Manuel Rüger
2019-01-17 0:11 Manuel Rüger
2019-01-15 19:05 Manuel Rüger
2019-01-15 14:44 Manuel Rüger
2018-12-11 8:12 Manuel Rüger
2018-09-07 6:21 Manuel Rüger
2018-08-21 20:27 Manuel Rüger
2018-08-21 20:20 Manuel Rüger
2018-06-13 13:17 Manuel Rüger
2018-05-15 12:49 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=1536839666.c749a802c6af64d3e4e0a65d3d6fac333088b287.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