From: "Manuel Rüger" <mrueg@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-metrics/node_exporter/
Date: Thu, 14 Feb 2019 12:31:32 +0000 (UTC) [thread overview]
Message-ID: <1550147401.39690245afe5515189d17439d2f1705a7ba8fd7e.mrueg@gentoo> (raw)
commit: 39690245afe5515189d17439d2f1705a7ba8fd7e
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 14 12:29:20 2019 +0000
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Thu Feb 14 12:30:01 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39690245
app-metrics/node_exporter: Add systemd unit
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
.../node_exporter/node_exporter-0.17.0-r1.ebuild | 52 ++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/app-metrics/node_exporter/node_exporter-0.17.0-r1.ebuild b/app-metrics/node_exporter/node_exporter-0.17.0-r1.ebuild
new file mode 100644
index 00000000000..bd80fb15c82
--- /dev/null
+++ b/app-metrics/node_exporter/node_exporter-0.17.0-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit user golang-build golang-vcs-snapshot systemd
+
+EGO_PN="github.com/prometheus/node_exporter"
+EGIT_COMMIT="v${PV/_rc/-rc.}"
+NODE_EXPORTER_COMMIT="f6f6194"
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="Prometheus exporter for machine metrics"
+HOMEPAGE="https://github.com/prometheus/node_exporter"
+SRC_URI="${ARCHIVE_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND=">=dev-lang/go-1.11
+ dev-util/promu"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+}
+
+src_prepare() {
+ default
+ sed -i -e "s/{{.Revision}}/${NODE_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
+}
+
+src_compile() {
+ pushd src/${EGO_PN} || die
+ mkdir -p bin || die
+ GO111MODULE=on GOPATH="${S}" promu build -v --prefix node_exporter || die
+ popd || die
+}
+
+src_install() {
+ pushd src/${EGO_PN} || die
+ dobin node_exporter/node_exporter
+ dodoc {README,CHANGELOG,CONTRIBUTING}.md
+ systemd_dounit examples/systemd/node_exporter.service
+ insinto /etc/sysconfig/node_exporter
+ doins examples/systemd/sysconfig.node_exporter
+ popd || die
+ keepdir /var/lib/node_exporter /var/log/node_exporter
+ fowners ${PN}:${PN} /var/lib/node_exporter /var/log/node_exporter
+ newinitd "${FILESDIR}"/${PN}-1.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}
next reply other threads:[~2019-02-14 12:31 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-14 12:31 Manuel Rüger [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-05-24 19:06 [gentoo-commits] repo/gentoo:master commit in: app-metrics/node_exporter/ Arthur Zamarin
2025-05-24 18:47 Sam James
2025-04-28 16:48 Sam James
2025-04-07 18:56 Arthur Zamarin
2025-04-07 18:56 Arthur Zamarin
2025-03-15 18:14 Arthur Zamarin
2025-01-19 15:50 Arthur Zamarin
2025-01-19 14:55 Sam James
2025-01-19 13:10 Arthur Zamarin
2025-01-18 0:30 Jakov Smolić
2025-01-17 19:29 Arthur Zamarin
2024-12-19 15:41 William Hubbs
2024-06-15 19:21 Arthur Zamarin
2024-05-08 16:00 Arthur Zamarin
2024-01-19 18:11 William Hubbs
2024-01-07 6:48 Joonas Niilola
2024-01-07 6:14 Sam James
2023-11-26 21:47 Robin H. Johnson
2023-11-24 12:28 Sam James
2023-09-18 9:55 WANG Xuerui
2023-05-25 16:53 William Hubbs
2023-02-04 19:11 William Hubbs
2023-02-04 19:11 William Hubbs
2022-12-26 5:54 Kenton Groombridge
2022-07-22 23:37 William Hubbs
2022-07-22 23:33 William Hubbs
2022-07-18 2:23 William Hubbs
2022-06-29 7:21 WANG Xuerui
2022-04-05 21:53 Sam James
2022-04-05 21:50 Sam James
2022-01-21 19:13 Sam James
2021-08-25 20:38 Robin H. Johnson
2021-08-15 8:28 Mikle Kolyada
2021-07-16 15:17 Mikle Kolyada
2021-05-12 19:36 Mikle Kolyada
2021-04-07 8:59 Mikle Kolyada
2021-03-09 17:25 William Hubbs
2020-08-08 17:08 Matthew Thode
2020-08-08 17:08 Matthew Thode
2019-12-04 5:34 William Hubbs
2019-12-03 9:48 Michał Górny
2019-11-23 11:06 Manuel Rüger
2019-11-23 11:06 Manuel Rüger
2019-07-15 23:05 Manuel Rüger
2019-06-05 15:08 Manuel Rüger
2019-06-05 15:08 Manuel Rüger
2019-05-10 8:41 Manuel Rüger
2019-05-10 8:41 Manuel Rüger
2019-02-14 12:44 Manuel Rüger
2019-02-14 12:31 Manuel Rüger
2018-12-02 0:32 Manuel Rüger
2018-12-02 0:32 Manuel Rüger
2018-10-29 15:27 Tobias Klausmann
2018-07-17 16:44 Manuel Rüger
2018-05-15 20:01 Manuel Rüger
2018-04-27 22:04 Manuel Rüger
2018-04-27 22:03 Manuel Rüger
2018-04-18 14:39 Manuel Rüger
2018-04-10 12:28 Manuel Rüger
2018-03-30 14:31 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=1550147401.39690245afe5515189d17439d2f1705a7ba8fd7e.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