Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-metrics/prometheus/
Date: Fri, 14 May 2021 08:38:55
Message-Id: 1620981526.df2893e3c110f23292282552e2a47141424ea05c.zlogene@gentoo
1 commit: df2893e3c110f23292282552e2a47141424ea05c
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 14 08:19:34 2021 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Fri May 14 08:38:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df2893e3
7
8 app-metrics/prometheus: Drop old
9
10 Package-Manager: Portage-3.0.17, Repoman-3.0.2
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 app-metrics/prometheus/Manifest | 1 -
14 app-metrics/prometheus/prometheus-2.13.1.ebuild | 69 -------------------------
15 2 files changed, 70 deletions(-)
16
17 diff --git a/app-metrics/prometheus/Manifest b/app-metrics/prometheus/Manifest
18 index 26a7bfc5d3c..abcb5808096 100644
19 --- a/app-metrics/prometheus/Manifest
20 +++ b/app-metrics/prometheus/Manifest
21 @@ -1315,7 +1315,6 @@ DIST k8s.io%2Fkube-openapi%2F@v%2Fv0.0.0-20201113171705-d219536bb9fd.mod 1277 BL
22 DIST k8s.io%2Fkube-openapi%2F@v%2Fv0.0.0-20201113171705-d219536bb9fd.zip 1002101 BLAKE2B 3ffce7dc81c73dc390b68e8ee35a68b125880bfe214e0ac3acf6ec9dffd180b430951f4972c53a5bdbcb0012fa9a165870ba4316252ac90195e9fe4e358df1c5 SHA512 5dc73a20de4b31f0f93540f58d0c7394de26c302298be6268529ea2928f18d3f97bd33e4ee02cb4a8c14c31e798f694414b8ecbade75e1486206d28c1b8e265c
23 DIST k8s.io%2Futils%2F@v%2Fv0.0.0-20201110183641-67b214c5f920.mod 167 BLAKE2B 2a61747d367153284e7e614a82f98c8913693f3b51174c24b7f25d8e9d236418c4da9e6b33c7cdb7b4350314373037e1e7121ad7c0ca5fbc9a3b4b711a078a98 SHA512 1117d2493d40a111a749b0033c92876773242b86da0b437ba063e5da21289102d784479b0c757ad8ce50de4b1d8a2f6956afe3b2656977bd76bfab9f97c1d8a9
24 DIST k8s.io%2Futils%2F@v%2Fv0.0.0-20201110183641-67b214c5f920.zip 166996 BLAKE2B 210f1ba6f4b371b8216157d219b23dfada39ef76a86152d10dd34673bcd486dbd93802b1d610e31c4ca794e8d2eb1744d77e84adde09277c11929937d6631410 SHA512 03eb8ba4916ec58144deb1a10f47019e127a688c7e3f87b3ba6fee85a2c41b92b6d7a9293c6bf8921b33f83f8e46be019fd4751fe6c1c98cb83a6080065d2b51
25 -DIST prometheus-2.13.1.tar.gz 15249891 BLAKE2B 35cd3c81bdb4f3a783c2ab1f1318946db5b25c94496fe351739a59259a726bf54d418d6b29efeff44c8007353ed63368819ce89ffe6a4f380b7ae216da3c4d63 SHA512 aed3b44db97cd2a67add64d13e950246b25c2b459f6b1081a6c548862c4e85c055254a0dfb94b08ac85f83dbbe30afceb1c54a8ad6f7ff1367aeb6af6d270e8a
26 DIST prometheus-2.26.0-asset.tar.xz 4629492 BLAKE2B 61e175346a81a0aa910138997b9d8e80bd4a0c4a7beb9c6b10727e05c0757e227bf4b427f8a2ed8ba84b2615c178b8aea974e2f0cbd3b88e7bed0fa30da52f0a SHA512 16c3c2307e60d2cfb53548967efb5dee0e7fce2f6a54d5a24c5e061262d86a2e2584ef80324fc9c600e5cd2307ae805bfb6859b4e2ef387eb68c50623d4ab797
27 DIST prometheus-2.26.0.tar.gz 5618384 BLAKE2B c7fc5ac4d1032ec1b77555165ae050d1164057e6cdcd9af6e6f8aacf871f70049c27e2fadcc105667893e972f17011f13bba090a24be4f6f87916732f7231074 SHA512 b43496fe83a356f7a91f08ed8b06e1214246b2fcfbf30bca39d0be44e2a92daff841e78d3514b8858c4e127b5a5bc0b602212e7f31176362af50cd9685c26bc7
28 DIST rsc.io%2Fbinaryregexp%2F@v%2Fv0.2.0.mod 36 BLAKE2B 61110bed2b9e99e0250cf6e8b842257202c89b3462edf9368b73cab29f9dbd4dcc66c3e290a1d6329b7d62321eecc52082a8c4c0797eac743a29a8a00910a93f SHA512 db50ff677b0bdccbc1a1ad3df7c5cc76f2fcccf3ab99d08d1c2868440eb9b893fe89452f4286f7d42f2f16abf0f4acda67fe86e174dcfa730a743aafcc166774
29
30 diff --git a/app-metrics/prometheus/prometheus-2.13.1.ebuild b/app-metrics/prometheus/prometheus-2.13.1.ebuild
31 deleted file mode 100644
32 index 22778bc2ce9..00000000000
33 --- a/app-metrics/prometheus/prometheus-2.13.1.ebuild
34 +++ /dev/null
35 @@ -1,69 +0,0 @@
36 -# Copyright 1999-2020 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=6
40 -inherit user golang-build golang-vcs-snapshot
41 -
42 -EGO_PN="github.com/prometheus/prometheus"
43 -MY_PV=v${PV/_rc/-rc.}
44 -PROMETHEUS_COMMIT="6f92ce5"
45 -KEYWORDS="amd64"
46 -
47 -DESCRIPTION="Prometheus monitoring system and time series database"
48 -HOMEPAGE="https://github.com/prometheus/prometheus"
49 -SRC_URI="https://${EGO_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
50 -LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
51 -SLOT="0"
52 -IUSE=""
53 -
54 -DEPEND="
55 - !app-metrics/prometheus-bin
56 - >=dev-lang/go-1.12
57 - >=dev-util/promu-0.3.0"
58 -
59 -PROMETHEUS_HOME="/var/lib/prometheus"
60 -
61 -RESTRICT="test"
62 -
63 -pkg_setup() {
64 - enewgroup prometheus
65 - enewuser prometheus -1 -1 "${PROMETHEUS_HOME}" prometheus
66 -}
67 -
68 -src_prepare() {
69 - default
70 - sed -i -e "s/{{.Revision}}/${PROMETHEUS_COMMIT}/" src/${EGO_PN}/.promu.yml || die
71 -}
72 -
73 -src_compile() {
74 - pushd src/${EGO_PN} || die
75 - GO111MODULE=on GOPATH="${S}" GOCACHE="${T}/go-cache" promu build --prefix bin -v || die
76 - popd || die
77 -}
78 -
79 -src_install() {
80 - pushd src/${EGO_PN} || die
81 - dobin bin/*
82 - dodoc -r {documentation,{README,CHANGELOG,CONTRIBUTING}.md}
83 - insinto /etc/prometheus
84 - doins documentation/examples/prometheus.yml
85 - insinto /usr/share/prometheus
86 - doins -r console_libraries consoles
87 - dosym ../../usr/share/prometheus/console_libraries /etc/prometheus/console_libraries
88 - dosym ../../usr/share/prometheus/consoles /etc/prometheus/consoles
89 - popd || die
90 -
91 - newinitd "${FILESDIR}"/prometheus.initd prometheus
92 - newconfd "${FILESDIR}"/prometheus.confd prometheus
93 - keepdir /var/log/prometheus /var/lib/prometheus
94 - fowners prometheus:prometheus /var/log/prometheus /var/lib/prometheus
95 -}
96 -
97 -pkg_postinst() {
98 - if has_version '<net-analyzer/prometheus-2.0.0_rc0'; then
99 - ewarn "Old prometheus 1.x TSDB won't be converted to the new prometheus 2.0 format"
100 - ewarn "Be aware that the old data currently cannot be accessed with prometheus 2.0"
101 - ewarn "This release requires a clean storage directory and is not compatible with"
102 - ewarn "files created by previous beta releases"
103 - fi
104 -}