1 |
commit: a90e7bdaade82e4eda7d9728ea069a71f12b3d0a |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 23 18:25:01 2017 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 23 18:25:01 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a90e7bda |
7 |
|
8 |
net-analyzer/prometheus-node_exporter: Version bump to 0.14.0_rc1 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
net-analyzer/prometheus-node_exporter/Manifest | 1 + |
13 |
.../prometheus-node_exporter-0.14.0_rc1.ebuild | 49 ++++++++++++++++++++++ |
14 |
2 files changed, 50 insertions(+) |
15 |
|
16 |
diff --git a/net-analyzer/prometheus-node_exporter/Manifest b/net-analyzer/prometheus-node_exporter/Manifest |
17 |
index a46787d..3a08545 100644 |
18 |
--- a/net-analyzer/prometheus-node_exporter/Manifest |
19 |
+++ b/net-analyzer/prometheus-node_exporter/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST prometheus-node_exporter-0.13.0_p20161212.tar.gz 755620 SHA256 221b2444dd895539c9028d04d6557583ae63a9f01377fe3cd6d2846b7411ec6d SHA512 d01cb01c86162e645af9ac4df860e4ab9a63999f7fa10236e6419ac14661a985dbff73d8948ecaceab0565fdb3d4dd7c5081855752e9cdafaa1d1994b96827e4 WHIRLPOOL 38f8343f3549dce96c383bc10eb2c802ec7196f492539a9356a473f85100d3823c74bc17e7c55608d9aa5a8931f0f61ef9b5fa395ae692d2c5861cd9b4bc58da |
22 |
+DIST prometheus-node_exporter-0.14.0_rc1.tar.gz 1054858 SHA256 bcc2c544e1bac46d6768d4ddb59ec08fa4dfda2f370145c44dc80adff8a35b17 SHA512 1b54ddb48984408909a7112c411cb4dee9c8fc05fc3fabd1e1d9a4ff5c2e85b2d5dedd9c70027b2b4df7539d8b0e8d1958bb5e05f9a1abd08ad3e09d6c59b321 WHIRLPOOL d5b253ec6d67415eb0c82794f75f4d1d659fecb9d880429ef5c021bbe45ccef1304a6823c545b78175dbb01c37b06120008b9c92f44e9a6defa83bcfe2df4549 |
23 |
|
24 |
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 |
25 |
new file mode 100644 |
26 |
index 00000000..719517c |
27 |
--- /dev/null |
28 |
+++ b/net-analyzer/prometheus-node_exporter/prometheus-node_exporter-0.14.0_rc1.ebuild |
29 |
@@ -0,0 +1,49 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=6 |
35 |
+inherit user golang-build golang-vcs-snapshot |
36 |
+ |
37 |
+EGO_PN="github.com/prometheus/node_exporter/..." |
38 |
+EGIT_COMMIT="v${PV/_rc/-rc.}" |
39 |
+NODE_EXPORTER_COMMIT="5a07f41" |
40 |
+ARCHIVE_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
41 |
+KEYWORDS="~amd64" |
42 |
+ |
43 |
+DESCRIPTION="Prometheus exporter for machine metrics" |
44 |
+HOMEPAGE="https://github.com/prometheus/prometheus" |
45 |
+SRC_URI="${ARCHIVE_URI}" |
46 |
+LICENSE="Apache-2.0" |
47 |
+SLOT="0" |
48 |
+IUSE="" |
49 |
+ |
50 |
+DEPEND="dev-util/promu" |
51 |
+ |
52 |
+pkg_setup() { |
53 |
+ enewgroup prometheus-exporter |
54 |
+ enewuser prometheus-exporter -1 -1 -1 prometheus-exporter |
55 |
+} |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ default |
59 |
+ sed -i -e "s/{{.Revision}}/${NODE_EXPORTER_COMMIT}/" src/${EGO_PN%/*}/.promu.yml || die |
60 |
+} |
61 |
+ |
62 |
+src_compile() { |
63 |
+ pushd src/${EGO_PN%/*} || die |
64 |
+ mkdir bin |
65 |
+ GOPATH="${S}" promu build -v --prefix prometheus-node_exporter || die |
66 |
+ popd || die |
67 |
+} |
68 |
+ |
69 |
+src_install() { |
70 |
+ pushd src/${EGO_PN%/*} || die |
71 |
+ dobin prometheus-node_exporter |
72 |
+ dodoc {README,CHANGELOG,CONTRIBUTING}.md |
73 |
+ popd || die |
74 |
+ keepdir /etc/prometheus-exporter /var/log/prometheus-exporter |
75 |
+ fowners prometheus-exporter:prometheus-exporter /etc/prometheus-exporter /var/log/prometheus-exporter |
76 |
+ newinitd "${FILESDIR}"/prometheus-node_exporter.initd prometheus-node_exporter |
77 |
+ newconfd "${FILESDIR}"/prometheus-node_exporter.confd prometheus-node_exporter |
78 |
+} |