1 |
commit: 8123659fede7101d47d1533673cc28a520030351 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 29 12:50:20 2019 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 29 12:50:20 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8123659f |
7 |
|
8 |
app-metrics/prometheus: Version bump to 2.8.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org> |
12 |
|
13 |
app-metrics/prometheus/Manifest | 1 + |
14 |
app-metrics/prometheus/prometheus-2.8.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 470ac1e74cd..e687741cce3 100644 |
19 |
--- a/app-metrics/prometheus/Manifest |
20 |
+++ b/app-metrics/prometheus/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST prometheus-2.4.3.tar.gz 6095284 BLAKE2B 9b9d54cf8ed61453d63e4b93cd81cd1c08a |
22 |
DIST prometheus-2.6.1.tar.gz 6612143 BLAKE2B 33dc64406dd45f494720a1ff5f6d09ed4b45b3880b15626ab7455909258addc5d1549d3edbf8af9a374516930b297c5bdb6ef51a78cac3cb338357896c0d71ae SHA512 80bf6afa00b60aa4245a53e275a2b9579a7936609aba4ffacbbe478f34e530208e0498d8c5ea53dd3a940726e05bd6fac19fed3d6d9dd209af565d5368b2340f |
23 |
DIST prometheus-2.7.2.tar.gz 7276689 BLAKE2B 4fa1325b0f68bd33f4db45d3ea0fcac24bc1319284086d3ee0d3aa65c1a4ab4c37a1a67fd6e1de74e851dd90d50b566f5a1fa5b68b11c3defefd2506f5b4ce98 SHA512 3dc46069581c457005de0eefe777e93ae72b73c624d7c728973f3c64c34d68628da13d76e3527e3825309d543fd81ef7446c776e0772c1f6bf58e5ebad805973 |
24 |
DIST prometheus-2.8.0.tar.gz 11097030 BLAKE2B 5c56e5d31048bc35e5c02aed4736590adc2e8a6364b926ed8181aceeaccbd6b86b1a63f59176b6efca9a9adbe3855f8dfb3d20713093d4f38a3c5c3f52061ef5 SHA512 9b0b0679768a9426547b232a87a3109008c28a59ef74b9376f192209c4005c7f18d622601ebef14516786378c5f014f6734a4e1a7929ffc0b9b7c369d28030eb |
25 |
+DIST prometheus-2.8.1.tar.gz 11097954 BLAKE2B 90add9b1daff278b8ec185eee1af5e00e26abaa6ab1f99383dd7de8ce2b99cc0612957681c36640b7a822d3b8d05e5ecb015b00409d67292d6176a058233932e SHA512 7a93d7c6e1f9fc1a57d11e6a17e6d0b3375b2e1babac0a89b8deac0834eac29b3ed7c4131c8992e4cdfd76f7d9eea0162e880fd9e44432f537e070eda647cef2 |
26 |
|
27 |
diff --git a/app-metrics/prometheus/prometheus-2.8.1.ebuild b/app-metrics/prometheus/prometheus-2.8.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..66c9dce364b |
30 |
--- /dev/null |
31 |
+++ b/app-metrics/prometheus/prometheus-2.8.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="4d60eb3" |
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.11 |
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 |
+} |