1 |
commit: b6f19e08b7ffa6ea3bfc46e28e62b2c97972762a |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 23 16:27:57 2022 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 23 16:28:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6f19e08 |
7 |
|
8 |
app-metrics/prometheus: add 2.37.1, 2.38.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/872230 |
11 |
Signed-off-by: William Hubbs <williamh <AT> gentoo.org> |
12 |
|
13 |
app-metrics/prometheus/Manifest | 6 ++ |
14 |
app-metrics/prometheus/prometheus-2.37.1.ebuild | 72 ++++++++++++++++++++++++ |
15 |
app-metrics/prometheus/prometheus-2.38.0.ebuild | 73 +++++++++++++++++++++++++ |
16 |
3 files changed, 151 insertions(+) |
17 |
|
18 |
diff --git a/app-metrics/prometheus/Manifest b/app-metrics/prometheus/Manifest |
19 |
index 3c98edbb616c..cdc4b17492d3 100644 |
20 |
--- a/app-metrics/prometheus/Manifest |
21 |
+++ b/app-metrics/prometheus/Manifest |
22 |
@@ -1,3 +1,9 @@ |
23 |
DIST prometheus-2.36.2-assets.tar.xz 44439600 BLAKE2B 13d89a26f0603c303c9a160288cb7b4f55c5856d0230019a1b0e6a6adb1a556c200defd4cccd7e54ef699c2d6893af90f395bce748882001af13977f26323f14 SHA512 9ea5b99002d08e6a61c00737cc50ca57a3233aa170ab275930546eb4786b0845cad9d92248f5e64b8d10d8a10f3497a1c497aa773e398ee6c0d4b0a636eeca4e |
24 |
DIST prometheus-2.36.2-deps.tar.xz 253575088 BLAKE2B 7e2e3d41f69002cd46caa67517c41b7249f0c43c32a6c1ca7aa835ca86dd49fa672f423f0d1f065d356e560dbbda1327093793b7b33f1477d6605af5ec930143 SHA512 7c5c3a654b09e3bf6f04be2d7957b3be191a1df260742ef1f78204307d6e6fce2ef65d65e76f7ab289812e6ac8b80f1c2a0ed51ff987dbda04ec9a0ef21335cd |
25 |
DIST prometheus-2.36.2.tar.gz 6021280 BLAKE2B 0d60ca650913a6708bd7aebcb18d3f24f6720913b90a232acf0e89e7fea255edbfb16f400a146ce53bfb49319b42873c10f853a90c6565775984a11f2cd2563c SHA512 e232d14fe97399badcccdb30d3146161597bcd5519a28e95a0f8e21ff67fe0bf7e1e7434f6fced00a0cef1f047d09f30fa56d03e9c40556d046b53d878744f4d |
26 |
+DIST prometheus-2.37.1-assets.tar.xz 43874252 BLAKE2B 462da610ea9a27005e9355949b1f9ef777f9e95abaf961c40c0a036aab3d5834967efcadb029f335725826300627fc3ffe9674434dd04d374555f44c71d81232 SHA512 6d0dc592a9685dc96dbb36f9e6cd6fe2d6c8e6e6d6d2684d90192210503c1764124ec1b4241a2dfcb03261fa138e4bbc66f514b641ad8661b3a9c890b5ee0f2f |
27 |
+DIST prometheus-2.37.1-deps.tar.xz 256529272 BLAKE2B e1eaf93ddb91120b6fd18db64ee17e3b7f5ee6da4616dcf235074ce4c2cd12e93ea8cf71d428c8109f131f672048068b8751ce06d28ff29f09d5dfaa89ba1fbe SHA512 7810f186b4aa4b7e1e188f980626b83c59a9f67fd872497f4ee1e7df0c17640c3bca74250249b9a7126354fa0dd4135b052d7c5d8a13e084a916225e020e9674 |
28 |
+DIST prometheus-2.37.1.tar.gz 6049188 BLAKE2B f32b4d9b7e02f7edc3468d6ce650b2f03e508adaae2ee25c37a7dc1362b38afae1aa1107eaf3c64cf8d2bf77bdfae35c81895bf5b4b45db6efcfd54108f3ee36 SHA512 30114e34d8615ec6cd25663d8eb27c11aa402a4960f64b4e8c5ee9399d65913b05041deba4402761281b714743db99e5348c04ac06d85ac3a202c31224effe00 |
29 |
+DIST prometheus-2.38.0-assets.tar.xz 43847400 BLAKE2B 0eb92c08414d55528243b549550db626e2ce15de2399f45a4eaf9a35c724851e7df7243921b6384f2a3bf23b783b3a199a4f11db6bb73ff4289c97d2c447a939 SHA512 16d7c391c70a0950deca575eea37fbe4786632426f3b44d33716a39254dc7d64b50d3493f6159db204b56c78804d0bc274c8367feaa2261d01a6a767ec93347f |
30 |
+DIST prometheus-2.38.0-deps.tar.xz 258811628 BLAKE2B 0a9f5001d4afa1b9ce5feee98a4258315669b841343a1357606c8237ea9fa681ca47e640b0e36b1bc30420afa60edbcc53f0a1205e334129e4aaaf34b92505b6 SHA512 908ea45086fde89862a8ca8614654cfd7afa27ed0df38f27fc1e9493f721fff5c7e90711281bf0bf27bf9f938f25a89fe5ab29cec2082923eeca4259c068a80b |
31 |
+DIST prometheus-2.38.0.tar.gz 6057055 BLAKE2B 5cf4090d6e9b1cf918e21e1f6ee79f0b4478aa4fc28b0345c3555e684347bfbe9793661955ac406bdb4f87bdf0df2b96716d89a1ec201f7ceb5f1c3d0b7d5e7a SHA512 c2d5f5833012c88b23c9e2b3944e1ea5ecfdb0f24541a1012d46347d40b0b310fe71f71e137e6fec35ef9e12d113e8c77d07047351fa8f055c31b227c8ca40ae |
32 |
|
33 |
diff --git a/app-metrics/prometheus/prometheus-2.37.1.ebuild b/app-metrics/prometheus/prometheus-2.37.1.ebuild |
34 |
new file mode 100644 |
35 |
index 000000000000..4d738751742d |
36 |
--- /dev/null |
37 |
+++ b/app-metrics/prometheus/prometheus-2.37.1.ebuild |
38 |
@@ -0,0 +1,72 @@ |
39 |
+# Copyright 1999-2022 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=8 |
43 |
+inherit go-module systemd |
44 |
+GIT_COMMIT=1ce2197e7f9e95089bfb95cb61762b5a89a8c0da |
45 |
+MY_PV=v${PV/_rc/-rc.} |
46 |
+ |
47 |
+# To create the assets tarball run the following: |
48 |
+# git checkout <tag> |
49 |
+# make assets-compress |
50 |
+# tar -acf <tarball> web/ui |
51 |
+ |
52 |
+DESCRIPTION="Prometheus monitoring system and time series database" |
53 |
+HOMEPAGE="https://github.com/prometheus/prometheus" |
54 |
+SRC_URI="https://github.com/prometheus/prometheus/archive/${MY_PV}.tar.gz -> ${P}.tar.gz |
55 |
+ https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz |
56 |
+ https://dev.gentoo.org/~williamh/dist/${P}-assets.tar.xz" |
57 |
+ |
58 |
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0" |
59 |
+SLOT="0" |
60 |
+KEYWORDS="amd64 ~arm ~riscv" |
61 |
+ |
62 |
+COMMON_DEPEND="acct-group/prometheus |
63 |
+ acct-user/prometheus" |
64 |
+DEPEND="!app-metrics/prometheus-bin |
65 |
+ ${COMMON_DEPEND}" |
66 |
+RDEPEND="${COMMON_DEPEND}" |
67 |
+ |
68 |
+BDEPEND=">=dev-util/promu-0.3.0" |
69 |
+ |
70 |
+RESTRICT=" test" |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ default |
74 |
+ sed -i \ |
75 |
+ -e "s/{{.Branch}}/HEAD/" \ |
76 |
+ -e "s/{{.Revision}}/${GIT_COMMIT}/" \ |
77 |
+ -e "s/{{.Version}}/${PV}/" \ |
78 |
+ .promu.yml || die |
79 |
+ cp -a -n "${WORKDIR}"/web/ui web || die |
80 |
+} |
81 |
+ |
82 |
+src_compile() { |
83 |
+ emake PROMU="${EPREFIX}"/usr/bin/promu common-build plugins |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ dobin prometheus promtool |
88 |
+ dodoc -r {documentation,{README,CHANGELOG,CONTRIBUTING}.md} |
89 |
+ insinto /usr/share/prometheus |
90 |
+ doins -r console_libraries consoles |
91 |
+ insinto /etc/prometheus |
92 |
+ doins documentation/examples/prometheus.yml |
93 |
+ dosym -r /usr/share/prometheus/console_libraries /etc/prometheus/console_libraries |
94 |
+ dosym -r /usr/share/prometheus/consoles /etc/prometheus/consoles |
95 |
+ |
96 |
+ systemd_dounit "${FILESDIR}"/prometheus.service |
97 |
+ newinitd "${FILESDIR}"/prometheus.initd prometheus |
98 |
+ newconfd "${FILESDIR}"/prometheus.confd prometheus |
99 |
+ keepdir /var/log/prometheus /var/lib/prometheus |
100 |
+ fowners prometheus:prometheus /var/log/prometheus /var/lib/prometheus |
101 |
+} |
102 |
+ |
103 |
+pkg_postinst() { |
104 |
+ if has_version '<net-analyzer/prometheus-2.0.0_rc0'; then |
105 |
+ ewarn "Old prometheus 1.x TSDB won't be converted to the new prometheus 2.0 format" |
106 |
+ ewarn "Be aware that the old data currently cannot be accessed with prometheus 2.0" |
107 |
+ ewarn "This release requires a clean storage directory and is not compatible with" |
108 |
+ ewarn "files created by previous beta releases" |
109 |
+ fi |
110 |
+} |
111 |
|
112 |
diff --git a/app-metrics/prometheus/prometheus-2.38.0.ebuild b/app-metrics/prometheus/prometheus-2.38.0.ebuild |
113 |
new file mode 100644 |
114 |
index 000000000000..83110825d14a |
115 |
--- /dev/null |
116 |
+++ b/app-metrics/prometheus/prometheus-2.38.0.ebuild |
117 |
@@ -0,0 +1,73 @@ |
118 |
+# Copyright 1999-2022 Gentoo Authors |
119 |
+# Distributed under the terms of the GNU General Public License v2 |
120 |
+ |
121 |
+EAPI=8 |
122 |
+inherit go-module systemd |
123 |
+GIT_COMMIT=818d6e60888b2a3ea363aee8a9828c7bafd73699 |
124 |
+MY_PV=v${PV/_rc/-rc.} |
125 |
+ |
126 |
+# To create the assets tarball run the following: |
127 |
+# git checkout <tag> |
128 |
+# make assets-compress |
129 |
+# tar -acf <tarball> web/ui |
130 |
+ |
131 |
+ |
132 |
+DESCRIPTION="Prometheus monitoring system and time series database" |
133 |
+HOMEPAGE="https://github.com/prometheus/prometheus" |
134 |
+SRC_URI="https://github.com/prometheus/prometheus/archive/${MY_PV}.tar.gz -> ${P}.tar.gz |
135 |
+ https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz |
136 |
+ https://dev.gentoo.org/~williamh/dist/${P}-assets.tar.xz" |
137 |
+ |
138 |
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0" |
139 |
+SLOT="0" |
140 |
+KEYWORDS="amd64 ~arm ~riscv" |
141 |
+ |
142 |
+COMMON_DEPEND="acct-group/prometheus |
143 |
+ acct-user/prometheus" |
144 |
+DEPEND="!app-metrics/prometheus-bin |
145 |
+ ${COMMON_DEPEND}" |
146 |
+RDEPEND="${COMMON_DEPEND}" |
147 |
+ |
148 |
+BDEPEND=">=dev-util/promu-0.3.0" |
149 |
+ |
150 |
+RESTRICT=" test" |
151 |
+ |
152 |
+src_prepare() { |
153 |
+ default |
154 |
+ sed -i \ |
155 |
+ -e "s/{{.Branch}}/HEAD/" \ |
156 |
+ -e "s/{{.Revision}}/${GIT_COMMIT}/" \ |
157 |
+ -e "s/{{.Version}}/${PV}/" \ |
158 |
+ .promu.yml || die |
159 |
+ cp -a -n "${WORKDIR}"/web/ui web || die |
160 |
+} |
161 |
+ |
162 |
+src_compile() { |
163 |
+ emake PROMU="${EPREFIX}"/usr/bin/promu common-build plugins |
164 |
+} |
165 |
+ |
166 |
+src_install() { |
167 |
+ dobin prometheus promtool |
168 |
+ dodoc -r {documentation,{README,CHANGELOG,CONTRIBUTING}.md} |
169 |
+ insinto /usr/share/prometheus |
170 |
+ doins -r console_libraries consoles |
171 |
+ insinto /etc/prometheus |
172 |
+ doins documentation/examples/prometheus.yml |
173 |
+ dosym -r /usr/share/prometheus/console_libraries /etc/prometheus/console_libraries |
174 |
+ dosym -r /usr/share/prometheus/consoles /etc/prometheus/consoles |
175 |
+ |
176 |
+ systemd_dounit "${FILESDIR}"/prometheus.service |
177 |
+ newinitd "${FILESDIR}"/prometheus.initd prometheus |
178 |
+ newconfd "${FILESDIR}"/prometheus.confd prometheus |
179 |
+ keepdir /var/log/prometheus /var/lib/prometheus |
180 |
+ fowners prometheus:prometheus /var/log/prometheus /var/lib/prometheus |
181 |
+} |
182 |
+ |
183 |
+pkg_postinst() { |
184 |
+ if has_version '<net-analyzer/prometheus-2.0.0_rc0'; then |
185 |
+ ewarn "Old prometheus 1.x TSDB won't be converted to the new prometheus 2.0 format" |
186 |
+ ewarn "Be aware that the old data currently cannot be accessed with prometheus 2.0" |
187 |
+ ewarn "This release requires a clean storage directory and is not compatible with" |
188 |
+ ewarn "files created by previous beta releases" |
189 |
+ fi |
190 |
+} |