diff options
| author | Arthur Zamarin <arthurzam@gentoo.org> | 2025-01-17 19:58:59 +0200 |
|---|---|---|
| committer | Arthur Zamarin <arthurzam@gentoo.org> | 2025-01-17 20:13:34 +0200 |
| commit | 0bd75c6a2aa1f41463ee85dbc03222acc2f72462 (patch) | |
| tree | 72051a172dfa84334dc6e5a7384f3ef33ff20bc8 /app-metrics/mongodb_exporter/mongodb_exporter-0.43.1.ebuild | |
| parent | d11315bee5448f4b865a0a18458d5026e7da1000 (diff) | |
| download | gentoo-0bd75c6a2aa1f41463ee85dbc03222acc2f72462.tar.gz gentoo-0bd75c6a2aa1f41463ee85dbc03222acc2f72462.tar.bz2 gentoo-0bd75c6a2aa1f41463ee85dbc03222acc2f72462.zip | |
app-metrics/mongodb_exporter: add 0.43.1
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-metrics/mongodb_exporter/mongodb_exporter-0.43.1.ebuild')
| -rw-r--r-- | app-metrics/mongodb_exporter/mongodb_exporter-0.43.1.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/app-metrics/mongodb_exporter/mongodb_exporter-0.43.1.ebuild b/app-metrics/mongodb_exporter/mongodb_exporter-0.43.1.ebuild new file mode 100644 index 000000000000..08ca1b99ba6c --- /dev/null +++ b/app-metrics/mongodb_exporter/mongodb_exporter-0.43.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +# update these on every bump +BRANCH='tags/v0.43.1^0' +COMMIT=2b2cccca21104c2a00cb53bd0d785b3d656fe803 + +DESCRIPTION="Prometheus exporter for MongoDB" +HOMEPAGE="https://github.com/percona/mongodb_exporter" +SRC_URI="https://github.com/percona/mongodb_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~arthurzam/distfiles/app-metrics/${PN}/${P}-deps.tar.xz" + +LICENSE="Apache-2.0 AGPL-3 BSD MIT" +SLOT="0" +KEYWORDS="~amd64" + +# tests require docker compose +RESTRICT="test" + +DEPEND=" + acct-group/mongodb_exporter + acct-user/mongodb_exporter +" +RDEPEND="${DEPEND}" + +src_compile() { + emake \ + COMPONENT_BRANCH=${BRANCH} \ + COMPONENT_VERSION=${PV} \ + PMM_RELEASE_FULLCOMMIT=${COMMIT} \ + build +} + +src_install() { + dobin ${PN} + dodoc CHANGELOG {CONTRIBUTING,README,REFERENCE}.md + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + + keepdir /var/log/mongodb_exporter + fowners ${PN}:${PN} /var/log/mongodb_exporter +} |
