1 |
commit: bf7530a0e40ac8a62f41857e0a88cab12698d896 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 17 20:10:14 2019 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 17 20:10:14 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf7530a0 |
7 |
|
8 |
app-metrics/prometheus: Version bump to 2.13.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.16 |
11 |
Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org> |
12 |
|
13 |
app-metrics/prometheus/Manifest | 1 + |
14 |
app-metrics/prometheus/prometheus-2.13.1.ebuild | 68 +++++++++++++++++++++++++ |
15 |
2 files changed, 69 insertions(+) |
16 |
|
17 |
diff --git a/app-metrics/prometheus/Manifest b/app-metrics/prometheus/Manifest |
18 |
index 063a2162530..e5dcd86240c 100644 |
19 |
--- a/app-metrics/prometheus/Manifest |
20 |
+++ b/app-metrics/prometheus/Manifest |
21 |
@@ -1,4 +1,5 @@ |
22 |
DIST prometheus-2.11.2.tar.gz 12132678 BLAKE2B 0b6b9a93b7329c124f901d0acc6130132aa187142f0416e087c12f20b0cd35f8564a27d0df8c0bc811284b9811f446344adf700d6611afac3c5c1131c208b341 SHA512 cecdaf4522885bdf62492667d92475a97c54b04c1e93f48b6078def319fe33f5e28aafbab61e3609413615d6f853e817564fc372e5d1df0d867fe9fa333f6de9 |
23 |
DIST prometheus-2.12.0.tar.gz 15221347 BLAKE2B 6061562e6bafe8e2373ad676e7acd2b5d5ff8e195cf4c1abd709347992c16970b64b225e9f58f33a801ff521abc78422281d97d8c5307a80a64fb8c8a8d8d5fe SHA512 3d3b5ce3afd13714a8fa96964784fa40feb650459f657cbc695c6a7e866f89c488132b408d78ea101804532768c51c3913607bf001f27d3f05c3df9efe3cab82 |
24 |
DIST prometheus-2.13.0.tar.gz 15193225 BLAKE2B 4b7b5cffb916bea382e741969de5e2a97cca89055e5096d1042fc03d2c63efb95719e394c1abeeed2351afed797065d20773693987384811654bdc32b57e2c96 SHA512 1c9ae1cbbe4e96d00c804a6a891c0b93a36c633499433a7b5f88a80cba98874bb01d2a10bd9e3b42a2a4d07580e4d16e34f50d5e07636cf6d7d7c52c967dafc3 |
25 |
+DIST prometheus-2.13.1.tar.gz 15249891 BLAKE2B 35cd3c81bdb4f3a783c2ab1f1318946db5b25c94496fe351739a59259a726bf54d418d6b29efeff44c8007353ed63368819ce89ffe6a4f380b7ae216da3c4d63 SHA512 aed3b44db97cd2a67add64d13e950246b25c2b459f6b1081a6c548862c4e85c055254a0dfb94b08ac85f83dbbe30afceb1c54a8ad6f7ff1367aeb6af6d270e8a |
26 |
DIST prometheus-2.9.2.tar.gz 11477683 BLAKE2B f0c18c57ff0fe292710174a91080a84ecf0375b4335aacaf4a8e32c842a9346b9fd48888ef8a19a597511c57eb8af7f90cca57d0cc51b9de4558c3f22953d165 SHA512 4cce1827580e49b1659ad492de946a81694c1dab90e079f3f0e56c1991254cf4ecac7f052aac75bf58a0b95d3cf4daa8c15b3e8305a3c089570da40c44a8ccc0 |
27 |
|
28 |
diff --git a/app-metrics/prometheus/prometheus-2.13.1.ebuild b/app-metrics/prometheus/prometheus-2.13.1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..ee39a79d382 |
31 |
--- /dev/null |
32 |
+++ b/app-metrics/prometheus/prometheus-2.13.1.ebuild |
33 |
@@ -0,0 +1,68 @@ |
34 |
+# Copyright 1999-2019 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+inherit user golang-build golang-vcs-snapshot |
39 |
+ |
40 |
+EGO_PN="github.com/prometheus/prometheus" |
41 |
+MY_PV=v${PV/_rc/-rc.} |
42 |
+PROMETHEUS_COMMIT="6f92ce5" |
43 |
+KEYWORDS="~amd64" |
44 |
+ |
45 |
+DESCRIPTION="Prometheus monitoring system and time series database" |
46 |
+HOMEPAGE="https://github.com/prometheus/prometheus" |
47 |
+SRC_URI="https://${EGO_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
48 |
+LICENSE="Apache-2.0" |
49 |
+SLOT="0" |
50 |
+IUSE="" |
51 |
+ |
52 |
+DEPEND=" |
53 |
+ >=dev-lang/go-1.12 |
54 |
+ >=dev-util/promu-0.3.0" |
55 |
+ |
56 |
+PROMETHEUS_HOME="/var/lib/prometheus" |
57 |
+ |
58 |
+RESTRICT="test" |
59 |
+ |
60 |
+pkg_setup() { |
61 |
+ enewgroup prometheus |
62 |
+ enewuser prometheus -1 -1 "${PROMETHEUS_HOME}" prometheus |
63 |
+} |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ default |
67 |
+ sed -i -e "s/{{.Revision}}/${PROMETHEUS_COMMIT}/" src/${EGO_PN}/.promu.yml || die |
68 |
+} |
69 |
+ |
70 |
+src_compile() { |
71 |
+ pushd src/${EGO_PN} || die |
72 |
+ GO111MODULE=on GOPATH="${S}" GOCACHE="${T}/go-cache" promu build -v || die |
73 |
+ popd || die |
74 |
+} |
75 |
+ |
76 |
+src_install() { |
77 |
+ pushd src/${EGO_PN} || die |
78 |
+ dobin promtool prometheus |
79 |
+ dodoc -r {documentation,{README,CHANGELOG,CONTRIBUTING}.md} |
80 |
+ insinto /etc/prometheus |
81 |
+ doins documentation/examples/prometheus.yml |
82 |
+ insinto /usr/share/prometheus |
83 |
+ doins -r console_libraries consoles |
84 |
+ dosym ../../usr/share/prometheus/console_libraries /etc/prometheus/console_libraries |
85 |
+ dosym ../../usr/share/prometheus/consoles /etc/prometheus/consoles |
86 |
+ popd || die |
87 |
+ |
88 |
+ newinitd "${FILESDIR}"/prometheus.initd prometheus |
89 |
+ newconfd "${FILESDIR}"/prometheus.confd prometheus |
90 |
+ keepdir /var/log/prometheus /var/lib/prometheus |
91 |
+ fowners prometheus:prometheus /var/log/prometheus /var/lib/prometheus |
92 |
+} |
93 |
+ |
94 |
+pkg_postinst() { |
95 |
+ if has_version '<net-analyzer/prometheus-2.0.0_rc0'; then |
96 |
+ ewarn "Old prometheus 1.x TSDB won't be converted to the new prometheus 2.0 format" |
97 |
+ ewarn "Be aware that the old data currently cannot be accessed with prometheus 2.0" |
98 |
+ ewarn "This release requires a clean storage directory and is not compatible with" |
99 |
+ ewarn "files created by previous beta releases" |
100 |
+ fi |
101 |
+} |