Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/prometheus/
Date: Tue, 24 Oct 2017 13:17:11
Message-Id: 1508851008.9922fc71d6d164a2cffb1697d56902b6b3ac1624.mrueg@gentoo
1 commit: 9922fc71d6d164a2cffb1697d56902b6b3ac1624
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 24 13:16:03 2017 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 24 13:16:48 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9922fc71
7
8 net-analyzer/prometheus: Version bump to 1.8.1
9
10 Package-Manager: Portage-2.3.12, Repoman-2.3.3
11
12 net-analyzer/prometheus/Manifest | 1 +
13 net-analyzer/prometheus/prometheus-1.8.1.ebuild | 59 +++++++++++++++++++++++++
14 2 files changed, 60 insertions(+)
15
16 diff --git a/net-analyzer/prometheus/Manifest b/net-analyzer/prometheus/Manifest
17 index f4ca40da4b6..ff7dc664ccf 100644
18 --- a/net-analyzer/prometheus/Manifest
19 +++ b/net-analyzer/prometheus/Manifest
20 @@ -1,2 +1,3 @@
21 DIST prometheus-1.8.0.tar.gz 5194115 SHA256 556247d750b3618b74ccf59669f74a8c0c39e72cdf51cbcc0c0bcc392de195df SHA512 1ac00ddae4753f99f167db9b6efc5fa442918284f59468b8e1c7743e3f946eab895678c87e12a73bf158e3c0bf3df7345dd59855baaabb54fc86f1ae1014192d WHIRLPOOL 9ff6f0dc36f022b2be107ce59878f81b210b196858064655a74e098650abc77d5a0c2afb11dd5ebb242d1e2addbc3a182b1a6ce1f751eed723e3fff3434d319c
22 +DIST prometheus-1.8.1.tar.gz 5194859 SHA256 dc2b7bb5b5f1273c131921d3e306fd198f2a5547abc58dcf511b700c62963595 SHA512 936728f51a12a080a0689c17b134f70f747bb2219f750ea5f7df7460169b3e484689d75df319cfae12fc939b556e4f59ed49682731e43405a4a91e4bbcd9cbb7 WHIRLPOOL 755ac91ecfe9234675bac2cee2c63a50c80a5e02267818b1ac7747c669df81e4e267dd884aa1da7463339f5344e8fdbb488c7521d0d7817360bad74ece256a86
23 DIST prometheus-2.0.0_rc1.tar.gz 5538094 SHA256 5d80280d4f8de0e5c79b02fa2ab9cbe4cf49a287ed268ed85a0f87abd257d226 SHA512 c89509693608a4f00713cb3b9f11b533236898af4a08580ecb4aa5f198d7f568719ddb78225f9d260128288aa7e037d0a0a820f8e42e2db4c7745e2f993fb4fe WHIRLPOOL 1765d9eb600da28e12d2c679a60f050d9557bbf974a53ff86363fb66fb82d64c4b55a85f9aac4c80039c317a88028c794e8387e0db3f0b925b86057d5ae17f7e
24
25 diff --git a/net-analyzer/prometheus/prometheus-1.8.1.ebuild b/net-analyzer/prometheus/prometheus-1.8.1.ebuild
26 new file mode 100644
27 index 00000000000..1a0cce6982b
28 --- /dev/null
29 +++ b/net-analyzer/prometheus/prometheus-1.8.1.ebuild
30 @@ -0,0 +1,59 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +inherit user golang-build golang-vcs-snapshot
36 +
37 +EGO_PN="github.com/prometheus/prometheus"
38 +EGIT_COMMIT="v${PV}"
39 +PROMETHEUS_COMMIT="3a7c51a"
40 +ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
41 +KEYWORDS="~amd64"
42 +
43 +DESCRIPTION="Prometheus monitoring system and time series database"
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-lang/go-1.8
51 + dev-util/promu"
52 +
53 +PROMETHEUS_HOME="/var/lib/prometheus"
54 +
55 +RESTRICT="test"
56 +
57 +pkg_setup() {
58 + enewgroup prometheus
59 + enewuser prometheus -1 -1 "${PROMETHEUS_HOME}" prometheus
60 +}
61 +
62 +src_prepare() {
63 + default
64 + sed -i -e "s/{{.Revision}}/${PROMETHEUS_COMMIT}/" src/${EGO_PN}/.promu.yml || die
65 +}
66 +
67 +src_compile() {
68 + pushd src/${EGO_PN} || die
69 + GOPATH="${S}" promu build -v || die
70 + popd || die
71 +}
72 +
73 +src_install() {
74 + pushd src/${EGO_PN} || die
75 + dobin promtool prometheus
76 + dodoc -r {documentation,{README,CHANGELOG,CONTRIBUTING}.md}
77 + insinto /etc/prometheus
78 + doins documentation/examples/prometheus.yml
79 + insinto /usr/share/prometheus
80 + doins -r console_libraries consoles
81 + dosym ../../usr/share/prometheus/console_libraries /etc/prometheus/console_libraries
82 + dosym ../../usr/share/prometheus/consoles /etc/prometheus/consoles
83 + popd || die
84 +
85 + newinitd "${FILESDIR}"/prometheus.initd prometheus
86 + newconfd "${FILESDIR}"/prometheus.confd prometheus
87 + keepdir /var/log/prometheus /var/lib/prometheus
88 + fowners prometheus:prometheus /var/log/prometheus /var/lib/prometheus
89 +}