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