app-metrics/prometheus: GLEP 81 conformant prometheus 2.19.1

Package-Manager: Portage-3.0.4, Repoman-3.0.1
This commit is contained in:
Manuel Friedli 2020-09-29 20:55:39 +02:00
parent b2eefde1f0
commit defee70c80
3 changed files with 70 additions and 1 deletions

View file

@ -1,3 +1,8 @@
*prometheus-2.19.1 (29 Sep 2020)
29 Sep 2020; Manuel Friedli <manuel@gentoo.org> +prometheus-2.19.1.ebuild:
app-metrics/prometheus: GLEP 81 conformant prometheus 2.19.1
*prometheus-2.13.1 (14 Nov 2019) *prometheus-2.13.1 (14 Nov 2019)
14 Nov 2019; <manuel@gentoo.org> +files/prometheus-3.initd, 14 Nov 2019; <manuel@gentoo.org> +files/prometheus-3.initd,

View file

@ -3,6 +3,9 @@ AUX prometheus.confd 43 BLAKE2B c83afa8ad1133c9e93abd40c862ff5b3ac9a3b3c4447b915
AUX prometheus.initd 929 BLAKE2B d48650b11b77d4d04b5458682456fb20f8085dc3efe9d0ddd2a6c75751ddae156bbb83c20082bc7b6833395602c24da61e2f7610bdff291e05e3eeb4fb651317 SHA512 504122eb8ed19beac81987b77eb78bba9b36b2ef15f28b1a542804271046e06363baf464f3c303982f647eba65fbc2b5459235f56625e1ff3fed9834937cd0d2 AUX prometheus.initd 929 BLAKE2B d48650b11b77d4d04b5458682456fb20f8085dc3efe9d0ddd2a6c75751ddae156bbb83c20082bc7b6833395602c24da61e2f7610bdff291e05e3eeb4fb651317 SHA512 504122eb8ed19beac81987b77eb78bba9b36b2ef15f28b1a542804271046e06363baf464f3c303982f647eba65fbc2b5459235f56625e1ff3fed9834937cd0d2
AUX prometheus.service 440 BLAKE2B 81a89d51ce54e4af5a1d400cee05418e031bce5d87df5546d5e759a6f9814d16eb88266dd129d40c94c1b7d971281f45f5a63a091a8ee6110fe601b909fc5175 SHA512 db040d60eaeffe5583a2e01d0e8c855ad7585ff89627b6fa0bbeac923381ef32154b49ddf7997d8774937d317cbc705357d90a05d2eedee417f7ce6ee486b291 AUX prometheus.service 440 BLAKE2B 81a89d51ce54e4af5a1d400cee05418e031bce5d87df5546d5e759a6f9814d16eb88266dd129d40c94c1b7d971281f45f5a63a091a8ee6110fe601b909fc5175 SHA512 db040d60eaeffe5583a2e01d0e8c855ad7585ff89627b6fa0bbeac923381ef32154b49ddf7997d8774937d317cbc705357d90a05d2eedee417f7ce6ee486b291
DIST prometheus-2.13.1.tar.gz 15249891 BLAKE2B 35cd3c81bdb4f3a783c2ab1f1318946db5b25c94496fe351739a59259a726bf54d418d6b29efeff44c8007353ed63368819ce89ffe6a4f380b7ae216da3c4d63 SHA512 aed3b44db97cd2a67add64d13e950246b25c2b459f6b1081a6c548862c4e85c055254a0dfb94b08ac85f83dbbe30afceb1c54a8ad6f7ff1367aeb6af6d270e8a DIST prometheus-2.13.1.tar.gz 15249891 BLAKE2B 35cd3c81bdb4f3a783c2ab1f1318946db5b25c94496fe351739a59259a726bf54d418d6b29efeff44c8007353ed63368819ce89ffe6a4f380b7ae216da3c4d63 SHA512 aed3b44db97cd2a67add64d13e950246b25c2b459f6b1081a6c548862c4e85c055254a0dfb94b08ac85f83dbbe30afceb1c54a8ad6f7ff1367aeb6af6d270e8a
DIST prometheus-2.19.1-assets.tar.gz 5032055 BLAKE2B 75bc247d3dfbcccf3a9d7ef8a23fabe2d92d698670f5aabb19e1ee019e0197aa4fd49cfd53353e09a765a014af70ad860c7d1b6bce292632e5ed1175dd206ae9 SHA512 52d1f80d9ab2de778e8a0c81549ff83647d3d8af37ccf535a6fc4ac45fe29f25f6592e9b5eb137cd5ed6f6730835e4ba52b6c4c82e5b0bb2336b90c809d756de
DIST prometheus-2.19.1.tar.gz 13343138 BLAKE2B 042f2c6e10e3d7f50b2373d9c3977db0318c8c9839e313463890ccae58c91d6d46c306d5aaeb795fb1a9649477b179999cb6b182aca9dee222d8fba557bf6d74 SHA512 a54a83b21ac8f3477e678ca365b8f04adcbe5cdd8a17d842eb9cd2e3428238841fb0492da6f4ec973f48803b0739667c734ae8a88b48d12555e23410e6461629
EBUILD prometheus-2.13.1.ebuild 2063 BLAKE2B 87f71b82f276ab8edee18afc0b3dc6282ba2a729972e01596e50103679e0e19cfd238405871cdc5f45ed2de8415e35195dc6cd9f5db9fa456d79c4a07bfead9f SHA512 a61452a0bc74c2a7c747a37248955a22c369d0fb658b65108d1379789eed9da4592b13ba50d85f70ef6c42d4063e863aa4d7eb609e43dec49f0167379e61778d EBUILD prometheus-2.13.1.ebuild 2063 BLAKE2B 87f71b82f276ab8edee18afc0b3dc6282ba2a729972e01596e50103679e0e19cfd238405871cdc5f45ed2de8415e35195dc6cd9f5db9fa456d79c4a07bfead9f SHA512 a61452a0bc74c2a7c747a37248955a22c369d0fb658b65108d1379789eed9da4592b13ba50d85f70ef6c42d4063e863aa4d7eb609e43dec49f0167379e61778d
MISC ChangeLog 284 BLAKE2B 3beb721fab1774b5c98db088acfdc192972d6bb78d7e0329f0d9ee6bb9ac7d9ca44ec729f4d6b6bd55782a5d439cbd474af101e02ea5362aacc921b924039dbd SHA512 ea7600136b83ce75d2476cbaae5685edfeeed36a48c8aa73922f65f1273e4e94bb82811afc6998cc6b44646ea7bb486dd146ce39c025ea3598aec521b1c80f4c EBUILD prometheus-2.19.1.ebuild 1843 BLAKE2B f773fa2388ca4e1ab5ff2efbcb5ed8bced84940c593e87edb15b113f48e6871f0209e0974a951ff2314d36d05a7343ebe2d85bd4eaa6cc7960f9bf87f8e14d25 SHA512 1698c9362f7a02c6fd343dd85f71c0ecd232c8dc1e7832c2f89ff4c954e9582c9a7ad1a9f009fcbdef8e92d5f19c83566b4fb3a0ab3730503e0cf694b34216c1
MISC ChangeLog 459 BLAKE2B e53d2d12bbff152386b2a8c9f133f4405920b92ecc4d9dbd425576bd6d8b95792f32751bf690f4e9daa7be9fe27a78751ed2ea0c39e7ee7ffa36271416a431b4 SHA512 6b31441e5feaace4783ccfdaa4440911514f3f7d9330731be2db52c549a13131dcea79b0b8110483850495639d6cabefa4abafd202f9ce84bd564c584683aca1
MISC metadata.xml 334 BLAKE2B 270b8d4817af970210624443197549e469d28b03ad38d87c1d3b7da0cb59476da6394989577fd199d26bf63322d0e74474428e493c8b4969fd74a42aa82adf5b SHA512 41aaef9331d9b27b5d7e0587679199bbbe149c5a4edfa9bc9932c2ea18b2c970d96d8f07a4a33253d567baab666d58e55f928db669ee2ff5d8ef0c7cd5da1e85 MISC metadata.xml 334 BLAKE2B 270b8d4817af970210624443197549e469d28b03ad38d87c1d3b7da0cb59476da6394989577fd199d26bf63322d0e74474428e493c8b4969fd74a42aa82adf5b SHA512 41aaef9331d9b27b5d7e0587679199bbbe149c5a4edfa9bc9932c2ea18b2c970d96d8f07a4a33253d567baab666d58e55f928db669ee2ff5d8ef0c7cd5da1e85

View file

@ -0,0 +1,61 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit go-module systemd
MY_PV=v${PV/_rc/-rc.}
GIT_COMMIT=eba3fdcbf
DESCRIPTION="Prometheus monitoring system and time series database"
HOMEPAGE="https://github.com/prometheus/prometheus"
SRC_URI="https://github.com/prometheus/prometheus/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
https://dev.gentoo.org/~williamh/dist/${P}-assets.tar.gz"
LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm"
IUSE=""
BDEPEND=">=dev-util/promu-0.3.0"
DEPEND="!app-metrics/prometheus-bin"
RDEPEND="acct-user/prometheus"
PROMETHEUS_HOME="/var/lib/prometheus"
RESTRICT+=" test"
src_prepare() {
default
sed -i -e "s/{{.Revision}}/${GIT_COMMIT}/" .promu.yml || die
mv ../assets_vfsdata.go web/ui || die
}
src_compile() {
promu build --prefix bin -v || die
}
src_install() {
dobin bin/*
dodoc -r {documentation,{README,CHANGELOG,CONTRIBUTING}.md}
insinto /etc/prometheus
doins documentation/examples/prometheus.yml
insinto /usr/share/prometheus
doins -r console_libraries consoles
dosym ../../usr/share/prometheus/console_libraries /etc/prometheus/console_libraries
dosym ../../usr/share/prometheus/consoles /etc/prometheus/consoles
newinitd "${FILESDIR}"/prometheus.initd prometheus
newconfd "${FILESDIR}"/prometheus.confd prometheus
keepdir /var/log/prometheus
fowners prometheus:prometheus /var/log/prometheus
}
pkg_postinst() {
if has_version '<net-analyzer/prometheus-2.0.0_rc0'; then
ewarn "Old prometheus 1.x TSDB won't be converted to the new prometheus 2.0 format"
ewarn "Be aware that the old data currently cannot be accessed with prometheus 2.0"
ewarn "This release requires a clean storage directory and is not compatible with"
ewarn "files created by previous beta releases"
fi
}