diff options
author | William Hubbs <william.hubbs@sony.com> | 2019-03-12 18:09:18 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2019-03-12 18:10:37 -0500 |
commit | 7c6cbe4e059abec238de139f2e233fd8419caf31 (patch) | |
tree | cbbff47a16a119da1779e15b6656940ca8831732 /app-metrics | |
parent | dev-db/mariadb: Alert users to the deprecation of sst-xtrabackup (diff) | |
download | gentoo-7c6cbe4e059abec238de139f2e233fd8419caf31.tar.gz gentoo-7c6cbe4e059abec238de139f2e233fd8419caf31.tar.bz2 gentoo-7c6cbe4e059abec238de139f2e233fd8419caf31.zip |
app-metrics/mongodb_exporter: 0.6.0 bump
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-metrics')
-rw-r--r-- | app-metrics/mongodb_exporter/Manifest | 1 | ||||
-rw-r--r-- | app-metrics/mongodb_exporter/mongodb_exporter-0.6.0.ebuild | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/app-metrics/mongodb_exporter/Manifest b/app-metrics/mongodb_exporter/Manifest index ef9522c21836..9a4d0e9d1331 100644 --- a/app-metrics/mongodb_exporter/Manifest +++ b/app-metrics/mongodb_exporter/Manifest @@ -1 +1,2 @@ DIST mongodb_exporter-0.4.0.tar.gz 3386266 BLAKE2B a6bebada2792e620b2107b72b3ab8b2a4e7a08fc53747f266b30a3cf2fe42ed7e09e3be9aa36332cba2df124947064f545821f355726e09649509c671a56c30b SHA512 0db1abd8c7439239cf59b24968ef33f83c6609a9deaed250315dd7fcb6844ef3d0d0c1f50b979f931beb539038a13eb7b88c03c899333d981112695be2e031b3 +DIST mongodb_exporter-0.6.0.tar.gz 1274979 BLAKE2B 9e039d33048a7cc8552d39e9dbc6b04d26f062ac7c232088806318a69b2601b9ae98f09a41d255e9b6ac6883acfcda9511219513382837a0d88903cf31578bde SHA512 c9d7f46a6d7222e4dca105be9c306a6d558dacf185a726345988e262386c27ed63ef7022e524086f522aa0b5c7ff0ad6207863e83670c6116bb2b1e681abfc9d diff --git a/app-metrics/mongodb_exporter/mongodb_exporter-0.6.0.ebuild b/app-metrics/mongodb_exporter/mongodb_exporter-0.6.0.ebuild new file mode 100644 index 000000000000..4f780222d44f --- /dev/null +++ b/app-metrics/mongodb_exporter/mongodb_exporter-0.6.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit user golang-build golang-vcs-snapshot + +EGO_PN=github.com/percona/mongodb_exporter +EXPORTER_COMMIT=a642618 + +DESCRIPTION="Prometheus exporter for MongoDB" +HOMEPAGE="https://github.com/percona/mongodb_exporter" +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="dev-util/promu" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_prepare() { + default + sed -i -e "/-s$/d" -e "s/{{.Revision}}/${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 bin || die + popd || die +} + +src_install() { + pushd src/${EGO_PN} || die + dobin bin/mongodb_exporter + dodoc {README,CHANGELOG}.md + popd || die + keepdir /var/log/mongodb_exporter + fowners ${PN}:${PN} /var/log/mongodb_exporter + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} |