Removed prometheus packages
This commit is contained in:
parent
928a8fb739
commit
f418790224
|
@ -1,5 +0,0 @@
|
||||||
AUX prometheus-alertmanager.confd 135 BLAKE2B 7a3dd341e63a73e9782d44dc59c8a65ea1c855ae0589ce80e616be6d8faf24224f804c564296955487760c155649c184b3132a2741cf30d171c88dcfdd469583 SHA512 391eb26d67310fba9371d274b1e9552cf0c9c02de1e3616c3e5514ae99bf7d36b52c6caa7e94a96f640b0f8542b15b4dded9d59154173c01d4e9a99ec2219fbc
|
|
||||||
AUX prometheus-alertmanager.initd 817 BLAKE2B 74a7e6c292ac52f4d6d00644038e74624be41ed632a6db389a7c226b3a37d43f22f1c8c098d34f652d9b6b9cb407523b375c884e75fe3740578f26e822df21c7 SHA512 34ae9348f5e054543bdbffd29e30d1fb6147d47e74cecb1755c29bf4327bd56ac4fae4cecddf2c515b6ddffbce4ad7151ae3a3e7f283db2d6b74619f5faa44ac
|
|
||||||
DIST prometheus-alertmanager-0.14.0.tar.gz 2786623 BLAKE2B e9c773af81153b3062d27464c6b8d1edcafe66575b8d5a6309b162c6546d3dedf7ae5b1afcf4dafb3dfdb6bcf826aeb9119b27cfe596da365a6272ee71b30441 SHA512 e352d51d86b853ff679892df3c494da2c7b4afb918d807e6d63b76e959b586f43a4c773de18bdd9e6a5067d4034748bb304ebdee2f08983b00890c1ae393d0b8
|
|
||||||
EBUILD prometheus-alertmanager-0.14.0-r1.ebuild 1398 BLAKE2B b4899121dd7d7b930642c79788f2ea14fce09f530c1ee1a05411842fdcfb31ec9faad3dd214d97474b7df7c7a0e642dba31d4d57d16b148ec93840a038bf2906 SHA512 cbd89095add8ae72270a95017da86cca281abf3b3b9c9accc12d76193374fcf0a96dbb39b09334da266f55f47124754ef659ff3792189a8c71f26b61d58c73c8
|
|
||||||
MISC metadata.xml 333 BLAKE2B eb945c2d22a9d93154b7a021559038b9565f00d54dda86445c00156ddffd6754cd433026ff465a38864d00bf1c44a3c050835fd854dadce82ea92649613151ef SHA512 2059ca45e92e3a833d93097362e1ae79ef085c35f87ec2bcbde4ee2d20f8938cb27fb19647d083990c1224b3d0c06f163a3f1bedfabfb59a6b3b15a90697ac0f
|
|
|
@ -1,2 +0,0 @@
|
||||||
# arguments for prometheus alertmanager
|
|
||||||
command_args="--config.file=/etc/alertmanager/config.yml --storage.path=/var/lib/alertmanager"
|
|
|
@ -1,28 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 2016-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
description="Prometheus alertmanager"
|
|
||||||
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
|
|
||||||
user=${user:-${RC_SVCNAME}}
|
|
||||||
group=${group:-${RC_SVCNAME}}
|
|
||||||
|
|
||||||
command="/usr/bin/alertmanager"
|
|
||||||
command_args="${command_args:---config.file=/etc/alertmanager/config.yml --storage.path=/var/lib/alertmanager}"
|
|
||||||
command_background="true"
|
|
||||||
start_stop_daemon_args="--user ${user} --group ${group} \
|
|
||||||
--stdout /var/log/alertmanager/${RC_SVCNAME}.log \
|
|
||||||
--stderr /var/log/alertmanager/${RC_SVCNAME}.log"
|
|
||||||
|
|
||||||
extra_started_commands="reload"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
after net
|
|
||||||
}
|
|
||||||
|
|
||||||
reload() {
|
|
||||||
ebegin "Reloading ${SVCNAME}"
|
|
||||||
start-stop-daemon --signal HUP --pidfile "${pidfile}"
|
|
||||||
eend $? "Failed to stop ${SVCNAME}"
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>mrueg@gentoo.org</email>
|
|
||||||
<name>Manuel Rüger</name>
|
|
||||||
</maintainer>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="github">prometheus/alertmanager</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,54 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit user golang-build golang-vcs-snapshot
|
|
||||||
|
|
||||||
EGO_PN="github.com/prometheus/alertmanager"
|
|
||||||
EGIT_COMMIT="v${PV/_rc/-rc.}"
|
|
||||||
ALERTMANAGER_COMMIT="fb713f6"
|
|
||||||
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
|
||||||
KEYWORDS="amd64"
|
|
||||||
|
|
||||||
DESCRIPTION="Alertmanager for alerts sent by client applications such as Prometheus"
|
|
||||||
HOMEPAGE="https://github.com/prometheus/alertmanager"
|
|
||||||
SRC_URI="${ARCHIVE_URI}"
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="dev-util/promu"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
ALERT_USER="pr-alert"
|
|
||||||
ALERT_GROUP="pr-alert"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${ALERT_GROUP}
|
|
||||||
enewuser ${ALERT_USER} -1 -1 -1 ${ALERT_GROUP}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
sed -i -e "s/{{.Revision}}/${ALERTMANAGER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
mkdir -p bin || die
|
|
||||||
GOPATH="${S}" promu build -v --prefix bin || die
|
|
||||||
popd || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
dobin bin/*
|
|
||||||
dodoc {README,CHANGELOG,CONTRIBUTING}.md
|
|
||||||
insinto /etc/alertmanager/
|
|
||||||
newins doc/examples/simple.yml config.yml.example
|
|
||||||
popd || die
|
|
||||||
keepdir /var/lib/alertmanager /var/log/alertmanager
|
|
||||||
fowners ${ALERT_USER}:${ALERT_GROUP} /var/lib/alertmanager /var/log/alertmanager
|
|
||||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
|
||||||
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
AUX prometheus-blackbox_exporter.confd 110 BLAKE2B c3cb7ed7d314ea8b347b4db9839e7c987c91c78378a6085473d687a5f3460f06ca6825567fbe832c3114906156290d00d505e15e3c2461eb844acb4e56937af0 SHA512 aa8720c03c4bf21ad5f789a4e9c6df6059fb71413cfdc605f8868bcd54eab899aa527afa9d847c7780042a8d4d72468145a97f8d732ef6aad861dcbf96bdf2ed
|
|
||||||
AUX prometheus-blackbox_exporter.initd 614 BLAKE2B bc2a5d5b3a0383a35cd223c94169b57045f2dd2506753541dbf61b3003b042a5d43bb08237ec367e1d48104f0b30b7a50713e96e9b03c2fbb6e079c9858936eb SHA512 4a25f59d0fb95ac35c07ab15623c2c905db04cb5a14cccd316bd522e2b4892a08d67a4edb15c6c02fbc2b84e92dc48b67f5d14c7617cfccfa09babf22e4d1beb
|
|
||||||
DIST prometheus-blackbox_exporter-0.12.0.tar.gz 2202465 BLAKE2B e3b082f8a491b531b0caf3331ecd391bf8734df0915ccbb7988ac1e67e57436bd45169aa403d5511fbb44eb176f89836ad8c04c491f5194f90f9f8a3b686a656 SHA512 2c98c0f4127bdd04ac54eb182c5468fd38121558f85aa8b4bec860f783f266b144df3153da0b028fdb84a4131a4e374a969bb09ce3a781ddf95f0a008c11bbb6
|
|
||||||
EBUILD prometheus-blackbox_exporter-0.12.0.ebuild 1554 BLAKE2B 379cf50dbb122173ef6b880ab15580ae9aeba9db2c8e3ec27966e1f29bdcf37fba80fcddd9bf4fbe72a0a819bec056a89f72015977b2200cbaa17ebd4ca14d5a SHA512 15c79e84bbf54849697f95bf0dec6bd2cd257d41806b783f066ebcf3abb0d8a1015909d9386ea3e09e32750f3e6076fc98de30c2f2eaf223a4316cfdabb0a982
|
|
||||||
MISC metadata.xml 338 BLAKE2B 117f205ecdd4c05aba1ce92846f59dc7790c9fdae79db5cc1eb912d34a9e1d83eaaea26feb24245a0c5fc4394552705aa7b23171920d9023ca8e4333b3c09650 SHA512 e431b2ef89e797b9cbb290a70683a4392f07559851550dd22f5410f09c979730c8dd35c095f855565df8d72adb42c6e4b9d03882adf37240b0da28cc508ee2ad
|
|
|
@ -1,2 +0,0 @@
|
||||||
# arguments for prometheus blackbox exporter
|
|
||||||
command_args="--config.file=/etc/blackbox_exporter/blackbox.yml"
|
|
|
@ -1,19 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 2016-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
description="Prometheus blackbox exporter"
|
|
||||||
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
|
|
||||||
user=${user:-${RC_SVCNAME}}
|
|
||||||
group=${group:-${RC_SVCNAME}}
|
|
||||||
|
|
||||||
command="/usr/bin/blackbox_exporter"
|
|
||||||
command_args="${command_args:--config.file=/etc/blackbox_exporter/blackbox.yml}"
|
|
||||||
command_background="true"
|
|
||||||
start_stop_daemon_args="--user ${user} --group ${group} \
|
|
||||||
--stdout /var/log/blackbox_exporter/${RC_SVCNAME}.log \
|
|
||||||
--stderr /var/log/blackbox_exporter/${RC_SVCNAME}.log"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
after net
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>mrueg@gentoo.org</email>
|
|
||||||
<name>Manuel Rüger</name>
|
|
||||||
</maintainer>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="github">prometheus/blackbox_exporter</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,56 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit fcaps user golang-build golang-vcs-snapshot
|
|
||||||
|
|
||||||
EGO_PN="github.com/prometheus/blackbox_exporter"
|
|
||||||
EGIT_COMMIT="v${PV/_rc/-rc.}"
|
|
||||||
BLACKBOX_EXPORTER_COMMIT="4a22506"
|
|
||||||
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
|
||||||
KEYWORDS="amd64"
|
|
||||||
|
|
||||||
DESCRIPTION="Prometheus exporter for blackbox probing via HTTP, HTTPS, DNS, TCP and ICMP"
|
|
||||||
HOMEPAGE="https://github.com/prometheus/blackbox_exporter"
|
|
||||||
SRC_URI="${ARCHIVE_URI}"
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="dev-util/promu"
|
|
||||||
EXPORTER_USER="pr-blackbox"
|
|
||||||
EXPORTER_GROUP="pr-blackbox"
|
|
||||||
|
|
||||||
FILECAPS=(
|
|
||||||
cap_net_raw usr/bin/blackbox_exporter
|
|
||||||
)
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${EXPORTER_GROUP}
|
|
||||||
enewuser ${EXPORTER_USER} -1 -1 -1 ${EXPORTER_GROUP}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
sed -i -e "s/{{.Revision}}/${BLACKBOX_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
mkdir -p bin || die
|
|
||||||
GOPATH="${S}" promu build -v --prefix blackbox_exporter || die
|
|
||||||
popd || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
dobin blackbox_exporter/blackbox_exporter
|
|
||||||
dodoc {README,CONFIGURATION}.md blackbox.yml
|
|
||||||
insinto /etc/blackbox_exporter
|
|
||||||
newins example.yml blackbox.yml.example
|
|
||||||
popd || die
|
|
||||||
keepdir /var/lib/blackbox_exporter /var/log/blackbox_exporter
|
|
||||||
fowners ${EXPORTER_USER}:${EXPORTER_GROUP} /var/lib/blackbox_exporter /var/log/blackbox_exporter
|
|
||||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
|
||||||
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
AUX prometheus-mysqld_exporter-1.initd 622 BLAKE2B a9009f275eee802be09e926ddf703b2b600142ce0ad46a3e6089a1ba14b034bea5c4a22e70938f1a2e3edb112eeacc609c7a7dff24f9105bdae0fa8a043079d0 SHA512 aa924bd78cf3c71bb59e30ee32a5372ed47320af011ad6664befed6a64c5277c9cb41e5239ab8b7fbbdd326eb51eac26f286ce4d7f8ec1096bcd69e866a760ac
|
|
||||||
AUX prometheus-mysqld_exporter.confd 115 BLAKE2B db4c0cfbfdd447efadd91fe66935b2ae3c20cad37a3026b7c23dcdb3381d6a5c069191321bafc1744e199e6bd2cbc748ae0cf7529c9ac7e16c59ac8c77080764 SHA512 bdd7920d386a5c5103b113d3d796de5c77e579a6eae9d02937c6639939e3d31b968d3ba22052b377376f92cae8d6fd8977b683a92930c88cf65d4ea751252173
|
|
||||||
DIST prometheus-mysqld_exporter-0.10.0.tar.gz 971604 BLAKE2B ec077b7b6a15f6173e5cc04e741c51c4d26a214601da8eb1aede49ee325f52bea2140b8e5b3bdbc2a1e527e40c95099dca2a57501d44a26e787cdc330f4aa8b8 SHA512 0a7b0ff537ad59a9b64aa18dfe1d1eb9253b12ae566d5c151555fbd4457b7e65890b6569632b452ae317b3acbfa94c12d96f6fb6e4f982b9b2161fc4747330f5
|
|
||||||
EBUILD prometheus-mysqld_exporter-0.10.0.ebuild 1356 BLAKE2B e496d7ed030fae6bea43b8e559eab36978118ecaebd295af22234e4ea578d089ebfca42fc441733e25a3cc48e4e3325d538c251b030fae661df773b4d7fe597b SHA512 1e7fe42d45acd7c9d8fa3703a7074b2139062fb63ee5b66b6836c5c76a4f92fd3e1012e75a9be02ba852f7bd0eda6c8a81cb0727764830c2287fd96c418b30e7
|
|
||||||
MISC metadata.xml 342 BLAKE2B c99db8a7ba47d8b948f5e8623c98ff234a67d14485a09a412d55155b878fe2cff4594934f2e1aef749072f4f52ca8c0b660e52764cc20b40aedc3ae2280d8fdd SHA512 55dcb15bda103364487e98359157961d7859af7e38cef4030e53fe2fb50ded0e34d27a1607171e62d60dd53e93b2cd1f30becded706dcb362ce3f45052cd0203
|
|
|
@ -1,19 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 2016-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
description="Prometheus mysqld metrics exporter"
|
|
||||||
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
|
|
||||||
user=${user:-${RC_SVCNAME}}
|
|
||||||
group=${group:-${RC_SVCNAME}}
|
|
||||||
|
|
||||||
command="/usr/bin/mysqld_exporter"
|
|
||||||
command_args="${command_args:---collector.textfile.directory=/var/lib/mysqld_exporter/}"
|
|
||||||
command_background="true"
|
|
||||||
start_stop_daemon_args="--user ${user} --group ${group} \
|
|
||||||
--stdout /var/log/mysqld_exporter/${RC_SVCNAME}.log \
|
|
||||||
--stderr /var/log/mysqld_exporter/${RC_SVCNAME}.log"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
after net
|
|
||||||
}
|
|
|
@ -1,2 +0,0 @@
|
||||||
# arguments for prometheus mysqld exporter
|
|
||||||
command_args="--collector.textfile.directory=/var/lib/mysqld_exporter/"
|
|
|
@ -1,11 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>whissi@gentoo.org</email>
|
|
||||||
<name>Thomas Deutschmann</name>
|
|
||||||
</maintainer>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="github">prometheus/mysqld_exporter</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,50 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit user golang-build golang-vcs-snapshot
|
|
||||||
|
|
||||||
EGO_PN="github.com/prometheus/mysqld_exporter"
|
|
||||||
EGIT_COMMIT="v${PV/_rc/-rc.}"
|
|
||||||
MYSQLD_EXPORTER_COMMIT="8068006"
|
|
||||||
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
|
||||||
KEYWORDS="amd64"
|
|
||||||
|
|
||||||
DESCRIPTION="Prometheus exporter for machine metrics"
|
|
||||||
HOMEPAGE="https://github.com/prometheus/mysqld_exporter"
|
|
||||||
SRC_URI="${ARCHIVE_URI}"
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="dev-util/promu"
|
|
||||||
EXPORTER_USER="pr-mysql"
|
|
||||||
EXPORTER_GROUP="pr-mysql"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${EXPORTER_GROUP}
|
|
||||||
enewuser ${EXPORTER_USER} -1 -1 -1 ${EXPORTER_GROUP}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
sed -i -e "s/{{.Revision}}/${MYSQLD_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
mkdir -p bin || die
|
|
||||||
GOPATH="${S}" promu build -v --prefix mysqld_exporter || die
|
|
||||||
popd || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
dobin mysqld_exporter/mysqld_exporter
|
|
||||||
dodoc {README,CHANGELOG,CONTRIBUTING}.md
|
|
||||||
popd || die
|
|
||||||
keepdir /var/lib/mysqld_exporter /var/log/mysqld_exporter
|
|
||||||
fowners ${EXPORTER_USER}:${EXPORTER_GROUP} /var/lib/mysqld_exporter /var/log/mysqld_exporter
|
|
||||||
newinitd "${FILESDIR}"/${PN}-1.initd ${PN}
|
|
||||||
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
AUX prometheus-node_exporter-1.initd 615 BLAKE2B 4d5d30126a1491b4771365b7db31a4849a3eeda3a09283a6befdf35614e6a3cf4cb1e20ab1d57a53c3715555fb0af73e62f76a4b99e58b83d77d44382f72edb3 SHA512 aecc8180b300660cb6b2882c45a99510d5c12aecaf1aaa24d62f2393c3f5c3e5dd9de6c5e73125f4eb6f3e18ca0d7b7e04e6338db2eed5ab06919e245f7e9d6a
|
|
||||||
AUX prometheus-node_exporter.confd 111 BLAKE2B bb40370633c41a4f1283677ed16ad9734c7f180683e4d9d82be36ea5e63d3b8fc2a861a61c62e2e899209f7293588e3e7532ffe52ecb9aab4773a3943168d5dd SHA512 cce5db8eccf2ecfe1198aa8252b04fd6a96006f707e7132c2d01c5400d175551c3b9890c4d57fec9ccbe17594dfb937e1f99ead0e1c3fd8cf22930dabd70418d
|
|
||||||
DIST prometheus-node_exporter-0.15.2.tar.gz 1327204 BLAKE2B ee694771ed6d736fd4bb6a10f713f31becc930fb8225499d4b3a2a2cc7416c1816605cd8f4205dc37a2264af8d9f85e3519bc01844d252b6a70d4ee5f6308ece SHA512 b39ce0801a5bf5a2a70c4034659d047d70b3763af3f18925b65c2b5f72832e261362aaeb9ce4c68cb7bf52e790d3fc710a6c8550ad7876e89fd9f5a055200a52
|
|
||||||
EBUILD prometheus-node_exporter-0.15.2.ebuild 1332 BLAKE2B 7ac26635067e24242fc53205386ba25c264dd6e3a78606652f96ee38dfcdc50ec88d6a9534c67c57c008eb0e0bffc0a2e174b13f9030a8462deb2dbb1c1c0934 SHA512 4312703b230b45767050796667ed9b04633bbd626c9b95ce9d76928343ba7463dd9f287a929164e605101ab158419191acb487d644661784defb13dcd237fc76
|
|
||||||
MISC metadata.xml 334 BLAKE2B 4152458bd76dc5a5150cf8ec6e6b967d88b89b85c7145c158d981c92dad663df3259b2ee229298727e862139215e69ac97f9aecf3b66c182a13fc9bf6e651057 SHA512 da17eb8e555adf4d4922ba8e0a549248dc2adf391f4285ce0f6919f194de327d80205c1e09af073eee526b073aba26e5551aa41a83118961d9e6eddd2887b23e
|
|
|
@ -1,19 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 2016-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
description="Prometheus machine metrics exporter"
|
|
||||||
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
|
|
||||||
user=${user:-${RC_SVCNAME}}
|
|
||||||
group=${group:-${RC_SVCNAME}}
|
|
||||||
|
|
||||||
command="/usr/bin/node_exporter"
|
|
||||||
command_args="${command_args:---collector.textfile.directory=/var/lib/node_exporter/}"
|
|
||||||
command_background="true"
|
|
||||||
start_stop_daemon_args="--user ${user} --group ${group} \
|
|
||||||
--stdout /var/log/node_exporter/${RC_SVCNAME}.log \
|
|
||||||
--stderr /var/log/node_exporter/${RC_SVCNAME}.log"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
after net
|
|
||||||
}
|
|
|
@ -1,2 +0,0 @@
|
||||||
# arguments for prometheus node exporter
|
|
||||||
command_args="--collector.textfile.directory=/var/lib/node_exporter/"
|
|
|
@ -1,11 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>mrueg@gentoo.org</email>
|
|
||||||
<name>Manuel Rüger</name>
|
|
||||||
</maintainer>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="github">prometheus/node_exporter</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,50 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit user golang-build golang-vcs-snapshot
|
|
||||||
|
|
||||||
EGO_PN="github.com/prometheus/node_exporter"
|
|
||||||
EGIT_COMMIT="v${PV/_rc/-rc.}"
|
|
||||||
NODE_EXPORTER_COMMIT="98bc649"
|
|
||||||
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
|
||||||
KEYWORDS="amd64"
|
|
||||||
|
|
||||||
DESCRIPTION="Prometheus exporter for machine metrics"
|
|
||||||
HOMEPAGE="https://github.com/prometheus/node_exporter"
|
|
||||||
SRC_URI="${ARCHIVE_URI}"
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="dev-util/promu"
|
|
||||||
EXPORTER_USER="pr-node"
|
|
||||||
EXPORTER_GROUP="pr-node"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${EXPORTER_GROUP}
|
|
||||||
enewuser ${EXPORTER_USER} -1 -1 -1 ${EXPORTER_GROUP}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
sed -i -e "s/{{.Revision}}/${NODE_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
mkdir -p bin || die
|
|
||||||
GOPATH="${S}" promu build -v --prefix node_exporter || die
|
|
||||||
popd || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
dobin node_exporter/node_exporter
|
|
||||||
dodoc {README,CHANGELOG,CONTRIBUTING}.md
|
|
||||||
popd || die
|
|
||||||
keepdir /var/lib/node_exporter /var/log/node_exporter
|
|
||||||
fowners ${EXPORTER_USER}:${EXPORTER_GROUP} /var/lib/node_exporter /var/log/node_exporter
|
|
||||||
newinitd "${FILESDIR}"/${PN}-1.initd ${PN}
|
|
||||||
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
AUX prometheus-snmp_exporter.confd 98 BLAKE2B 3058ed314dd66772e0d299f135cc1ddb4f3c1f47403848fd249e949173430673991a12e794c74bfb53d0f25f313513d2d70c03d589b6d947659d03e33e6dea8a SHA512 e757dd327252ffd29a65170837aea147128d8effee3d88ac4f0474efffaa10748b51bfbecab999605284030a3026b13ce3ce2c1a7ec347a6ff191e44040d84aa
|
|
||||||
AUX prometheus-snmp_exporter.initd 591 BLAKE2B e5c58dd7b054cfb817deaaa084b49935711dcb3aefdd3d074ef759fc7f6ccb634faf4009c0bdce5090d3b780e3d498e75b0ceb610d676e1dded98518bc7d6c31 SHA512 0e53ef6790dc60091c0ed3b9cb7f47fabf526db80f9f09e212880efff59e9c0b3abb19235fe9b82da15cfb8aacb1eab326902f51d4908af80348023ae59bd474
|
|
||||||
DIST prometheus-snmp_exporter-0.9.0.tar.gz 3257207 BLAKE2B 3e7e91d7e66b32e3f84c9e53061f54ffc10116913b91598edfa011663daf2c67314661dbe6cd5b2c20b30968833bd64a48bdd5dd06694e76f1e787d59ad63933 SHA512 eb287f4519f2174a9ce80414c2b7a698bc50e1bcb2303a8190164002af088e0694e01233314cfe2bd89b2cd751f2fd6f8447eb641541701b7bd481373ce084b1
|
|
||||||
EBUILD prometheus-snmp_exporter-0.9.0.ebuild 1379 BLAKE2B 46a9d2d7e283b256c181939583230db8b3dcf45cb5b9e11d8b32a3fb6767593df65fa8ee0e97321d22b2989ec9364fa2f009b9429cb1bc9603634512721a4211 SHA512 1d8894c6166f265634f177f79116434822cd463e9f134d6e2cffe35edbd02e71636c6e155a081694a050c9e85318f8fb0bd07c9a27b994c79473e0f1091cbf4a
|
|
||||||
MISC metadata.xml 334 BLAKE2B a805d1d3f519c6ac1ef9c7f2cb5a0947740e6fe9a37fc77490e2011a27dae8ff981b3e482a55c117553eaa60f0e3c8d017d867c4fe082c8ebdc4e4bdac22f750 SHA512 7fd3e4314022bf2ff86bd01f335d5c4402676970b9810575225aff3d40bd5bdc9ffc27b438c880dc0a665cf3873502b969dfb30644b3c106278fd353820d6599
|
|
|
@ -1,2 +0,0 @@
|
||||||
# arguments for prometheus snmp exporter
|
|
||||||
command_args="--config.file=/etc/snmp_exporter/snmp.yml"
|
|
|
@ -1,19 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 2016-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
description="Prometheus snmp exporter"
|
|
||||||
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
|
|
||||||
user=${user:-${RC_SVCNAME}}
|
|
||||||
group=${group:-${RC_SVCNAME}}
|
|
||||||
|
|
||||||
command="/usr/bin/snmp_exporter"
|
|
||||||
command_args="${command_args:---config-file=/etc/snmp_exporter/snmp.yml}"
|
|
||||||
command_background="true"
|
|
||||||
start_stop_daemon_args="--user ${user} --group ${group} \
|
|
||||||
--stdout /var/log/snmp_exporter/${RC_SVCNAME}.log \
|
|
||||||
--stderr /var/log/snmp_exporter/${RC_SVCNAME}.log"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
after net
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>mrueg@gentoo.org</email>
|
|
||||||
<name>Manuel Rüger</name>
|
|
||||||
</maintainer>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="github">prometheus/snmp_exporter</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,52 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit user golang-build golang-vcs-snapshot
|
|
||||||
|
|
||||||
EGO_PN="github.com/prometheus/snmp_exporter"
|
|
||||||
EGIT_COMMIT="v${PV/_rc/-rc.}"
|
|
||||||
SNMP_EXPORTER_COMMIT="abb143a"
|
|
||||||
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
|
||||||
KEYWORDS="amd64"
|
|
||||||
|
|
||||||
DESCRIPTION="Prometheus exporter for snmp metrics"
|
|
||||||
HOMEPAGE="https://github.com/prometheus/snmp_exporter"
|
|
||||||
SRC_URI="${ARCHIVE_URI}"
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="dev-util/promu"
|
|
||||||
EXPORTER_USER="pr-snmp"
|
|
||||||
EXPORTER_GROUP="pr-snmp"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${EXPORTER_GROUP}
|
|
||||||
enewuser ${EXPORTER_USER} -1 -1 -1 ${EXPORTER_GROUP}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
sed -i -e "s/{{.Revision}}/${SNMP_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
mkdir -p bin || die
|
|
||||||
GOPATH="${S}" promu build -v --prefix snmp_exporter || die
|
|
||||||
popd || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
dobin snmp_exporter/snmp_exporter
|
|
||||||
dodoc {README,CONTRIBUTING}.md
|
|
||||||
insinto /etc/snmp_exporter
|
|
||||||
newins snmp.yml snmp.yml.example
|
|
||||||
popd || die
|
|
||||||
keepdir /var/lib/snmp_exporter /var/log/snmp_exporter
|
|
||||||
fowners ${EXPORTER_USER}:${EXPORTER_GROUP} /var/lib/snmp_exporter /var/log/snmp_exporter
|
|
||||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
|
||||||
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
AUX prometheus-3.initd 851 BLAKE2B 600d9e541206f99c0ddddc0f5a1d37d9bea69d8f45ce6562a2d3c040a75c3665d9862829fc44134db2fbbbbf1d38b7dc4010c9c284f5af38f0dd2cf4be1f9d11 SHA512 7d3650ef5b632507ade4cfb00a167ec7c2d3d8e91551ef8f4550f9947038df0b22a3dd0a33e093296eeb0ca88f1d12ae40e73c7fec4df03e5dcc7630893ded59
|
|
||||||
AUX prometheus.confd 43 BLAKE2B c83afa8ad1133c9e93abd40c862ff5b3ac9a3b3c4447b915ae1482d92096dec9f200d089de2458a6cdb0e72d2bf0652d56e3afd6d5a3cd8a3ed7a6c9a0e3e42c SHA512 37468e897cd34b50b0edc65ada3f0c2e05459c3d96bb7f82d58b6de5bf10a127f1bf7912af93d83d94e3ea7287cfeb2311e36535f291d01a11d152a0b438591c
|
|
||||||
DIST prometheus-2.1.0.tar.gz 5669858 BLAKE2B 96b9d7b1eb13017806cb2745cb874468a419550c7372aa8abada9d1a4e7fe386785f05abe8fd5681745db4a0c17260d5fde704a3b3ac5807107da0a935177264 SHA512 8adbbfcf6cf5b0bdd4a96f51f6c179c828d75a231b35f9ef40db6c07bcb8ffa6a3eb969b55a52ac70528ad5c8fe486be866db6ae174006220e0cfaa1da624346
|
|
||||||
DIST prometheus-2.2.1.tar.gz 5629500 BLAKE2B 7645267a2c5ed1c4138a5dd3929a48cb9dfa27789db38e98addbb06c37c6b482abfcf296ef1a5836bebd971d8224136c24a4ccd3093175882bb0beda1673deff SHA512 a94cf867de2b3be65b0a07307f89ebfa9c0a319820a72b3b6691edcd2e2b56b5268d27fb52bdaefea0e7084906d69b818e5292a39ccd5991e04e56d594f56ea7
|
|
||||||
EBUILD prometheus-2.1.0.ebuild 2101 BLAKE2B 4db4bee38a7f0e015b35c7dcbc729df46c5840c9c519f91acec56a12ba4a2e914cee40fd17d6b53c28c36b543ee0358fd7558268fd6a044f6fa87f42599296ec SHA512 1bfd1a9b27e4a5a63ec3b5ad324dbf810d9e8994ecf69c352085f824ecbfd8dc692ea7d551bc806be4f63e7446215a6057b4accb642e9a6c30dc266806b9a3e4
|
|
||||||
EBUILD prometheus-2.2.1.ebuild 2123 BLAKE2B 25e6a680a24873ce7536a9ed3152748bcb1481a22545a0371505503fb5e9c06396173b3c779bd7288a53410b40f0b86c444dc010c91a6ccfe027cbdf5ab73830 SHA512 990f3eab39650c70a60777be6c55ef13d7e2046372012e261c7e2467bb67010f44a63ed9ffbc8f0454f13a5932c8bf35083b5a4305f6acd710f73d4efafc732c
|
|
||||||
MISC metadata.xml 331 BLAKE2B 80bf59233349fc1fdc6c102fb65ba146bcde2c5c2a6039ec9b9f50f21a36fb1e8c864cba422e721d01216c792ffcf0429a3a840540305442b5e516ac09c03850 SHA512 06fd0da413c0280a902bbdf50e1e0557375d2208021fda3c3081d8a25a4b17ad1ca647d994dd97ba2d838ea5c87148d3ffd13a8a54cb8dc007b45927df8de47a
|
|
|
@ -1,28 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 2016-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
description="Prometheus monitoring system and time series database"
|
|
||||||
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
|
|
||||||
user=${user:-${SVCNAME}}
|
|
||||||
group=${group:-${SVCNAME}}
|
|
||||||
|
|
||||||
command="/usr/bin/prometheus"
|
|
||||||
command_args="${command_args:---config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/var/lib/prometheus/data}"
|
|
||||||
command_background="true"
|
|
||||||
start_stop_daemon_args="--user ${user} --group ${group} \
|
|
||||||
--stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \
|
|
||||||
--stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
|
|
||||||
|
|
||||||
extra_started_commands="reload"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
after net
|
|
||||||
}
|
|
||||||
|
|
||||||
reload() {
|
|
||||||
ebegin "Reloading ${SVCNAME}"
|
|
||||||
start-stop-daemon --signal HUP --pidfile "${pidfile}"
|
|
||||||
eend $? "Failed to stop ${SVCNAME}"
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
# arguments for Prometheus
|
|
||||||
command_args=""
|
|
|
@ -1,11 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>mrueg@gentoo.org</email>
|
|
||||||
<name>Manuel Rüger</name>
|
|
||||||
</maintainer>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="github">prometheus/prometheus</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,70 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit user golang-build golang-vcs-snapshot
|
|
||||||
|
|
||||||
EGO_PN="github.com/prometheus/prometheus"
|
|
||||||
MY_PV=${PV/_rc/-rc.}
|
|
||||||
EGIT_COMMIT="v${MY_PV}"
|
|
||||||
PROMETHEUS_COMMIT="85f23d8"
|
|
||||||
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
|
||||||
KEYWORDS="amd64"
|
|
||||||
|
|
||||||
DESCRIPTION="Prometheus monitoring system and time series database"
|
|
||||||
HOMEPAGE="https://github.com/prometheus/prometheus"
|
|
||||||
SRC_URI="${ARCHIVE_URI}"
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="dev-util/promu"
|
|
||||||
|
|
||||||
PROMETHEUS_USER="prometheus"
|
|
||||||
PROMETHEUS_GROUP="prometheus"
|
|
||||||
PROMETHEUS_HOME="/var/lib/prometheus"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${PROMETHEUS_GROUP}
|
|
||||||
enewuser ${PROMETHEUS_USER} -1 -1 "${PROMETHEUS_HOME}" ${PROMETHEUS_GROUP}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
sed -i -e "s/{{.Revision}}/${PROMETHEUS_COMMIT}/" src/${EGO_PN}/.promu.yml || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
GOPATH="${S}" promu build -v || die
|
|
||||||
popd || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
dobin promtool prometheus
|
|
||||||
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
|
|
||||||
popd || die
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}"/prometheus-3.initd prometheus
|
|
||||||
newconfd "${FILESDIR}"/prometheus.confd prometheus
|
|
||||||
keepdir /var/log/prometheus /var/lib/prometheus
|
|
||||||
fowners ${PROMETHEUS_USER}:${PROMETHEUS_GROUP} /var/log/prometheus /var/lib/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
|
|
||||||
}
|
|
|
@ -1,72 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit user golang-build golang-vcs-snapshot
|
|
||||||
|
|
||||||
EGO_PN="github.com/prometheus/prometheus"
|
|
||||||
MY_PV=${PV/_rc/-rc.}
|
|
||||||
EGIT_COMMIT="v${MY_PV}"
|
|
||||||
PROMETHEUS_COMMIT="bc6058c"
|
|
||||||
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
|
||||||
KEYWORDS="amd64"
|
|
||||||
|
|
||||||
DESCRIPTION="Prometheus monitoring system and time series database"
|
|
||||||
HOMEPAGE="https://github.com/prometheus/prometheus"
|
|
||||||
SRC_URI="${ARCHIVE_URI}"
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
>=dev-lang/go-1.10
|
|
||||||
dev-util/promu"
|
|
||||||
|
|
||||||
PROMETHEUS_USER="prometheus"
|
|
||||||
PROMETHEUS_GROUP="prometheus"
|
|
||||||
PROMETHEUS_HOME="/var/lib/prometheus"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${PROMETHEUS_GROUP}
|
|
||||||
enewuser ${PROMETHEUS_USER} -1 -1 "${PROMETHEUS_HOME}" ${PROMETHEUS_GROUP}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
sed -i -e "s/{{.Revision}}/${PROMETHEUS_COMMIT}/" src/${EGO_PN}/.promu.yml || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
GOPATH="${S}" promu build -v || die
|
|
||||||
popd || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
dobin promtool prometheus
|
|
||||||
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
|
|
||||||
popd || die
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}"/prometheus-3.initd prometheus
|
|
||||||
newconfd "${FILESDIR}"/prometheus.confd prometheus
|
|
||||||
keepdir /var/log/prometheus /var/lib/prometheus
|
|
||||||
fowners ${PROMETHEUS_USER}:${PROMETHEUS_GROUP} /var/log/prometheus /var/lib/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
|
|
||||||
}
|
|
Loading…
Reference in a new issue