summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2017-03-13 12:38:19 +0100
committerManuel Rüger <mrueg@gentoo.org>2017-03-13 12:39:05 +0100
commit3d37f7e56cf996aec16e59dd3e62133840d2a56a (patch)
treee6cd5cb6731cd5e5c19116baa2bab335605297b9 /net-analyzer
parentwww-client/chromium: dev channel bump (58.0.3029.14) (diff)
downloadgentoo-3d37f7e56cf996aec16e59dd3e62133840d2a56a.tar.gz
gentoo-3d37f7e56cf996aec16e59dd3e62133840d2a56a.tar.bz2
gentoo-3d37f7e56cf996aec16e59dd3e62133840d2a56a.zip
net-analyzer/prometheus-node_exporter: Version bump to 0.14.0_rc2
Package-Manager: Portage-2.3.4, Repoman-2.3.2
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/prometheus-node_exporter/Manifest1
-rw-r--r--net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0_rc2.ebuild48
2 files changed, 49 insertions, 0 deletions
diff --git a/net-analyzer/prometheus-node_exporter/Manifest b/net-analyzer/prometheus-node_exporter/Manifest
index daa9b0ee896a..20d2caed2d6c 100644
--- a/net-analyzer/prometheus-node_exporter/Manifest
+++ b/net-analyzer/prometheus-node_exporter/Manifest
@@ -1 +1,2 @@
DIST prometheus-node_exporter-0.14.0_rc1.tar.gz 1054858 SHA256 bcc2c544e1bac46d6768d4ddb59ec08fa4dfda2f370145c44dc80adff8a35b17 SHA512 1b54ddb48984408909a7112c411cb4dee9c8fc05fc3fabd1e1d9a4ff5c2e85b2d5dedd9c70027b2b4df7539d8b0e8d1958bb5e05f9a1abd08ad3e09d6c59b321 WHIRLPOOL d5b253ec6d67415eb0c82794f75f4d1d659fecb9d880429ef5c021bbe45ccef1304a6823c545b78175dbb01c37b06120008b9c92f44e9a6defa83bcfe2df4549
+DIST prometheus-node_exporter-0.14.0_rc2.tar.gz 1084859 SHA256 e5d8a3245668e8a7453a86c929e04d2200a5730a497618715ef14f4642bdf364 SHA512 17800439eddb85bb8ec1e3fd5c1054610e41c419f5ec159a2f989d3d76ad5077350911773d866353912fc23bb12c0565f6f0a74e24825ab1c628723867a4a6ac WHIRLPOOL e4ce1c854d79bc6500bc04527a4b1dc3f7489ed34e0f2705cb2b9ddb7049aacb4dd0c13929d286ff80ca076662d78f08a77b42f2a3edcbb9b84e75b79613a6e7
diff --git a/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0_rc2.ebuild b/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0_rc2.ebuild
new file mode 100644
index 000000000000..8bfa86bbaa48
--- /dev/null
+++ b/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0_rc2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 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="0e60bb8"
+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
+}