diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2018-04-10 14:26:13 +0200 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2018-04-10 14:26:13 +0200 |
commit | e2e92caaac4c7f75c35d26831790c54c950615c8 (patch) | |
tree | 3e403d613f6a3c644759231fdc4f793d919adef2 /app-metrics/node_exporter | |
parent | sys-kernel/cryptodev: fix bug 629958 (diff) | |
download | gentoo-e2e92caaac4c7f75c35d26831790c54c950615c8.tar.gz gentoo-e2e92caaac4c7f75c35d26831790c54c950615c8.tar.bz2 gentoo-e2e92caaac4c7f75c35d26831790c54c950615c8.zip |
app-metrics/node_exporter: Version bump to 0.16.0_rc1
Package-Manager: Portage-2.3.28, Repoman-2.3.9
Diffstat (limited to 'app-metrics/node_exporter')
-rw-r--r-- | app-metrics/node_exporter/Manifest | 1 | ||||
-rw-r--r-- | app-metrics/node_exporter/node_exporter-0.16.0_rc1.ebuild | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/app-metrics/node_exporter/Manifest b/app-metrics/node_exporter/Manifest index 050c97195c0a..8017bcea9a5d 100644 --- a/app-metrics/node_exporter/Manifest +++ b/app-metrics/node_exporter/Manifest @@ -1 +1,2 @@ DIST node_exporter-0.15.2.tar.gz 1327204 BLAKE2B ee694771ed6d736fd4bb6a10f713f31becc930fb8225499d4b3a2a2cc7416c1816605cd8f4205dc37a2264af8d9f85e3519bc01844d252b6a70d4ee5f6308ece SHA512 b39ce0801a5bf5a2a70c4034659d047d70b3763af3f18925b65c2b5f72832e261362aaeb9ce4c68cb7bf52e790d3fc710a6c8550ad7876e89fd9f5a055200a52 +DIST node_exporter-0.16.0_rc1.tar.gz 1414955 BLAKE2B 6a05e3ca934e59f292133c09f3e6a1d0babaf184f8daa2861fe04192e4fd6d978ea8a7b8530dbe777f81ab762cc7b0899aed39cb7dbd49eae635acd25a957772 SHA512 65a39d15a6645b9a5c5e1650a929229e3ef780fe0d047792f003581322497a6e9ecacfb26af7c22a8d4a7034fd5ce886913e9ec4bfd049d521f01db463573aa8 diff --git a/app-metrics/node_exporter/node_exporter-0.16.0_rc1.ebuild b/app-metrics/node_exporter/node_exporter-0.16.0_rc1.ebuild new file mode 100644 index 000000000000..c40c2737f67f --- /dev/null +++ b/app-metrics/node_exporter/node_exporter-0.16.0_rc1.ebuild @@ -0,0 +1,48 @@ +# 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/node_exporter" +EGIT_COMMIT="v${PV/_rc/-rc.}" +NODE_EXPORTER_COMMIT="f3ff44f" +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-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 + 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 + 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} +} |