diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2020-08-08 11:58:26 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2020-08-08 12:07:57 -0500 |
commit | 10ce5530d5f14c39232ede27e3ef4b464ca5197b (patch) | |
tree | e815539e242f5563b6174f9c3a93536c742dd833 | |
parent | media-libs/codec2: Fix building under -fno-common (diff) | |
download | gentoo-10ce5530d5f14c39232ede27e3ef4b464ca5197b.tar.gz gentoo-10ce5530d5f14c39232ede27e3ef4b464ca5197b.tar.bz2 gentoo-10ce5530d5f14c39232ede27e3ef4b464ca5197b.zip |
app-metrics/node_exporter: 1.0.1 bump
Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
-rw-r--r-- | app-metrics/node_exporter/Manifest | 1 | ||||
-rw-r--r-- | app-metrics/node_exporter/node_exporter-1.0.1.ebuild | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/app-metrics/node_exporter/Manifest b/app-metrics/node_exporter/Manifest index f0bd23b02a77..f042b18c4a4b 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 000000000000..ca15b40f88a0 --- /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 +} |