feature/glep-81 #55

Merged
manuel merged 8 commits from feature/glep-81 into master 2020-09-29 21:07:10 +02:00
28 changed files with 268 additions and 18 deletions

View file

@ -0,0 +1,5 @@
*apache_exporter-0 (29 Sep 2020)
29 Sep 2020; Manuel Friedli <manuel@gentoo.org> +apache_exporter-0.ebuild,
+metadata.xml:
acct-group/apache_exporter: Add apache_exporter group

View file

@ -0,0 +1,3 @@
EBUILD apache_exporter-0.ebuild 313 BLAKE2B 5350406441df5daab182af4d3015220e4ce1b2d534664b85b1a0d92e00b8405fae9041e4df808f782b5b6fa5c611a5e4cb1b0d71a840071fc3fbd62681a25c1e SHA512 492e3ef513815b17f7a4d3900a074a0af6248b178f0650a32d8e71b7f5437305afaf2d79f02b7485666cd2b56375be2c05c5eec011671e7adc19bc7bee54fc33
MISC ChangeLog 184 BLAKE2B b5c4d627fa19b0ad55008fc0ddac8da82bf88db97eced218ec3467e75378ba3c9e0f10f96ab0180e73c7157e8e7742ddf76a9bd400d8303d6042e9d14946b0ea SHA512 6e03db912ce0300dd864f7b299f45c7fad6ab0a7493a7d11f8c3b0cec536bed2a1af99f660022e1da70ee0165c7807458cacf182199b590379fbff18039dd20b
MISC metadata.xml 248 BLAKE2B cb50cad2c614a99daa2e236f9e0d0fab1ab20a898c0b0f0c28a1387820ab1f2b9dd4d396a3b38f732b493824f96a29ee5894e80e09dbd08dff62c1aaba3feaa0 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2

View file

@ -0,0 +1,11 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit acct-group
DESCRIPTION="Group used for the apache_exporter prometheus plugin"
KEYWORDS="~amd64"
# If you want this to persist across multiple machines, pick a real number!
ACCT_GROUP_ID="-1"

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>manuel@fritteli.ch</email>
<name>Manuel Friedli</name>
</maintainer>
</pkgmetadata>

View file

@ -0,0 +1,5 @@
*postfix_exporter-0 (29 Sep 2020)
29 Sep 2020; Manuel Friedli <manuel@gentoo.org> +metadata.xml,
+postfix_exporter-0.ebuild:
acct-group/postfix_exporter: Add postfix_exporter group

View file

@ -0,0 +1,3 @@
EBUILD postfix_exporter-0.ebuild 314 BLAKE2B 75dd17787bc09b98fd0ab691a1ed1bb03e4bf4c85c1307a7315df44e36459b05bf7c52a749920eb9c5dc8ef7bbc1d8d846510fa169081a8d752c6ea622f80261 SHA512 092aa5ae3fa0c924c54f48e81fd9cfcfcb1ca2e74801b75c6e63c056ce58076f20ec8c8d70a58cd5c670eeb5cd65c4d6b7470b6bc9f9ede371bca70f584fb6de
MISC ChangeLog 188 BLAKE2B b456f0101cd3bd21a3ccc367de9c419b552b802db314e021c2a6f5e332640cf2ae7990470fb84495758609c9c78152ed4da38c9d294672940e86d69b1b61bfd4 SHA512 cc9451cf6c9a0914530d48c2d8ab2f4fc5b441a49a5d57d7916818e1cd312ef16c1d182f081dd9271cf91314ae9bfa9beec2e595c1f100b25a2ce6e85a947663
MISC metadata.xml 248 BLAKE2B cb50cad2c614a99daa2e236f9e0d0fab1ab20a898c0b0f0c28a1387820ab1f2b9dd4d396a3b38f732b493824f96a29ee5894e80e09dbd08dff62c1aaba3feaa0 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>manuel@fritteli.ch</email>
<name>Manuel Friedli</name>
</maintainer>
</pkgmetadata>

View file

@ -0,0 +1,11 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit acct-group
DESCRIPTION="Group used for the postfix_exporter prometheus plugin"
KEYWORDS="~amd64"
# If you want this to persist across multiple machines, pick a real number!
ACCT_GROUP_ID="-1"

View file

@ -0,0 +1,5 @@
*apache_exporter-0 (29 Sep 2020)
29 Sep 2020; Manuel Friedli <manuel@gentoo.org> +apache_exporter-0.ebuild,
+metadata.xml:
acct-user/apache_exporter: Add apache_exporter user

View file

@ -0,0 +1,3 @@
EBUILD apache_exporter-0.ebuild 285 BLAKE2B 354b27135069fec2f5b4ccbbaf6b85a55956f47bcfbc2e0e4f62c90f42e3b6d8c0abc3d9d08fadc97918f14f251ab14bc168cee263a331d68ffedbf7575bae96 SHA512 fdde88aeea321f6392b5cb60a0f8c752c9baf95548059b65ea499d84f119cd21f7be1223fcef7cf9f5838a84a2e425309af7b41dfc01a3b499e728853cd73d5e
MISC ChangeLog 182 BLAKE2B 1c15e7bd0216404dcb5d506c17b2047f3ee1d8599538af368b4bb0f6c87eade074c5642d30dae17f8074b013bca3dda5a9cfee48999844baba66150223d7453b SHA512 355b1f10ab9cce522ebdabacc15dd8b2f3d7219a3f932a56be04a5f1cdfeaf883ca8c4857e2c9ac86b8ee8f19904cc7f003e8a34a3a0985c297d20c0bc032724
MISC metadata.xml 248 BLAKE2B cb50cad2c614a99daa2e236f9e0d0fab1ab20a898c0b0f0c28a1387820ab1f2b9dd4d396a3b38f732b493824f96a29ee5894e80e09dbd08dff62c1aaba3feaa0 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2

View file

@ -0,0 +1,14 @@
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit acct-user
DESCRIPTION="User for the apache_exporter prometheus plugin"
KEYWORDS="~amd64"
ACCT_USER_ID=-1
ACCT_USER_GROUPS=( apache_exporter )
acct-user_add_deps

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>manuel@fritteli.ch</email>
<name>Manuel Friedli</name>
</maintainer>
</pkgmetadata>

View file

@ -0,0 +1,5 @@
*postfix_exporter-0 (29 Sep 2020)
29 Sep 2020; Manuel Friedli <manuel@gentoo.org> +metadata.xml,
+postfix_exporter-0.ebuild:
acct-user/postfix_exporter: Add postfix_exporter user

View file

@ -0,0 +1,3 @@
EBUILD postfix_exporter-0.ebuild 287 BLAKE2B 96a9cf44d8d4b154e2897bcdaf57eab60ae8006e01f2ff3cf209391f1c9d9711bd3bdf911cca54f07de759515dcec1543879af94561c78e8f69edd91faab72ce SHA512 d6516ea44433af3d08d013d5d2d97ffbf866e5a384f942b2e930fd062613a0a4ef553225a5d0269628e998de750b56278ff0c4d7fe2c12abc5d029ed58a7fd2b
MISC ChangeLog 186 BLAKE2B c71933b10c88693352066a1013e03f6514d0beee98da0ca17bcac4edbe39eaf5146470379b2bd9d2fe2be3691bc32f16af5600d8466564d2609c694fb52649cf SHA512 b1eb69dbf354d09cd2135185c7413e86b4485e875b9c077deec26a20458e8a001c67827c0fb808dbfdbc8e6ca557a85b0231bc436ae5321bf4c6cebd85636c40
MISC metadata.xml 248 BLAKE2B cb50cad2c614a99daa2e236f9e0d0fab1ab20a898c0b0f0c28a1387820ab1f2b9dd4d396a3b38f732b493824f96a29ee5894e80e09dbd08dff62c1aaba3feaa0 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>manuel@fritteli.ch</email>
<name>Manuel Friedli</name>
</maintainer>
</pkgmetadata>

View file

@ -0,0 +1,14 @@
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit acct-user
DESCRIPTION="User for the postfix_exporter prometheus plugin"
KEYWORDS="~amd64"
ACCT_USER_ID=-1
ACCT_USER_GROUPS=( postfix_exporter )
acct-user_add_deps

View file

@ -1,3 +1,9 @@
*apache_exporter-0.8.0 (29 Sep 2020)
29 Sep 2020; Manuel Friedli <manuel@gentoo.org> +apache_exporter-0.8.0.ebuild:
app-metrics/apache_exporter: Add ebuild for versin 0.8.0. This is conforming
to GLEP 81.
14 Nov 2019; <manuel@gentoo.org> apache_exporter-0.7.0.ebuild:
app-metrics/apache_exporter: Fix ebuild again.

View file

@ -3,6 +3,8 @@ AUX apache_exporter.initd 650 BLAKE2B 86d014a2bb4f98a54a5e98060884bb99d1ec4011ce
AUX apache_exporter.service 222 BLAKE2B 9f15ab491721873b60d75ea7e5fde68c4262cd56ee3b4b1b5b687cd7fe6f4b03c97ee96c863769985dd14ba4bb8f0047061d52b642e5fd9ca77ada18e8e17f6c SHA512 6f99413a18f6c5214fa6216399c249b80950e16277a91ccc9c1ef89c452efa806234dd3735e9110e26f9e110f1a2156fd5ab37b56107ba753daa16d9100156d6
AUX sysconfig.apache_exporter 11 BLAKE2B e83c8a1c6cf0d2269d032d80bfb5f37969adce8655298d49f942e19318e1fcabe7f618514ce65d9e0209959d5ccb38141e81fcccd65a754584eaf2db3b4fbd03 SHA512 f4d982f86de30c5b52b04c201cd38fffa87f860bef18af6ab85e856ae2081b919256b918b5f4821ee2fc4da0548d1a95c2522b29cddca57f694e2f26c1b1b2b9
DIST apache_exporter-0.7.0.tar.gz 987330 BLAKE2B 32bc61767a2b84630c63c5cab31bcec2446a508870334ef1d952a7cf6fd7e8e5868f1059972f9c3c8be2cdc93a3eef56a67814586e31bca7377237690fee7b5d SHA512 c4193bc665e7de292e208e2df8bdb1d261e06bd8e9dd8f9c8ca36928f90bdaa792e3e648955d68acc79502eaf0245e41d8a238d60c839bbd2a46ec928d114950
DIST apache_exporter-0.8.0.tar.gz 1687423 BLAKE2B 8ffe1edd6549c6129ec82852ee7134ba3ceb22f6ab6c678e0c28e6ed58c43d0243184efed013e11e3062b4359beb43914059bc35a31f242c93ef210616248fc7 SHA512 1e885687a8a2d5abfbf16f11d1940688b65404e76fa620ef397eb85733ab0fa9ec9ba4143728466d3036266a6f3ef03409000a7c69d85e2be6eda2075bc8a113
EBUILD apache_exporter-0.7.0.ebuild 1351 BLAKE2B 95ff9f9461be60823d9794b215efee7ccb87ea5ab8ab458a3f70d4bf32206dfebcfc06f32c31fb8f88f004c2f180efd0c9053a369d7392403ceaba36fae51b4c SHA512 6e372b104e919ee3266ac9b591c85d951cca36508f6da59f7801a84b0d5c3de7a284d5ae16b823fcb723f4fdaf732133a0de7f065bd837cb2dfb1bc7edec450b
MISC ChangeLog 545 BLAKE2B c16988718b84b5f4bfbde913dc46939127d2d5b82df905a91c9555b84388e7b9b42913d5d18fa10db8225b08716432b7200a6f4afb67f5496af0db17efb8a997 SHA512 01a3e8fc348842c79f1e26ff618de4b0b676653cfb3c1b20c77bf7b6c97cdaf40c286c46ba002f87216529a672645dfa5fae5d6e906e3e7e6e03eb985d6bb3f4
EBUILD apache_exporter-0.8.0.ebuild 1338 BLAKE2B fcb27ddbc1776ed8bdc88bda4c3af44fe647b2a6c38ab3965818e1341a1b90a56ef8343516893fd78618765e1a72df25efe712a47057477d4c5dbc53854745a5 SHA512 6d8cb6a7ec0167d45d6cf697d12473b1c9328a22fd0e1a2efb4fb290c56a240634660bc221f19009e230e63679263807a0db1d484525d43932517d0b26c7c559
MISC ChangeLog 759 BLAKE2B 84c47f8fa189d99c9ef6877f28e621d7c941bd15da4f99b72efcf54968e4acaa0cf8775889445781d71e2e5cfb42e2e9aee4dfed7e9b41a05b3ce8a21a19de23 SHA512 26c74833beabaaed82e904fcaded62f4ee5f5b743d0b0e2cea91faec7d2cb737e45cdf1a118ca51b56a49d7f5da0ad4f5aa9f6d02c9d4bcd71c26d2ed0598e76
MISC metadata.xml 337 BLAKE2B bd72b6097fead5eaf80082790d3712ae0893b118140b62f58639f0e5c56bebf57dbd0ccd0ea19af82b2dce88c88c494d88290f98df4818e4fad3f4386398d171 SHA512 aee4825d8b90a8fd84fb558b9af4b7eb889fcf81bae6c7b317a9d69f62b06dd0f0bc2aa91aa2c32f10ff91fdbf64b341d7e5adc3c65a5225c7e0e92d7a6b7816

View file

@ -0,0 +1,49 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit golang-build golang-vcs-snapshot systemd
EGO_PN="github.com/Lusitaniae/apache_exporter"
EGIT_COMMIT="v${PV/_rc/-rc.}"
APACHE_EXPORTER_COMMIT="712a679"
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
DESCRIPTION="Prometheus exporter for apache metrics"
HOMEPAGE="https://github.com/Lusitaniae/apache_exporter"
SRC_URI="${ARCHIVE_URI}"
LICENSE="MIT"
SLOT="0"
IUSE=""
DEPEND=">=dev-lang/go-1.12
>=dev-util/promu-0.3.0"
RDEPEND="acct-user/apache_exporter"
src_prepare() {
default
sed -i -e "s/{{.Revision}}/${APACHE_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
}
src_compile() {
pushd src/${EGO_PN} || die
mkdir -p bin || die
GOPATH="${S}" GOCACHE="${T}"/go-cache promu build -v --prefix apache_exporter || die
popd || die
}
src_install() {
pushd src/${EGO_PN} || die
dobin apache_exporter/apache_exporter
dodoc README.md
systemd_dounit "${FILESDIR}/${PN}.service"
insinto /etc/sysconfig/apache_exporter
doins "${FILESDIR}/sysconfig.apache_exporter"
popd || die
keepdir /var/log/apache_exporter
fowners apache_exporter:apache_exporter /var/log/apache_exporter
newinitd "${FILESDIR}"/${PN}.initd ${PN}
newconfd "${FILESDIR}"/${PN}.confd ${PN}
}

View file

@ -1,3 +1,9 @@
*postfix_exporter-0.2.0-r1 (29 Sep 2020)
29 Sep 2020; Manuel Friedli <manuel@gentoo.org>
+postfix_exporter-0.2.0-r1.ebuild, -postfix_exporter-0.2.0.ebuild:
app-metrics/postfix_exporter: Make v0.2.0 GLEP 81 conformant
*postfix_exporter-0.2.0 (19 Nov 2019)
19 Nov 2019; <manuel@gentoo.org> +files/postfix_exporter-1.confd,

View file

@ -19,6 +19,6 @@ DIST github.com-prometheus-procfs-780932d4fbbe0e69b84c34c20f5c8d0981e109ea.tar.g
DIST postfix_exporter-0.1.2.tar.gz 11552 BLAKE2B 987c81482fc984e8f6c870fdaf7ce2ef67b3fa66e5782713a645d35b76a1bde1dde97a79705569d1423a9356309d0b7240c77dba386127e8a5035990220d2a62 SHA512 579793281dedd858538ab9a931e0003cfc9989204ebf4352dd4860e5a7f62b919d77a9e0facb9daff6706771010f9e807061dace8cb88928635d55111c7c482a
DIST postfix_exporter-0.2.0.tar.gz 12119 BLAKE2B 3c5b28f31e38bbd28dc4f5d5d7f25db0711595698842e0629e6d5336e80bc22d93ebee35533b94d3ebc07eb48ab9da8c31e7ac0cd759eb3e20fa0d90329a81c4 SHA512 a8e5be3b9dca47111f32981f112e11f2aa5976fc37ca8a1a64e03ea732fa9d3d6963ce03e401b908485097556fcdfb7ef7276372e8a068aab719910f1a9c346f
EBUILD postfix_exporter-0.1.2.ebuild 1851 BLAKE2B 101c64cdf667044ff1cd43cdf5500386c4e3d26de962c6e25fd638422f1d1d86ad012ba51ea8421e884ab97efc59a4e8e0a6c5b2d5df5dcc6b22cb50a579bfdc SHA512 eafd06530a5bd5344801d7ed94622ce373372a2b31ab456f50164ae19387c4bf49e8944cbbcb9a792458f28ce7d05f9a959a60d2c5176f16b7997ab215beb695
EBUILD postfix_exporter-0.2.0.ebuild 2142 BLAKE2B 78bb2fa9ddfaab1f544b525cff80d17b7047d63059f538703004003c4fa309442efe65c6ebaae0544eb40b6b394ea5485b7b4692dcfb5c2af20a565ec0d00cda SHA512 3d64b6a00e7116dc54bdd611e0e39e418bcd1a694e3b679a6d914f6050cc2ac9ba892c103d38bd03d551231a4afc68296fb4999838355c8405c4b8ab45bf6a4b
MISC ChangeLog 531 BLAKE2B 2d87e31525a0a865c6a578445abb9e54ff521437a0fedaebae7de1aceff5f5024ac99158d9a85c370a20df6dffc97ee36653f5ed924964bb4d0b8b59a630bfcf SHA512 e93af2fd47ba199e87015bd5dc873ce9bb0651d132280d8f766c9d95b862213247994d32c609d5eb122945aacd366b3c96d1f051288c9b40ea716db1561d8dc3
EBUILD postfix_exporter-0.2.0-r1.ebuild 2132 BLAKE2B f5b8ad941c863c494d00ea67ec4a5e5e1ed2d73ce6936c5addef7a2502aa84ef8aa92f369b1de92f26eebb9e1fa8cd667409204b1da6fed4578966fda83585d9 SHA512 b47e792218a73a30b9982e409766ffb0d0bfd7498e511fee6aa7b5c4fbb8a00b474b0f2db5f06c7fe5276d101f29f1e57df6753e0d9168e1737c10b9d7cc7bce
MISC ChangeLog 756 BLAKE2B 34804d565adae5adc83ecb4abc287f5e4db09fac220e198e793ea732aba212cfeddaa3417073d654e1e3529196ca707a15dd2c7990e9b255062bd20aa4a1192c SHA512 069a2bf360efc20d90966aa90a15f22b6b43b298e477d79e219e2c273db5ed574b2ed6eafc5b4f32d9a1ea95b361de76b33103fd810f507b44d24cd1dd80c4d3
MISC metadata.xml 255 BLAKE2B 1132f0657024f17717e5191a4992978685715f9abb96052db6399468506deaa85454efcaf58c7dcebfe5e1cf8948c767a7b001832d50c7d9dc162b0ff1395361 SHA512 36fb59a02d322553d6bfad2deeff884cc782c54bbb01a3fb344767fb43536905c43950df368e645d08ba9c48f3ec13c05b1d3c827fa12581c164623d2c174d73

View file

@ -1,7 +1,7 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
EGO_VENDOR=( "github.com/coreos/go-systemd bebb2b01b0473b183e4624aaf8e23ae6f4b22417"
"github.com/coreos/pkg 97fdf19511ea361ae1c100dd393cc47f8dcfa1e1"
@ -17,7 +17,7 @@ EGO_VENDOR=( "github.com/coreos/go-systemd bebb2b01b0473b183e4624aaf8e23ae6f4b22
"github.com/alecthomas/units f65c72e2690dc4b403c8bd637baf4611cd4c069b"
"github.com/hpcloud/tail a30252cb686a21eb2d0b98132633053ec2f7f1e5" )
inherit user golang-build golang-vcs-snapshot systemd
inherit golang-build golang-vcs-snapshot systemd
EGO_PN="github.com/kumina/postfix_exporter"
ARCHIVE_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
@ -33,12 +33,9 @@ IUSE="systemd"
DEPEND="systemd? ( sys-apps/systemd )"
RESTRICT="test"
RDEPEND="acct-user/postfix_exporter"
pkg_setup() {
enewgroup ${PN}
enewuser ${PN} -1 -1 -1 ${PN}
}
RESTRICT="test"
src_compile() {
pushd src/${EGO_PN} || die
@ -53,7 +50,7 @@ src_install() {
local dir
for dir in /var/{lib,log}/${PN}; do
keepdir "${dir}"
fowners ${PN}:${PN} "${dir}"
fowners postfix_exporter:postfix_exporter "${dir}"
done
newinitd "${FILESDIR}"/${PN}.initd ${PN}
newconfd "${FILESDIR}"/${PN}-1.confd ${PN}

View file

@ -1,3 +1,10 @@
*prometheus-cpu-mem-monitor-0.0.0.1-r1 (29 Sep 2020)
29 Sep 2020; Manuel Friedli <manuel@gentoo.org>
+prometheus-cpu-mem-monitor-0.0.0.1-r1.ebuild,
-prometheus-cpu-mem-monitor-0.0.0.1.ebuild:
app-metrics/prometheus-cpu-mem-monitor: GLEP 81 compatible
*prometheus-cpu-mem-monitor-0.0.0.1 (11 Nov 2019)
11 Nov 2019; <manuel@gentoo.org> +files/prometheus-cpu-mem-monitor.service,

View file

@ -1,6 +1,6 @@
AUX prometheus-cpu-mem-monitor.service 243 BLAKE2B 6f774e36b2e1b2dbc1614a930f2e64da9b664a0bef6023bb69db571949266625f32ec057ac31be12f1ec2fbcb9c5d7a732377471f750b5346384c366808ba42a SHA512 7d21c89a0ebf577fe654ef93b7098b4ef40127892213e26141583d64a8fadc683799b0da588b8ddb4a692129de536e3c75dc80be83939ba7a5c47f45e84be7b2
AUX prometheus-cpu-mem-monitor.sh 564 BLAKE2B 1fcff16c183709c569398795afbce2ab11e558badfb437b8e4048cde5102e7ae7fe58ea11f64cb1bce7754bdfd7f85bddcaaf4deefd2a658ca76b1973df9d8bc SHA512 dfbd52eb86dca8e0d576f262b98a4efe145524653a3cfe9ae51e14695d0a02d3fc7618e0f236b5200ef59b84d81acf373b3a49665dbc23c694f299a29569479e
AUX prometheus-cpu-mem-monitor.timer 291 BLAKE2B d41b99088752863c3ffaf065279702a5ddec90edabe0fd7ec11d71b883756f370c4236aa1c4074b4d3869b02f29142aca4b5247dd49281299d5625a3fe4f3509 SHA512 2245655fec3417c44c64c04074f1f5c061e7c80a3b34ba0f683c12b74b1a7c5c46abec16bb78fca479381982d8286bab0919be223c2e9c08d26d3e80ced772a3
EBUILD prometheus-cpu-mem-monitor-0.0.0.1.ebuild 470 BLAKE2B 804936dedf7f4ee79ae4094a409779ccbe2e7fbcd0e3411f3d20adb344313f7a48686d2f9258514abbb3f1a1e8af060fe67bc2ad5ccb92e5d254069ee7e20501 SHA512 37cbfca25bf066276284b379befb759b5f8f7bcb6bfd4b9c2653e561c12368ac9819a3a12ba00707631e5603b09bad358cf3ca2800359f3de7b0763b8ff3b54b
MISC ChangeLog 343 BLAKE2B 140091e8f77dcf9b15534d36836af7aac2981d7bf6dc7b042094fc992eb6da938df6dea003c5130568845953e8e74ec35d577b9e945128934e383ddb805c3b2b SHA512 c0a7b88771132f795a790b6bcf9586053fd539e0e48de20fb08030ea2e3dd22a6e1e2e640241403124bd16f9bfaf3617c7410df770c4ee697f73bca24cdef076
EBUILD prometheus-cpu-mem-monitor-0.0.0.1-r1.ebuild 465 BLAKE2B 12cd39242a258b01dd654678033353f8e1cf12cf3d3136fbecca4ed493bd3d03b777b28a78da621a9ad54c06638d88220916051b2c644858d6d4662d1732e6fd SHA512 d71261fb2536d7e724d730f373f5fa2098236f469d0e3a9d455698d7e0bd18ecb816417f7e4ba5b3af3fcbd09c24ea55e70ca8c4609c8304815fb445fb011867
MISC ChangeLog 604 BLAKE2B 3eeac06192d3c27598c59618e7a800beed43b282e16abbf3d69e1aebbe43b8c525c6d9981802b04ba92ca67a5f4bccac41bc2458b4fd031775af2beb54d6acf8 SHA512 c38d6a62608d97018fc92328f4d0d86d4bad79593ce68b07264d3cb84e853dd2dc755e6ffaed46c40b4afdc691ae4527027c545f30ad8203985db1dd17cc58f2
MISC metadata.xml 337 BLAKE2B bd72b6097fead5eaf80082790d3712ae0893b118140b62f58639f0e5c56bebf57dbd0ccd0ea19af82b2dce88c88c494d88290f98df4818e4fad3f4386398d171 SHA512 aee4825d8b90a8fd84fb558b9af4b7eb889fcf81bae6c7b317a9d69f62b06dd0f0bc2aa91aa2c32f10ff91fdbf64b341d7e5adc3c65a5225c7e0e92d7a6b7816

View file

@ -1,8 +1,8 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit user systemd
EAPI=7
inherit systemd
KEYWORDS="~amd64"

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)
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.service 440 BLAKE2B 81a89d51ce54e4af5a1d400cee05418e031bce5d87df5546d5e759a6f9814d16eb88266dd129d40c94c1b7d971281f45f5a63a091a8ee6110fe601b909fc5175 SHA512 db040d60eaeffe5583a2e01d0e8c855ad7585ff89627b6fa0bbeac923381ef32154b49ddf7997d8774937d317cbc705357d90a05d2eedee417f7ce6ee486b291
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
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

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
}