summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2017-01-23 19:25:01 +0100
committerManuel Rüger <mrueg@gentoo.org>2017-01-23 19:25:01 +0100
commita90e7bdaade82e4eda7d9728ea069a71f12b3d0a (patch)
treeae9fb4effceffd15e5f33e3e2b42190da1b8bd50 /net-analyzer/prometheus-node_exporter
parentnet-analyzer/prometheus: Remove old (diff)
downloadgentoo-a90e7bdaade82e4eda7d9728ea069a71f12b3d0a.tar.gz
gentoo-a90e7bdaade82e4eda7d9728ea069a71f12b3d0a.tar.bz2
gentoo-a90e7bdaade82e4eda7d9728ea069a71f12b3d0a.zip
net-analyzer/prometheus-node_exporter: Version bump to 0.14.0_rc1
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-analyzer/prometheus-node_exporter')
-rw-r--r--net-analyzer/prometheus-node_exporter/Manifest1
-rw-r--r--net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0_rc1.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/net-analyzer/prometheus-node_exporter/Manifest b/net-analyzer/prometheus-node_exporter/Manifest
index a46787def3d4..3a085454b566 100644
--- a/net-analyzer/prometheus-node_exporter/Manifest
+++ b/net-analyzer/prometheus-node_exporter/Manifest
@@ -1 +1,2 @@
DIST prometheus-node_exporter-0.13.0_p20161212.tar.gz 755620 SHA256 221b2444dd895539c9028d04d6557583ae63a9f01377fe3cd6d2846b7411ec6d SHA512 d01cb01c86162e645af9ac4df860e4ab9a63999f7fa10236e6419ac14661a985dbff73d8948ecaceab0565fdb3d4dd7c5081855752e9cdafaa1d1994b96827e4 WHIRLPOOL 38f8343f3549dce96c383bc10eb2c802ec7196f492539a9356a473f85100d3823c74bc17e7c55608d9aa5a8931f0f61ef9b5fa395ae692d2c5861cd9b4bc58da
+DIST prometheus-node_exporter-0.14.0_rc1.tar.gz 1054858 SHA256 bcc2c544e1bac46d6768d4ddb59ec08fa4dfda2f370145c44dc80adff8a35b17 SHA512 1b54ddb48984408909a7112c411cb4dee9c8fc05fc3fabd1e1d9a4ff5c2e85b2d5dedd9c70027b2b4df7539d8b0e8d1958bb5e05f9a1abd08ad3e09d6c59b321 WHIRLPOOL d5b253ec6d67415eb0c82794f75f4d1d659fecb9d880429ef5c021bbe45ccef1304a6823c545b78175dbb01c37b06120008b9c92f44e9a6defa83bcfe2df4549
diff --git a/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0_rc1.ebuild b/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0_rc1.ebuild
new file mode 100644
index 000000000000..719517ce9c2e
--- /dev/null
+++ b/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0_rc1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="5a07f41"
+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/prometheus"
+SRC_URI="${ARCHIVE_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-util/promu"
+
+pkg_setup() {
+ enewgroup prometheus-exporter
+ enewuser prometheus-exporter -1 -1 -1 prometheus-exporter
+}
+
+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 bin
+ GOPATH="${S}" promu build -v --prefix prometheus-node_exporter || die
+ popd || die
+}
+
+src_install() {
+ pushd src/${EGO_PN%/*} || die
+ dobin prometheus-node_exporter
+ dodoc {README,CHANGELOG,CONTRIBUTING}.md
+ popd || die
+ keepdir /etc/prometheus-exporter /var/log/prometheus-exporter
+ fowners prometheus-exporter:prometheus-exporter /etc/prometheus-exporter /var/log/prometheus-exporter
+ newinitd "${FILESDIR}"/prometheus-node_exporter.initd prometheus-node_exporter
+ newconfd "${FILESDIR}"/prometheus-node_exporter.confd prometheus-node_exporter
+}