summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2017-11-08 13:31:06 +0100
committerManuel Rüger <mrueg@gentoo.org>2017-11-08 13:31:06 +0100
commita1f85aa6737d582349dcdabedf8a780da029920f (patch)
tree060c1568a31ec4e1f79ef3c541b541fe1222caf9 /net-analyzer
parentnet-analyzer/prometheus: Remove old (diff)
downloadgentoo-a1f85aa6737d582349dcdabedf8a780da029920f.tar.gz
gentoo-a1f85aa6737d582349dcdabedf8a780da029920f.tar.bz2
gentoo-a1f85aa6737d582349dcdabedf8a780da029920f.zip
net-analyzer/prometheus-node_exporter: Version bump to 0.15.1
Package-Manager: Portage-2.3.12, Repoman-2.3.4
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.15.1.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 777930447c12..a742a7cd54dc 100644
--- a/net-analyzer/prometheus-node_exporter/Manifest
+++ b/net-analyzer/prometheus-node_exporter/Manifest
@@ -1 +1,2 @@
DIST prometheus-node_exporter-0.15.0.tar.gz 1324698 SHA256 87a057081e2034f85e997f9e1343aaf45e1b6ad9fa51411caf97a03fe1c46ccb SHA512 0630c112742ef029d24a0086f9cf0a2efcf1125987dc1e6978055d3e74b820bbd91fd2e7391aa5108881a08a2ec06aff4c1500ebbb6644b46fd7e6271f2b8fa9 WHIRLPOOL 8d4da98c4df9dd344ea68e64deb550197af04b01251dfc784c992007b24677843af8f5d973fafef6e679ce1b2a769512a43419406252cf5f9d35b91c17011a1f
+DIST prometheus-node_exporter-0.15.1.tar.gz 1327099 SHA256 63503acd6f4c83f20465b0ad3abe49232ada3a933f0f6717aec99bfe13d20934 SHA512 884f4b3a5e78ecf110e26fbceb6e431cf69f9d0e87ceae33ac767addac197230c2a0d34725fe1f5fe99cbb280e89e4dfea3a6d559027633a7fb071cfdc0f8539 WHIRLPOOL aedcaaf8145952feedac81a5789c9e193624f0ad7da63b2aeef1e96775ae0df69e33dd8e21c64f73a75d698d76d64c7c9b9dec203a9c18374b6083162932a8cf
diff --git a/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.15.1.ebuild b/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.15.1.ebuild
new file mode 100644
index 000000000000..a300b0f49c9c
--- /dev/null
+++ b/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.15.1.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="ba5da2c"
+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}
+}