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 EF29E138359 for ; Sat, 8 Aug 2020 17:08:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1F273E082F; Sat, 8 Aug 2020 17:08:05 +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 EEB59E082F for ; Sat, 8 Aug 2020 17:08:04 +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 7E84B34E894 for ; Sat, 8 Aug 2020 17:08:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E7F972EE for ; Sat, 8 Aug 2020 17:08:01 +0000 (UTC) From: "Matthew Thode" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matthew Thode" Message-ID: <1596906477.10ce5530d5f14c39232ede27e3ef4b464ca5197b.prometheanfire@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-metrics/node_exporter/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-metrics/node_exporter/Manifest app-metrics/node_exporter/node_exporter-1.0.1.ebuild X-VCS-Directories: app-metrics/node_exporter/ X-VCS-Committer: prometheanfire X-VCS-Committer-Name: Matthew Thode X-VCS-Revision: 10ce5530d5f14c39232ede27e3ef4b464ca5197b X-VCS-Branch: master Date: Sat, 8 Aug 2020 17:08:01 +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: 2b6ff40b-4a70-4aec-a7ca-342580bd77f4 X-Archives-Hash: 9bede6785d85f966b2330fefb694c5b9 commit: 10ce5530d5f14c39232ede27e3ef4b464ca5197b Author: Matthew Thode gentoo org> AuthorDate: Sat Aug 8 16:58:26 2020 +0000 Commit: Matthew Thode gentoo org> CommitDate: Sat Aug 8 17:07:57 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10ce5530 app-metrics/node_exporter: 1.0.1 bump Package-Manager: Portage-3.0.0, Repoman-2.3.23 Signed-off-by: Matthew Thode gentoo.org> app-metrics/node_exporter/Manifest | 1 + .../node_exporter/node_exporter-1.0.1.ebuild | 45 ++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/app-metrics/node_exporter/Manifest b/app-metrics/node_exporter/Manifest index f0bd23b02a7..f042b18c4a4 100644 --- a/app-metrics/node_exporter/Manifest +++ b/app-metrics/node_exporter/Manifest @@ -1,2 +1,3 @@ DIST node_exporter-0.18.1.tar.gz 2110072 BLAKE2B 48c73d00cba892e34e95d40bd29c9ca70bc5748590f00cb7f8adcd25d8a9504f669d887b1273cc65316ca55b06c36d97a3e19a66382f35d5768db7c315981a13 SHA512 cf2b854fbec1ba39b18432cdc11ab507ebc5b2828e6b34b4f49af9b949fcd365cb3e5eb1e265d0825783810c6b1572a8b3512ec27a46e5c83f89a505590159c0 DIST node_exporter-1.0.0_rc0.tar.gz 2753717 BLAKE2B 2e1984d080ce2a16ca710a3da882b311510b2741836d615075281f5fce2641be35084090d9bcedcb8bf4f6a18333c5fcd53eb98817d1efed4c1a26261a02bffd SHA512 ec1d79367c69a7ccdacc9482a38625ffc9adab6d781b789cc226eed0bd893deca5cfc420a096f790ccd57834492551d36e2f307ad27a6c67585c8ef31887b50f +DIST node_exporter-1.0.1.tar.gz 2792033 BLAKE2B 4e86c348a293e8a4a8d5e22fe99871d84a817cfbbe3ac10b0e7b4fbba3ae7b12352c619f140e3568aa2fb3e4cdfdbde0d19d792497a0b0007b634cb3a4d21e38 SHA512 0643042a04494a65d1ebdedf78671a1e3473b7ac6f3bc606fa2c52e893dfc68b591ef7e38ac6768c4c529c25b831811c01839475a4fde9baeb0a6c581a57839f diff --git a/app-metrics/node_exporter/node_exporter-1.0.1.ebuild b/app-metrics/node_exporter/node_exporter-1.0.1.ebuild new file mode 100644 index 00000000000..ca15b40f88a --- /dev/null +++ b/app-metrics/node_exporter/node_exporter-1.0.1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module systemd +MY_PV="v${PV/_rc/-rc.}" +NODE_EXPORTER_COMMIT=3715be6 + +DESCRIPTION="Prometheus exporter for machine metrics" +HOMEPAGE="https://github.com/prometheus/node_exporter" +SRC_URI="https://github.com/prometheus/node_exporter/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 BSD BSD-2 MIT" +SLOT="0" +KEYWORDS="~amd64" + +CDEPEND="acct-group/node_exporter + acct-user/node_exporter" +DEPEND=">=dev-util/promu-0.3.0 + ${CDEPEND}" +RDEPEND="${CDEPEND}" + +S="${WORKDIR}/${PN}-${PV/_rc/-rc.}" + +src_prepare() { + default + sed -i -e "s/{{.Revision}}/${NODE_EXPORTER_COMMIT}/" .promu.yml || die +} + +src_compile() { + mkdir -p bin || die + promu build -v --prefix node_exporter || die +} + +src_install() { + dosbin node_exporter/node_exporter + dodoc {README,CHANGELOG,CONTRIBUTING}.md + systemd_dounit examples/systemd/node_exporter.service + insinto /etc/sysconfig + newins examples/systemd/sysconfig.node_exporter node_exporter + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + keepdir /var/lib/node_exporter /var/log/node_exporter + fowners ${PN}:${PN} /var/lib/node_exporter /var/log/node_exporter +}