1 |
commit: e429e5ffbbcb1d5157f994864a22b981a2c2d59f |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 28 16:23:31 2019 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 28 16:23:31 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e429e5ff |
7 |
|
8 |
app-metrics/prometheus: Remove old |
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.7.1.ebuild | 70 -------------------------- |
15 |
app-metrics/prometheus/prometheus-2.7.2.ebuild | 69 ------------------------- |
16 |
3 files changed, 140 deletions(-) |
17 |
|
18 |
diff --git a/app-metrics/prometheus/Manifest b/app-metrics/prometheus/Manifest |
19 |
index 00dc46a521b..470ac1e74cd 100644 |
20 |
--- a/app-metrics/prometheus/Manifest |
21 |
+++ b/app-metrics/prometheus/Manifest |
22 |
@@ -1,5 +1,4 @@ |
23 |
DIST prometheus-2.4.3.tar.gz 6095284 BLAKE2B 9b9d54cf8ed61453d63e4b93cd81cd1c08a732b2238830aa1b83b63076205569b8f947a94d0528b910c0958bc77f98605ab3eaf98a1e93d361ea6b431d5df48c SHA512 c86ce48416d32ca4310315dd7195a6ee471244b7a9323ddc49270c2b885bda38c2922047dc8fd7d9b19c9f62f8bc788d30387d38f956cbf04130d7041f9a479b |
24 |
DIST prometheus-2.6.1.tar.gz 6612143 BLAKE2B 33dc64406dd45f494720a1ff5f6d09ed4b45b3880b15626ab7455909258addc5d1549d3edbf8af9a374516930b297c5bdb6ef51a78cac3cb338357896c0d71ae SHA512 80bf6afa00b60aa4245a53e275a2b9579a7936609aba4ffacbbe478f34e530208e0498d8c5ea53dd3a940726e05bd6fac19fed3d6d9dd209af565d5368b2340f |
25 |
-DIST prometheus-2.7.1.tar.gz 7276631 BLAKE2B 1066204eebd8e9589ce5972c78f1c56c74ae40739e850731beb7c39a6100aa0c252b444571cffb6cedabddd71f0b6f927e52ce4ebb35a7fd061ed5e4d50436f7 SHA512 d9a9a5cfca48b6a5ea5dda2b319f8c498b11e0e0a4ce0d18fc4d59fba9e5337048120ba12b29d18b957ac5c268f8c17996a9e88ff9ed1e3041d0ed00bc1454d0 |
26 |
DIST prometheus-2.7.2.tar.gz 7276689 BLAKE2B 4fa1325b0f68bd33f4db45d3ea0fcac24bc1319284086d3ee0d3aa65c1a4ab4c37a1a67fd6e1de74e851dd90d50b566f5a1fa5b68b11c3defefd2506f5b4ce98 SHA512 3dc46069581c457005de0eefe777e93ae72b73c624d7c728973f3c64c34d68628da13d76e3527e3825309d543fd81ef7446c776e0772c1f6bf58e5ebad805973 |
27 |
DIST prometheus-2.8.0.tar.gz 11097030 BLAKE2B 5c56e5d31048bc35e5c02aed4736590adc2e8a6364b926ed8181aceeaccbd6b86b1a63f59176b6efca9a9adbe3855f8dfb3d20713093d4f38a3c5c3f52061ef5 SHA512 9b0b0679768a9426547b232a87a3109008c28a59ef74b9376f192209c4005c7f18d622601ebef14516786378c5f014f6734a4e1a7929ffc0b9b7c369d28030eb |
28 |
|
29 |
diff --git a/app-metrics/prometheus/prometheus-2.7.1.ebuild b/app-metrics/prometheus/prometheus-2.7.1.ebuild |
30 |
deleted file mode 100644 |
31 |
index 0687f8f10df..00000000000 |
32 |
--- a/app-metrics/prometheus/prometheus-2.7.1.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,70 +0,0 @@ |
35 |
-# Copyright 1999-2019 Gentoo Authors |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI=6 |
39 |
-inherit user golang-build golang-vcs-snapshot |
40 |
- |
41 |
-EGO_PN="github.com/prometheus/prometheus" |
42 |
-MY_PV=${PV/_rc/-rc.} |
43 |
-EGIT_COMMIT="v${MY_PV}" |
44 |
-PROMETHEUS_COMMIT="62e591f" |
45 |
-ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
46 |
-KEYWORDS="~amd64" |
47 |
- |
48 |
-DESCRIPTION="Prometheus monitoring system and time series database" |
49 |
-HOMEPAGE="https://github.com/prometheus/prometheus" |
50 |
-SRC_URI="${ARCHIVE_URI}" |
51 |
-LICENSE="Apache-2.0" |
52 |
-SLOT="0" |
53 |
-IUSE="" |
54 |
- |
55 |
-DEPEND=" |
56 |
- >=dev-lang/go-1.10 |
57 |
- dev-util/promu" |
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 -v || die |
76 |
- popd || die |
77 |
-} |
78 |
- |
79 |
-src_install() { |
80 |
- pushd src/${EGO_PN} || die |
81 |
- dobin promtool prometheus |
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-3.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 |
-} |
105 |
|
106 |
diff --git a/app-metrics/prometheus/prometheus-2.7.2.ebuild b/app-metrics/prometheus/prometheus-2.7.2.ebuild |
107 |
deleted file mode 100644 |
108 |
index 8b59b4be852..00000000000 |
109 |
--- a/app-metrics/prometheus/prometheus-2.7.2.ebuild |
110 |
+++ /dev/null |
111 |
@@ -1,69 +0,0 @@ |
112 |
-# Copyright 1999-2019 Gentoo Authors |
113 |
-# Distributed under the terms of the GNU General Public License v2 |
114 |
- |
115 |
-EAPI=6 |
116 |
-inherit user golang-build golang-vcs-snapshot |
117 |
- |
118 |
-EGO_PN="github.com/prometheus/prometheus" |
119 |
-MY_PV=v${PV/_rc/-rc.} |
120 |
-PROMETHEUS_COMMIT="82f98c8" |
121 |
-ARCHIVE_URI="https://${EGO_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
122 |
-KEYWORDS="~amd64" |
123 |
- |
124 |
-DESCRIPTION="Prometheus monitoring system and time series database" |
125 |
-HOMEPAGE="https://github.com/prometheus/prometheus" |
126 |
-SRC_URI="${ARCHIVE_URI}" |
127 |
-LICENSE="Apache-2.0" |
128 |
-SLOT="0" |
129 |
-IUSE="" |
130 |
- |
131 |
-DEPEND=" |
132 |
- >=dev-lang/go-1.10 |
133 |
- dev-util/promu" |
134 |
- |
135 |
-PROMETHEUS_HOME="/var/lib/prometheus" |
136 |
- |
137 |
-RESTRICT="test" |
138 |
- |
139 |
-pkg_setup() { |
140 |
- enewgroup prometheus |
141 |
- enewuser prometheus -1 -1 "${PROMETHEUS_HOME}" prometheus |
142 |
-} |
143 |
- |
144 |
-src_prepare() { |
145 |
- default |
146 |
- sed -i -e "s/{{.Revision}}/${PROMETHEUS_COMMIT}/" src/${EGO_PN}/.promu.yml || die |
147 |
-} |
148 |
- |
149 |
-src_compile() { |
150 |
- pushd src/${EGO_PN} || die |
151 |
- GO111MODULE=on GOPATH="${S}" GOCACHE="${T}/go-cache" promu build -v || die |
152 |
- popd || die |
153 |
-} |
154 |
- |
155 |
-src_install() { |
156 |
- pushd src/${EGO_PN} || die |
157 |
- dobin promtool prometheus |
158 |
- dodoc -r {documentation,{README,CHANGELOG,CONTRIBUTING}.md} |
159 |
- insinto /etc/prometheus |
160 |
- doins documentation/examples/prometheus.yml |
161 |
- insinto /usr/share/prometheus |
162 |
- doins -r console_libraries consoles |
163 |
- dosym ../../usr/share/prometheus/console_libraries /etc/prometheus/console_libraries |
164 |
- dosym ../../usr/share/prometheus/consoles /etc/prometheus/consoles |
165 |
- popd || die |
166 |
- |
167 |
- newinitd "${FILESDIR}"/prometheus-3.initd prometheus |
168 |
- newconfd "${FILESDIR}"/prometheus.confd prometheus |
169 |
- keepdir /var/log/prometheus /var/lib/prometheus |
170 |
- fowners prometheus:prometheus /var/log/prometheus /var/lib/prometheus |
171 |
-} |
172 |
- |
173 |
-pkg_postinst() { |
174 |
- if has_version '<net-analyzer/prometheus-2.0.0_rc0'; then |
175 |
- ewarn "Old prometheus 1.x TSDB won't be converted to the new prometheus 2.0 format" |
176 |
- ewarn "Be aware that the old data currently cannot be accessed with prometheus 2.0" |
177 |
- ewarn "This release requires a clean storage directory and is not compatible with" |
178 |
- ewarn "files created by previous beta releases" |
179 |
- fi |
180 |
-} |