diff options
Diffstat (limited to 'app-metrics')
32 files changed, 410 insertions, 376 deletions
diff --git a/app-metrics/alertmanager/alertmanager-0.26.0.ebuild b/app-metrics/alertmanager/alertmanager-0.26.0.ebuild index ffa0915f63e3..27e863cd07fa 100644 --- a/app-metrics/alertmanager/alertmanager-0.26.0.ebuild +++ b/app-metrics/alertmanager/alertmanager-0.26.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -13,7 +13,7 @@ SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" LICENSE="Apache-2.0 BSD BSD-2 MIT MPL-2.0" SLOT="0" -KEYWORDS="~amd64 ~arm64" +KEYWORDS="amd64 ~arm64" RESTRICT+=" test" diff --git a/app-metrics/bind_exporter/Manifest b/app-metrics/bind_exporter/Manifest index 262a8c84766b..59eb9adf2753 100644 --- a/app-metrics/bind_exporter/Manifest +++ b/app-metrics/bind_exporter/Manifest @@ -1,2 +1,4 @@ DIST bind_exporter-0.6.1-vendor.tar.xz 1300068 BLAKE2B 058f4f61ff9c403a5672390dd3944dec9a6b4b1dcf8ac7bcb6943494d43c116236e23f4b0437d5b2e91cb0d936377ba896740594d90b50ce99a61963713ab70c SHA512 9fd880655ac9657d49c0d250b22e46c53a63c0a2d4097763ca8856da36f75527d515a4e4cde7dd68c2c5cbf4ea784c07d9bd5e38a01eeb2d308a585c31d5c19b DIST bind_exporter-0.6.1.tar.gz 48904 BLAKE2B ad2def162e0fac5e857328bb142bc20655d0d1ea4a9d90a3bd8d305a3d86f9247671ca92f90d5ccdcb1a8bd147ed56858a9782feeac019b87666b4b18b7219c1 SHA512 d710b7228587e12a101a1d626ec5e0290b0740074f3976eee02463165030b361d3b6df556ab949d632488582ef6d4a3197270afc197d6d756a99c16e55c5448c +DIST bind_exporter-0.8.0-deps.tar.xz 40418500 BLAKE2B 68150ebd654de67b00ecf75acb846dca37a647149b1a53c9fc8d1b26ea6d0807d1690d721cb14c9f4411cc592454465664e7754e822934a302e08c81d7c57a4c SHA512 a6540110d1bba9c08caa4c0f9682a22e29a0058a38adfd0984f97cb214ff245f801cbc01fd962029493329679dbb955e1f1f498b687c8a750080434fa7ab7686 +DIST bind_exporter-0.8.0.tar.gz 43098 BLAKE2B d6a1ecf0cd42509aac8f8755c55f9a405d549a4de60ae45ebdf9933b0be73986e24fbffd3b255445c4121ca762e672e76d0629910c6e116e245136ba16e436b5 SHA512 2b54ceed99ad386d699961a821bd0f1061f487536029cfa5dd1192c9cb6fc485bbf4a82548c8dcd70c602e7e38e905cbe24968649923eede77be7dc7aaf05cc6 diff --git a/app-metrics/bind_exporter/bind_exporter-0.8.0.ebuild b/app-metrics/bind_exporter/bind_exporter-0.8.0.ebuild new file mode 100644 index 000000000000..6786b162e378 --- /dev/null +++ b/app-metrics/bind_exporter/bind_exporter-0.8.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo go-module systemd + +GIT_COMMIT=5cc1b62b9c866184193007a0f7ec3b2eb31460bf + +DESCRIPTION="Prometheus exporter for BIND" +HOMEPAGE="https://github.com/prometheus-community/bind_exporter" +SRC_URI=" + https://github.com/prometheus-community/bind_exporter/archive/refs/tags/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 BSD MIT" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + acct-group/bind_exporter + acct-user/bind_exporter +" +RDEPEND="${DEPEND}" +BDEPEND="dev-util/promu" + +src_prepare() { + default + sed -i .promu.yml -e "s/{{.Revision}}/${GIT_COMMIT}/" || die +} + +src_compile() { + mkdir -p bin || die + edo promu build -v --prefix bin +} + +src_test() { + emake test-flags= test +} + +src_install() { + dobin bin/${PN} + dodoc {README,CHANGELOG}.md + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + systemd_dounit "${FILESDIR}"/${PN}.service + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} +} + +pkg_postinst() { + elog "Make sure BIND was built with libxml2 support. You can check with the" + elog "following command: named -V | grep libxml2." + elog "Configure BIND to open a statistics channel. It's recommended to run" + elog "the bind_exporter next to BIND, so it's only necessary to open a port" + elog "locally." + elog "" + elog "statistics-channels {" + elog "inet 127.0.0.1 port 8053 allow { 127.0.0.1; };" + elog "};" +} diff --git a/app-metrics/chrony_exporter/Manifest b/app-metrics/chrony_exporter/Manifest index cc41592ed45d..cb399a61d08a 100644 --- a/app-metrics/chrony_exporter/Manifest +++ b/app-metrics/chrony_exporter/Manifest @@ -1,2 +1,4 @@ DIST chrony_exporter-0.10.1-deps.tar.xz 8939432 BLAKE2B 91fa640e67ab1b158992808d93093204a040e4487e75443f0c223a3b0d624e8c065785443eaaaa21fa2395df38a49285d209bd35bc95ab72013adc8559b5b99c SHA512 d027d4031ef8635ffbbc9a8d349b60ff1eb26ad17a2d27bd2d56f5a3422983b84891c367d70c43f7ee0ece3165428104611a51e0bc01e35ce1c2a4bd89c648b4 DIST chrony_exporter-0.10.1.tar.gz 21438 BLAKE2B 9be912ab6569de2a5e6e39055ba54cc619d8a7c29d0043abda97af13ded6ee7766c97d97cc12cfc3404c4adbb1c779e444a9b3f18bf5ca615ba33f8cd62c70b9 SHA512 4e8f321b38605bad448d453e5754c6fe10518fe35ee063552a6dad6c01fbcc2156b1eb40873ba157a324fffc899acdaa8fb33b5464bdfe2c2b620c7849224c2a +DIST chrony_exporter-0.11.0-deps.tar.xz 41116280 BLAKE2B 03b6ae2be5d4f40b1676bba081c09aac244e77490ae3f1448e7731b110140ae429c5d3221f06935b8d85c75ef2c730938ce1b90e61e91257c1ce47bf548dff99 SHA512 ffab08b45eac42677c59b6b1fdfcbaea1571cfa73ddabebd52b7c5e1080d81f38e049b3983a54bd92c5eb45eff6759d40513c5e71f5c7ab53a60d0986fdedcfd +DIST chrony_exporter-0.11.0.tar.gz 22601 BLAKE2B 9c050f55c6a88f2da37269609d885a15436618368141e75301ddbb477b13bd625089f8315ba020595222afb6e18d5812bfd394ac2413c85c9ce9e9dc13cca689 SHA512 d531d285fa1ff86d2d3036c2efe93f9cf6cd22b55024a91228f25260d6fe6fdb25c4d5af51c83e799721a51b7c742205436b4dc2eeb2ed9cff965f85a264aa1b diff --git a/app-metrics/chrony_exporter/chrony_exporter-0.11.0.ebuild b/app-metrics/chrony_exporter/chrony_exporter-0.11.0.ebuild new file mode 100644 index 000000000000..586091d21639 --- /dev/null +++ b/app-metrics/chrony_exporter/chrony_exporter-0.11.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="Chrony NTP exporter for Prometheus" +HOMEPAGE="https://github.com/SuperQ/chrony_exporter" + +SRC_URI="https://github.com/SuperQ/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://www.applied-asynchrony.com/distfiles/${P}-deps.tar.xz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64" + +DEPEND="acct-group/chrony_exporter + acct-user/chrony_exporter" + +BDEPEND="dev-util/promu" + +src_prepare() { + default + # No need to enable the race detector for tests (#935442) + sed -i -e '/test-flags := -race/d' Makefile.common || die +} + +src_compile() { + promu build -v --cgo --prefix bin || die +} + +src_install() { + newbin bin/${P} ${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} diff --git a/app-metrics/mongodb_exporter/Manifest b/app-metrics/mongodb_exporter/Manifest index 81cf71b6f0e8..110b2c3ed195 100644 --- a/app-metrics/mongodb_exporter/Manifest +++ b/app-metrics/mongodb_exporter/Manifest @@ -1,3 +1,4 @@ -DIST mongodb_exporter-0.11.1.tar.gz 2640277 BLAKE2B 8ae0418466462d4dfebe97d48b47d0a163435f1776bceb6d35ab50d98cefa0bf737f57fc74aadebf16c285e2dd63fe2e4719571db7c5a9f942e740dab7509d91 SHA512 81a9c5877bba6e85fcdcc9e3781bbec82b255710e8292ea377ea9c9234526b7ad521350f8bd36ae7773f76f40b650cd724d552020e17feb61210ed6197be5172 DIST mongodb_exporter-0.39.0-deps.tar.xz 100818596 BLAKE2B 65be5f2ac1d24838f88b3c1338d5d5bba3a02f76c8edf46605104f834950961d635e736b7ab7afcaed66834853a7ff7465b36d34afa863d1caeb32c428c24ef2 SHA512 32c04138a92d63a22daada9fbe3fb3433cbc5192dbd22854275e298b7c3e37310116249e7ba86c78055a97c5c0a903a5d15cb2ae2c01cf2cc752f050daebb920 DIST mongodb_exporter-0.39.0.tar.gz 166721 BLAKE2B 39d2dfab342119fd14fb0f90097062770e86502c8ffffb73789e356e32248efacc30c1c0cf1c0216be25fbb021e82f80435f902f1f0beba698844e14ada206e0 SHA512 103f1d8e42ddd04f8be7def199b16ad017bce79139b16bde50c1a0f6cc24c025ec26b644d9db0134ca37233d3e87b3921177445c1d863a040d817fcd4c851e75 +DIST mongodb_exporter-0.43.1-deps.tar.xz 104860652 BLAKE2B 3d40052ba11dea73aa67a2e72b303d4e27baec13f7429627684c44de3504909efdf2959ef1a658331cb346faaa5212e474c7c0d38fced0a60423843c66c8e7fc SHA512 c5443ebe1ecde6a571480acd2130f20bdcf23c6495ef9c304db545666bd1e18f41b5c377a59300ebeb2a06d38575046e506536856a35041c8447e37257da2fff +DIST mongodb_exporter-0.43.1.tar.gz 161862 BLAKE2B 337edcf34e6c44d5ffb9b9d2b6d1da7e72a12d1430561d070bfd7569816d34b2e918faa3fa5e32aea6e480208a27f200438c55a0fb6d80be3c9564ce8feccc79 SHA512 3a9437a61d588af6d971aa954bced247cbf59c17dcdaed833b03f95904bf583c56c8210f535b07ffa1fc46583f7d1e92465e0d7623601b463667a01ec8bcfca3 diff --git a/app-metrics/mongodb_exporter/mongodb_exporter-0.11.1.ebuild b/app-metrics/mongodb_exporter/mongodb_exporter-0.11.1.ebuild deleted file mode 100644 index 30b674765a5d..000000000000 --- a/app-metrics/mongodb_exporter/mongodb_exporter-0.11.1.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit go-module -COMMIT=f5e8ebea31d6fa128ae3a2fb1b747fdf4b782b2b -BRANCH=0.11.0 - -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" - -LICENSE="Apache-2.0 AGPL-3 BSD MIT" -SLOT="0" -KEYWORDS="~amd64" - -COMMON_DEPEND="acct-group/mongodb_exporter - acct-user/mongodb_exporter" - DEPEND="${COMMON_DEPEND}" - RDEPEND="${COMMON_DEPEND}" - -src_compile() { - GOFLAGS="${GOFLAGS} -mod=vendor" emake \ - TRAVIS_TAG="${PV}" \ - APP_REVISION=${COMMIT} \ - TRAVIS_BRANCH=${BRANCH} \ - build -} - -src_install() { - dobin bin/${PN} - dodoc {README,CHANGELOG}.md - keepdir /var/log/mongodb_exporter - fowners ${PN}:${PN} /var/log/mongodb_exporter - newinitd "${FILESDIR}"/${PN}.initd ${PN} - newconfd "${FILESDIR}"/${PN}.confd ${PN} -} 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..99a59f0222cf --- /dev/null +++ b/app-metrics/mongodb_exporter/mongodb_exporter-0.43.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd + +# 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} + systemd_dounit .scripts/systemd/${PN}.service + + keepdir /var/log/mongodb_exporter + fowners ${PN}:${PN} /var/log/mongodb_exporter +} diff --git a/app-metrics/node_exporter/Manifest b/app-metrics/node_exporter/Manifest index 5e9593484721..316a68b6d905 100644 --- a/app-metrics/node_exporter/Manifest +++ b/app-metrics/node_exporter/Manifest @@ -1,5 +1,4 @@ -DIST node_exporter-1.7.0-deps.tar.xz 26490120 BLAKE2B 3177aa96a50eefaeafad73b293144772443428b8c1b90210230e3e508a678f5515aebec1c51661d47a1e021cd03c8febe9aa948cc3d955eff2b2f272a539b6af SHA512 9fe19ad0fc375f4846fddb7618de5b34ddad583b5c6b09d896c099c3218976fd337c11765699a713c66bbaa834b6cfcaee960b1b1d4014be263b99b897fb1e1c -DIST node_exporter-1.7.0.tar.gz 328830 BLAKE2B 5f6b8101637bc0df605ea84446f905fcf8abeb68d0f2eda1e172b12aae4cffcfef54996f8725ad458671947c72a48fbbd73d4d401d8fd001e9e9d75f248230fc SHA512 4cd38b81cb54ca620a57c642a88b89d6d1ae36a752fff5f065c8848ea02066a211c6feb955bea4e311f7baafffee30a74670efe1cf4dac113c9bf7d154a1067b DIST node_exporter-1.8.0-deps.tar.xz 1684580 BLAKE2B 0c02ca1177444885556da08676e78a413952955bfa80d9d7a9026133059594eaddd6f43fe10783701c71d0ecf2be9ac9383d019daeb287d5d016bd1188e5b37c SHA512 7268139beec7bf088ae4819809221985d1920e38b60db75cc074e92ce4dbe573c362f5227f095b4e5d1de7005b8ec2fbf96d3dcdf565eb2c9524d71676e1752e -DIST node_exporter-1.8.0.tar.gz 335029 BLAKE2B 639edfec973e7412620da855c997e1e50ccb5fc4afc4070c44ab3fbb9b4925103719c87f813e092db3548cd55b779233fbf71bf3affc6b779ba0e45f4767ec32 SHA512 4774ff3e146665783044769235b9d4f538ba3ff1d7c9fdfb33e5546042846371c7d26efa8a6d672e6de3c5a10107c2e72e5bbf38ed2952a5c48eda81fdc1379a DIST node_exporter-1.8.1.tar.gz 335265 BLAKE2B a3b6262fd903373bb3690b0f051d9a4770741ba9702dca30e9de91214493026f3386b72c14d77c9254ab0c3549c3a4aa1075b3abd9516aa1c4a44bcd5c26f25f SHA512 9a715912899b7e27390f403182d8eba3a040fe0f0b6832967d131338b44d7a4f89860d1f2e4da19b8be6389fed38db1a96d803412c041b2b996cc543d1383c79 +DIST node_exporter-1.8.2-deps.tar.xz 9579024 BLAKE2B 7fb5abc6f5c0517350dce5fd9ee895ee599853804d97e1229dfcc1b2fa4a75fa900d7af6ae00558b509c798f852432515045986102a55ba4fcb43ec18af18874 SHA512 4acc939c63935191dd5b58860e1543f76ddc67abe16370d19f163c0c982fad53f05a6ffd049555c0c5475d640ca495df0696e77fa23c6dd79f314ce67d014b8f +DIST node_exporter-1.8.2.tar.gz 335292 BLAKE2B 7aad2ac3433ba58be887c86d1cfbf0cd53d6712d171d2a928145588ea68f2839d593758254ab8742b7c27f068a75391959ea78ae768ffc1a0a1f5b08069dcf52 SHA512 68112a85a9ffde88d75893c30ab992ae3c591d44fbefa10e45cf94d228c8f8c44bb3585707521e355817c4b4276cf77eeaf4ed9d0261de02620135ad12f5e711 diff --git a/app-metrics/node_exporter/metadata.xml b/app-metrics/node_exporter/metadata.xml index 8e9812c67467..b4867d864edd 100644 --- a/app-metrics/node_exporter/metadata.xml +++ b/app-metrics/node_exporter/metadata.xml @@ -13,11 +13,6 @@ <email>proxy-maint@gentoo.org</email> <name>Proxy Maintainers</name> </maintainer> - <use> - <flag name="systemd"> - Enables systemd collector by default - </flag> - </use> <upstream> <remote-id type="github">prometheus/node_exporter</remote-id> <bugs-to>https://github.com/prometheus/node_exporter/issues</bugs-to> diff --git a/app-metrics/node_exporter/node_exporter-1.7.0-r2.ebuild b/app-metrics/node_exporter/node_exporter-1.7.0-r2.ebuild deleted file mode 100644 index 9e3f1d237576..000000000000 --- a/app-metrics/node_exporter/node_exporter-1.7.0-r2.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit go-module systemd - -DESCRIPTION="Prometheus exporter for machine metrics" -HOMEPAGE="https://github.com/prometheus/node_exporter" - -if [[ ${PV} == 9999* ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/prometheus/node_exporter.git" -else - SRC_URI="https://github.com/prometheus/node_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz" - SRC_URI+=" https://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.xz -> ${P}-deps.tar.xz" - KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86" -fi - -# main pkg -LICENSE="Apache-2.0" -# deps -LICENSE+=" BSD BSD-2 MIT" -SLOT="0" -IUSE="selinux systemd" - -COMMON_DEPEND=" - acct-group/node_exporter - acct-user/node_exporter - selinux? ( sec-policy/selinux-node_exporter ) - systemd? ( sys-apps/systemd ) -" -DEPEND="${COMMON_DEPEND}" -RDEPEND="${COMMON_DEPEND}" -BDEPEND=">=dev-util/promu-0.3.0" - -src_unpack() { - if [[ ${PV} == 9999* ]]; then - git-r3_src_unpack - go-module_live_vendor - else - go-module_src_unpack - fi -} - -src_prepare() { - default - use systemd && { sed -i -e "s|defaultDisabled|defaultEnabled|g;" collector/systemd_linux.go || die; } -} - -src_compile() { - if use x86; then - #917577 pie breaks build on x86 - GOFLAGS=${GOFLAGS//-buildmode=pie} - fi - promu build -v || die - ./"${PN}" --help-man > "${PN}".1 || die -} - -src_test() { - emake test-flags= test -} - -src_install() { - dosbin "${PN}" - dodoc example-rules.yml *.md - doman "${PN}".1 - systemd_newunit "${FILESDIR}"/node_exporter-1.7.0.service node_exporter.service - newinitd "${FILESDIR}"/${PN}.initd-1 ${PN} - newconfd "${FILESDIR}"/${PN}.confd ${PN} - insinto /etc/logrotate.d - newins "${FILESDIR}"/node_exporter-1.7.0.logrotate "${PN}" - keepdir /var/lib/node_exporter /var/log/node_exporter - fowners ${PN}:${PN} /var/lib/node_exporter /var/log/node_exporter -} diff --git a/app-metrics/node_exporter/node_exporter-1.7.0.ebuild b/app-metrics/node_exporter/node_exporter-1.7.0.ebuild deleted file mode 100644 index 861e9355d3de..000000000000 --- a/app-metrics/node_exporter/node_exporter-1.7.0.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit go-module systemd - -DESCRIPTION="Prometheus exporter for machine metrics" -HOMEPAGE="https://github.com/prometheus/node_exporter" - -if [[ ${PV} == 9999* ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/prometheus/node_exporter.git" -else - SRC_URI="https://github.com/prometheus/node_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz" - SRC_URI+=" https://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.xz -> ${P}-deps.tar.xz" - KEYWORDS="amd64 arm64 ~loong ~riscv ~x86" -fi - -# main pkg -LICENSE="Apache-2.0" -# deps -LICENSE+=" BSD BSD-2 MIT" -SLOT="0" -IUSE="selinux systemd" - -COMMON_DEPEND=" - acct-group/node_exporter - acct-user/node_exporter - selinux? ( sec-policy/selinux-node_exporter ) - systemd? ( sys-apps/systemd ) -" -DEPEND="${COMMON_DEPEND}" -RDEPEND="${COMMON_DEPEND}" -BDEPEND=">=dev-util/promu-0.3.0" -PATCHES=( - "${FILESDIR}"/01-default-settings-1.7.0.patch -) - -src_prepare() { - default - use !systemd && { sed -i -e "s|defaultEnabled|defaultDisabled|g;" collector/systemd_linux.go || die; } -} - -src_unpack() { - if [[ ${PV} == 9999* ]]; then - git-r3_src_unpack - go-module_live_vendor - else - go-module_src_unpack - fi -} - -src_compile() { - if use x86; then - #917577 pie breaks build on x86 - GOFLAGS=${GOFLAGS//-buildmode=pie} - fi - promu build -v || die - ./"${PN}" --help-man > "${PN}".1 || die -} - -src_test() { - emake test-flags= test -} - -src_install() { - dosbin "${PN}" - dodoc example-rules.yml *.md - doman "${PN}".1 - systemd_newunit "${FILESDIR}"/node_exporter-1.7.0.service node_exporter.service - newinitd "${FILESDIR}"/${PN}.initd-1 ${PN} - newconfd "${FILESDIR}"/${PN}.confd ${PN} - insinto /etc/logrotate.d - newins "${FILESDIR}"/node_exporter-1.7.0.logrotate "${PN}" - keepdir /var/lib/node_exporter /var/log/node_exporter - fowners ${PN}:${PN} /var/lib/node_exporter /var/log/node_exporter -} diff --git a/app-metrics/node_exporter/node_exporter-1.8.1.ebuild b/app-metrics/node_exporter/node_exporter-1.8.1.ebuild index e3855837cbdc..7a377584ee5f 100644 --- a/app-metrics/node_exporter/node_exporter-1.8.1.ebuild +++ b/app-metrics/node_exporter/node_exporter-1.8.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -16,7 +16,7 @@ else https://github.com/prometheus/node_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz https://github.com/rahilarious/gentoo-distfiles/releases/download/${PN}-1.8.0/deps.tar.xz -> ${PN}-1.8.0-deps.tar.xz " - KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86" + KEYWORDS="amd64 arm64 ~loong ~riscv ~x86" fi # main pkg diff --git a/app-metrics/node_exporter/node_exporter-1.8.0.ebuild b/app-metrics/node_exporter/node_exporter-1.8.2.ebuild index 8f35f716feb4..d2235073a3a5 100644 --- a/app-metrics/node_exporter/node_exporter-1.8.0.ebuild +++ b/app-metrics/node_exporter/node_exporter-1.8.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -13,8 +13,9 @@ if [[ ${PV} == 9999* ]]; then EGIT_REPO_URI="https://github.com/prometheus/node_exporter.git" else SRC_URI="https://github.com/prometheus/node_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz" - SRC_URI+=" https://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.xz -> ${P}-deps.tar.xz" - KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86" + SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" + + KEYWORDS="amd64 arm64 ~loong ~riscv ~x86" fi # main pkg @@ -31,7 +32,7 @@ COMMON_DEPEND=" " DEPEND="${COMMON_DEPEND}" RDEPEND="${COMMON_DEPEND}" -BDEPEND=">=dev-util/promu-0.3.0" +BDEPEND=">=dev-util/promu-0.17.0" src_unpack() { if [[ ${PV} == 9999* ]]; then @@ -42,11 +43,6 @@ src_unpack() { fi } -src_prepare() { - [[ ${PV} != 9999* ]] && { ln -sv ../vendor ./ || die ; } - default -} - src_compile() { if use x86; then #917577 pie breaks build on x86 @@ -64,7 +60,9 @@ src_install() { dosbin "${PN}" dodoc example-rules.yml *.md doman "${PN}".1 - systemd_newunit "${FILESDIR}"/node_exporter-1.7.0.service node_exporter.service + systemd_dounit examples/systemd/node_exporter.{service,socket} + insinto /etc/sysconfig + newins examples/systemd/sysconfig.node_exporter node_exporter newinitd "${FILESDIR}"/${PN}.initd-1 ${PN} newconfd "${FILESDIR}"/${PN}.confd ${PN} insinto /etc/logrotate.d diff --git a/app-metrics/postgres_exporter/Manifest b/app-metrics/postgres_exporter/Manifest index 5bc51b57b3b2..7ab6e44a0b86 100644 --- a/app-metrics/postgres_exporter/Manifest +++ b/app-metrics/postgres_exporter/Manifest @@ -1,4 +1,4 @@ -DIST postgres_exporter-0.10.1-deps.tar.xz 106506900 BLAKE2B 3f32d804d9bd07a91ac623656896d23bba217e2ceed90ff2fcfa19d02093912fe35008064b1248ee98a23e02efdef2761ad7c1dfc96c636d051686ed4a58eceb SHA512 842c6d519c537989cfba36961d38b1cb0e315241a88e1f53532ebf1829d31c7c17b5986680193663e4de3c5cfab3bb25f38e5c6afe6b2ab14ce2efd47a052ae7 -DIST postgres_exporter-0.10.1.tar.gz 73157 BLAKE2B bc56dfdd50878615768fc4e4a193784b73ee48cb1b2743deae21d6caf5db60e3eabe2987cee27742081bea1c506a9c96fb11808304a0007c5e2e252a1e4cb752 SHA512 75ba08354174980d55fb1deed1035323d89f3331f0c366165a0262b4081b99d083f14dbcdd7539836399d0d69a75a296cb978a42d94ff0b1c0bcb8f3933fcabc DIST postgres_exporter-0.15.0-deps.tar.xz 10107168 BLAKE2B 2c63161629b7a7aa7e4ca8332f1ad140bfd4c6d496cf860964da4b1897ca67e8716f22db35df6e0558c2764442afea657f3d3e2406762f14b88bf2266f2464f7 SHA512 91a0d8b471ef06635ee3520c8b2a15e19ebb9427356602752f0b35d87efacc129709cac50873f94305edf85149d0b9bb0b2cf6d2bfa8d1ec88e6c6a6be1f4880 DIST postgres_exporter-0.15.0.tar.gz 86818 BLAKE2B bf4b3f842c98e82c54eb8393271bd9879a93cd8f28b2fcafa09bbb907caf96c4b728139b08074f1de08295b18d61aaa29b4fb53321164c8b4fc93545f7da5b7a SHA512 332700809454dba11e1e6b9cbc46be9683925a6c692e110efa1204ce1ad1457a8d2237ee8af20f1ee6d5c663266fc1629da6f4f5ff9151faf294a26af8be7682 +DIST postgres_exporter-0.16.0-deps.tar.xz 42043172 BLAKE2B 0a7adca9f8f93e8bef092492c6b8f6478ca27c61bb31ac9b4427a11579b9a5c232996ae2c9e24d8d04daacb8a6e407468181a6a0a7871fe0b6293de28c4f3194 SHA512 f87f1d6e6a5390092b188fcf6510c54d88036ad493bc996d9b2b72941d21606cd7a14e10b9b7cb85800c7ae99400983704309b9edfddc4b9f4adf83cf8d1dde3 +DIST postgres_exporter-0.16.0.tar.gz 88742 BLAKE2B 2cb8240a350b80bb2681d65f4ba1030f47effb45e9b3e21d260e9bd8ecb8e76d05cf7523b6e0bf973c27457ac547851c71162826a4f88c52b35cce1e22fc0c24 SHA512 a4930ec95e0b5eb08712814a99662bdadbdcefd77f9950ca8ffc8015f1df09345aa7992ed2848e5aad505db249be79a0c5d0d8550a9e138f29b3a82e5229ef0e diff --git a/app-metrics/postgres_exporter/files/postgres_exporter.service b/app-metrics/postgres_exporter/files/postgres_exporter.service new file mode 100644 index 000000000000..d80f6725f7f6 --- /dev/null +++ b/app-metrics/postgres_exporter/files/postgres_exporter.service @@ -0,0 +1,14 @@ +[Unit] +Description=PostgreSQL Exporter +Documentation="https://github.com/prometheus-community/postgres_exporter" + +[Service] +User=postgres_exporter +#Environment=DATA_SOURCE_URI=localhost:5432/postgres?sslmode=disable +#Environment=DATA_SOURCE_USER=postgres +#Environment=DATA_SOURCE_PASS=password +#Environment=DATA_SOURCE_PASS_FILE=/path/to/passwordfile +ExecStart=/usr/bin/postgres_exporter + +[Install] +WantedBy=multi-user.target diff --git a/app-metrics/postgres_exporter/postgres_exporter-0.10.1.ebuild b/app-metrics/postgres_exporter/postgres_exporter-0.16.0.ebuild index 3f393e013f2f..83f78935d115 100644 --- a/app-metrics/postgres_exporter/postgres_exporter-0.10.1.ebuild +++ b/app-metrics/postgres_exporter/postgres_exporter-0.16.0.ebuild @@ -1,25 +1,29 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit go-module -GIT_COMMIT=6cff384d7433bcb1104efe3b496cd27c0658eb09 + +inherit go-module edo systemd + +GIT_COMMIT=a324fe37bca5193a293118b940b3df7ab3a8505c DESCRIPTION="PostgreSQL stats exporter for Prometheus" HOMEPAGE="https://github.com/prometheus-community/postgres_exporter" SRC_URI="https://github.com/prometheus-community/postgres_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz" -SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" +SRC_URI+=" https://dev.gentoo.org/~arthurzam/distfiles/app-metrics/${PN}/${P}-deps.tar.xz" LICENSE="Apache-2.0 BSD MIT" SLOT="0" KEYWORDS="~amd64" -DEPEND="acct-group/postgres_exporter - acct-user/postgres_exporter" +DEPEND=" + acct-group/postgres_exporter + acct-user/postgres_exporter +" RDEPEND="${DEPEND}" BDEPEND="dev-util/promu" -RESTRICT=" test " +RESTRICT="test" src_prepare() { default @@ -30,14 +34,17 @@ src_prepare() { } src_compile() { - promu build -v --prefix bin || die + edo promu build -v --prefix bin } src_install() { dobin bin/* dodoc README.md queries.yaml + newinitd "${FILESDIR}"/${PN}.initd ${PN} newconfd "${FILESDIR}"/${PN}.confd ${PN} + systemd_dounit "${FILESDIR}"/${PN}.service + keepdir /var/log/${PN} fowners ${PN}:${PN} /var/log/${PN} } diff --git a/app-metrics/prom2json/Manifest b/app-metrics/prom2json/Manifest index 698cd6719906..bf31513c6dd5 100644 --- a/app-metrics/prom2json/Manifest +++ b/app-metrics/prom2json/Manifest @@ -1 +1,3 @@ DIST prom2json-1.3.0.tar.gz 1646893 BLAKE2B 9b8fcfa4a3e45ee08a57016fa6a7611604cbb578f162f0bf7ff8338f345f98788b75c3ac047ffca95b62020e972c302bc1c44f2f7f00240cfd978f73b8d9c829 SHA512 8f02c7b2616d915e2b4ff5f195a8c2eff89d18417f7396dc02d2aa4cf34711358b0beef6effae9b42a3d6f4b0616c5d3ab995a73ab9e37a4a0ec230adff6f249 +DIST prom2json-1.4.1-deps.tar.xz 2788996 BLAKE2B b720c8d4fb0157c63873e2c15ad2adaef057ac6e6f340d25b321f9a380ee35d6d8eac153fc4cd6e75e60f0a75f6f74c17d8caaa51c46cead0e9942a2b9e29660 SHA512 47f33537a83ed0d24f49f3faa1805593ad4f848b1ff79fe19d3a6a3b2dc3a1e1587217ea7a985c6ae4eae4aca2fac2cff8773e3782c0d0e265722341d0296247 +DIST prom2json-1.4.1.tar.gz 21261 BLAKE2B 76d0f4ba6f7433fbb8701945d297df5fd011d2c62ca39c12647c114202e0a74db8d2c08808b179a5b07f08b7ec7742da238dec9b31bead6b1414b1265f495834 SHA512 4ec0aad8df3e1da4768fdf0c81c4f556589c7d84bee05ad5cf00eface323f3d8770ccb1c48b43a1598be4455307c21af3a0e62842c429ac194e34535b02fa8e8 diff --git a/app-metrics/prom2json/prom2json-1.4.1.ebuild b/app-metrics/prom2json/prom2json-1.4.1.ebuild new file mode 100644 index 000000000000..34d59e6ec49d --- /dev/null +++ b/app-metrics/prom2json/prom2json-1.4.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module edo + +GIT_COMMIT=e76e84858a35a1094458b792c631cb75867fd550 + +DESCRIPTION="A tool to scrape a Prometheus client and dump the result as JSON" +HOMEPAGE="https://github.com/prometheus/prom2json" +SRC_URI="https://github.com/prometheus/prom2json/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" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND="dev-util/promu" + +src_prepare() { + default + sed -i .promu.yml \ + -e "s/{{.Revision}}/${GIT_COMMIT}/" \ + -e "s/{{.Version}}/${PV}/" || die +} + +src_compile() { + mkdir bin || die + edo promu build --prefix bin +} + +src_test() { + emake test-flags= test +} + +src_install() { + dobin bin/* + dodoc {README,CONTRIBUTING}.md +} diff --git a/app-metrics/prometheus/prometheus-2.47.0.ebuild b/app-metrics/prometheus/prometheus-2.47.0.ebuild index 7903e5aa052c..a66bf4939f79 100644 --- a/app-metrics/prometheus/prometheus-2.47.0.ebuild +++ b/app-metrics/prometheus/prometheus-2.47.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -19,7 +19,7 @@ SRC_URI="https://github.com/prometheus/prometheus/archive/${MY_PV}.tar.gz -> ${P LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~riscv" +KEYWORDS="amd64 ~arm ~arm64 ~riscv" COMMON_DEPEND="acct-group/prometheus acct-user/prometheus" diff --git a/app-metrics/prometheus/prometheus-2.52.0.ebuild b/app-metrics/prometheus/prometheus-2.52.0.ebuild index b170685f7e08..ba8401e87264 100644 --- a/app-metrics/prometheus/prometheus-2.52.0.ebuild +++ b/app-metrics/prometheus/prometheus-2.52.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -19,7 +19,7 @@ SRC_URI="https://github.com/prometheus/prometheus/archive/${MY_PV}.tar.gz -> ${P LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~riscv" +KEYWORDS="amd64 ~arm ~arm64 ~riscv" COMMON_DEPEND="acct-group/prometheus acct-user/prometheus" diff --git a/app-metrics/pushgateway/Manifest b/app-metrics/pushgateway/Manifest index 8ba404f83dd2..e7dfdee508a2 100644 --- a/app-metrics/pushgateway/Manifest +++ b/app-metrics/pushgateway/Manifest @@ -1,2 +1,4 @@ +DIST pushgateway-1.11.0-deps.tar.xz 1519980 BLAKE2B 9d3c6a20911191da1330671cf055100e934db1d07c834ca8af8a0354fc0ded51132a677b9ff8978ac4b329c31cb4de74a1894b31ad64889a3cc34c865233ff9d SHA512 c4156845d9ea5d591acce7e232b73263a7dd01850592c570efe806d5e9a373e6374b3ac665caa4a430a39f76a81d806c8b4d267b92d1f22713a2c7a28bec82df +DIST pushgateway-1.11.0.tar.gz 4256647 BLAKE2B 2861bed8705b40772fe41e70c7e21b3f30f7a70ef4a8d2eb2283c11202f65d0d38befb778f8be8a9c9117605fc2a8b9254c20f43f73c6de675fbb7e3402627f8 SHA512 d4bb1d77cf0fb03160f3d7e05d0b570464e77d09f952e0ea1eb220d89fe60cd8599375c1230c8cd85d378ce9f32b27826a1f6cb462da9962da77c62f398ec156 DIST pushgateway-1.5.1-deps.tar.xz 28913128 BLAKE2B dc7f352a4085ff365a3039501992e7678c1c8b59d3f56ecafa4fe7e50d5693c8399edede9f994c6fca8af739d33bc5cb627b1dbfe27bd0dd63539834290f816d SHA512 82f586be350b1d5f3169adee7e88c9522e34e37de1c9741a32b824d3f9e5b3bdc914177f1a1cff722de89eebe9bd6221ad6b9c29684a348cc7ba93d8cc3c05fd DIST pushgateway-1.5.1.tar.gz 4272543 BLAKE2B 01aeda87efdbbd6c7d0c1a8676fe0798c8d97f7638ca26eb8720412eb00d2abff5c7e73d21e1c2424bd375efa8878c85642a06196e933e44ea804e6e053adbf2 SHA512 01ebcdb85f059c330195f37f9466e2042311d8196948881f07d53f1ac4c7daedf343c14856f51db274df00b652b09eb52c735f04f774baf66559697864e1f93b diff --git a/app-metrics/pushgateway/pushgateway-1.11.0.ebuild b/app-metrics/pushgateway/pushgateway-1.11.0.ebuild new file mode 100644 index 000000000000..9600ad158dd1 --- /dev/null +++ b/app-metrics/pushgateway/pushgateway-1.11.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit go-module systemd + +GIT_COMMIT="0d81964" +DESCRIPTION="Prometheus push acceptor for ephemeral and batch jobs" +HOMEPAGE="https://github.com/prometheus/pushgateway" +SRC_URI=" + https://github.com/prometheus/pushgateway/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz +" + +LICENSE="Apache-2.0 BSD BSD-2 MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv" +RESTRICT="test" +RDEPEND=" + acct-group/pushgateway + acct-user/pushgateway +" +DEPEND="${RDEPEND}" + +BDEPEND=">=dev-util/promu-0.3.0" + +src_prepare() { + default + sed -i -e 's|{{\.Revision}}|'${GIT_COMMIT}'|g' .promu.yml || die +} + +src_compile() { + mkdir -p bin || die + promu build -v --prefix bin || die +} + +src_install() { + newbin "bin/${P}" "${PN}" + dodoc {README,CHANGELOG,CONTRIBUTING}.md + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + newinitd "${FILESDIR}"/${PN}-1.initd ${PN} + newconfd "${FILESDIR}"/${PN}-1.confd ${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" + systemd_dounit "${FILESDIR}/${PN}-1.service" +} diff --git a/app-metrics/rabbitmq_exporter/Manifest b/app-metrics/rabbitmq_exporter/Manifest index f3cbbd152252..75ebbf36e29f 100644 --- a/app-metrics/rabbitmq_exporter/Manifest +++ b/app-metrics/rabbitmq_exporter/Manifest @@ -1,12 +1,2 @@ -DIST github.com-Sirupsen-logrus-78fb3852d92683dc28da6cc3d5f965100677c27d.tar.gz 38596 BLAKE2B 777c96b5da859d9db92653c922e0ee296c4d3839981389c7e31f0c92913772cbd83227420b9c5eb3de55f465d513b1b0b8fe72b07f80277bb891a127314ce45f SHA512 cb08995d0705a8999b3eec044d3efe209e4110c15da5116f364ee3fb7dba0372d47e0d35cd1cfd7e75e31fd3c867bd023e90565bbd78f4eaf2c29ebf0e53fd53 -DIST github.com-beorn7-perks-3a771d992973f24aa725d07868b467d1ddfceafb.tar.gz 10800 BLAKE2B 5487155a4d010af70b6ea2625d10ae03b6642507902d7dc168edb5d7cf0efa1777b248d0df34ed1a2564950b12613256c1c6ce1d8c9723cc34977ed883b21c8d SHA512 c6aa5df262ab607c0a5f64372fc2fec1ddda9e5624e9d9a22cdd1bc11822c99736d88bdf5e3fc6050217b5084548417cb2926c3940e156da9397d828d59ce277 -DIST github.com-golang-crypto-ff983b9c42bc9fbf91556e191cc8efb585c16908.tar.gz 1645106 BLAKE2B 3d7271479ef812761a02c1d20429800cd29706e802a8ccf57e916bdb8befc87a9b1b1a88d42adb764a32fa5f4c5f5a5e434af63812a5bcd3de625658792a49a3 SHA512 19746e84901c0749da544ba02c74c8ccabfee5f186a0d00509e54f20c191da9ea56844de988265f072af1fae671d78d741a44f782b8c1704c9da0441436c2122 -DIST github.com-golang-protobuf-347cf4a86c1cb8d262994d8ef5924d4576c5b331.tar.gz 329489 BLAKE2B 828678cee603917e7f4efee2dd0902730a73932b94b12d4f4b35f0fcecaa329cdc39c3fa9926ce3706f86cc52c0aa4984f68ee0943ecc6d9571b0175ff671ab0 SHA512 de4307b91923a6890ab2f8eaf2ed4f7f32a45a4a0cc7b0d6f53ce31c5fe3ed08f378072075456d2c99c89a3b5acbca315814b8e5ec70e6ceb0ca62f7013f618c -DIST github.com-golang-sys-2be51725563103c17124a318f1745b66f2347acb.tar.gz 1220240 BLAKE2B ae08467ca600c6f837a2b2203f2e86ecbdb14d8865bea9dd1069f30028324ca20a9a2f5b1a5dbd4323a0fe8a2aa94fd64878de37bc628f67149318ec9594614c SHA512 87e9f267c06baa2ecf6fb84cd0b092c9fea54f729c27ab86f9702f05a971cbe47f23cd03c50a4eefc90e2b2559844b56866504df64829d8fb45451e461999807 -DIST github.com-kbudde-gobert-a6daecb9ddeb548b7cfb3f5ac9deef9ded522730.tar.gz 14629 BLAKE2B 0731b1fd24ac5139f12a2a11b9f921c2afeedb78c573e7a788bcf2d95695f3212ff8a2d107c6fc6ad5045c9f4a5610a34ffcdc3b1580bc366860331b0c4731b9 SHA512 daaeea3cbe1f813e024272479b2a4af550071c82cf9261b7901279c28fe44e8d12afff707fb8a393a46396a6eaec7c6ef5da07220a85c1b70aa0a13f769bbc73 -DIST github.com-matttproud-golang_protobuf_extensions-c182affec369e30f25d3eb8cd8a478dee585ae7d.tar.gz 37541 BLAKE2B f78899afa1390aca6cb1b412271713c60107771d512ead83482e0bb1716d175b791b4b04bd24b7f469cc1a29176eadcf0545ac3bf166c5b350602420d3c05aec SHA512 141b1b781a4d1c59f5eb1af93c966343b80ed405a5f63774e6cda9f12c34536e892c7a84699d6cf2e9c775457a4c2ad5d5d0b4d302fc25a923ab81d46ad65580 -DIST github.com-prometheus-client_golang-d2ead25884778582e740573999f7b07f47e171b4.tar.gz 131949 BLAKE2B 352e0ef2bd704f6c490e57520d415e89d950241c39f3cdf851524d4cca87c25c31bf2ffb77914981cb730cb474033f4551b50c5b6085e5e273c2d29aaab1f012 SHA512 ca89d613e8bc6cff928d9ce8d3d563c8277cb31756c66d8c0e6f6b6ce00c1405d10e465245ac63fd6889aeafae0d6914814384e94e127929fbcfd606a59e42a5 -DIST github.com-prometheus-client_model-f287a105a20ec685d797f65cd0ce8fbeaef42da1.tar.gz 57203 BLAKE2B 2d56b90ced967f5f7a2c59bb330aaf8c56cf522091ee413ff27c22cb9e7d656080bd7d4dd2372938a873617054c7c98925e10fdc7996b136eaa4fd1b6482b734 SHA512 b4f900e725a638a7131eee1c6ff5bf550025b4d9e5bb2dd09149e91ce02a7aba458039c2162b6a1f9a6b6c7c8fc0fc29510b6c752caad51282a960d18860f960 -DIST github.com-prometheus-common-2998b132700a7d019ff618c06a234b47c1f3f681.tar.gz 87368 BLAKE2B fc6c6e197d4cc61afefa9fb8e3a8d6b36ab029f62e3cf9adf8359e4885554f94427f17218d45c90c9d7f4a6985b2e4143a4d304d39f806bd70d2c6f05de29bc2 SHA512 b2095da96596fc500ece6b331cda2558f8c813720853f2489aee3dec65de95eb13f7b0853e3812433fdc040f16990d2f05b2a6b8b41275210c504ff333ca625d -DIST github.com-prometheus-procfs-b1a0a9a36d7453ba0f62578b99712f3a6c5f82d1.tar.gz 61720 BLAKE2B 2f9b25506527aaf6e1bf560a1b680b958d1281acbaa2bb896bfea50b5b7de8992d10e8e812f8ae449ab67145c88179c15afe1f719851d1717b28963071088082 SHA512 5938b4a8fa9a5ee32be995fed0d0e6b26941765470aca4eda63a7c42db457e83da43fde2f33b2d4ded3545e5643f607ec7060406b0a1b15e64cc732bb2badd4a -DIST rabbitmq_exporter-0.29.0.tar.gz 36950 BLAKE2B c4e10acb4fb610725dfc82c227ccf79ca60ffc30cd6c3f4ff741020cd7d2a757895af046bc2ded8a9b6a8c3fec870abb746e0f363e12d5221ccbce4b0fa6ca3c SHA512 8806e4a0c62126ef3575be2d558663165c04bf9b94a865d078e1ca92c0bb2d4ab057f6c37993236ab2327c1932bcf155c90ce9729924a06066da74e68086485d +DIST rabbitmq_exporter-1.0.0-deps.tar.xz 9804184 BLAKE2B 3b3ff8a2911104f708f4c3b7272648bf4a36ee06251216bf91e5bb5591c8aba6a5d0f392494e597d83ef0850f821a25388b2546cbb65039cf8a2451076344e7f SHA512 1ae21e35f9762a2c45c69c382a01367f425b5e5faa0a421d2f5c1ad98356915447ea0f76b15cb65a4816506e7753d8c60836479b5760d21db643d309b9567d9d +DIST rabbitmq_exporter-1.0.0.tar.gz 59708 BLAKE2B 1caff29efe8b5d41089587c0a35c4ec581eada54f8a54fdc308e3d3200dcff8c5cff9ebe0f6b10d026af28484c931ac9c9c01285d0b37714002b4fb5f13c47ee SHA512 29592c9ca1d8b67efbdfb44c5c1f881977a74e4e9aabb44903d5afd5c10696202198ac02b84beb90853f8927cd05abcf8f4ff43a467a8f22b1c8af00df0a52b2 diff --git a/app-metrics/rabbitmq_exporter/rabbitmq_exporter-0.29.0-r1.ebuild b/app-metrics/rabbitmq_exporter/rabbitmq_exporter-0.29.0-r1.ebuild deleted file mode 100644 index 9fede10a764d..000000000000 --- a/app-metrics/rabbitmq_exporter/rabbitmq_exporter-0.29.0-r1.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -EGO_PN=github.com/kbudde/rabbitmq_exporter -EGO_VENDOR=( - "github.com/kbudde/gobert a6daecb9ddeb548b7cfb3f5ac9deef9ded522730" - "github.com/prometheus/client_model f287a105a20ec685d797f65cd0ce8fbeaef42da1" - "github.com/prometheus/common 2998b132700a7d019ff618c06a234b47c1f3f681" - "github.com/prometheus/client_golang d2ead25884778582e740573999f7b07f47e171b4" - "github.com/prometheus/procfs b1a0a9a36d7453ba0f62578b99712f3a6c5f82d1" - "github.com/matttproud/golang_protobuf_extensions c182affec369e30f25d3eb8cd8a478dee585ae7d" - "github.com/golang/protobuf 347cf4a86c1cb8d262994d8ef5924d4576c5b331" - "github.com/beorn7/perks 3a771d992973f24aa725d07868b467d1ddfceafb" - "github.com/Sirupsen/logrus 78fb3852d92683dc28da6cc3d5f965100677c27d" - "golang.org/x/crypto ff983b9c42bc9fbf91556e191cc8efb585c16908 github.com/golang/crypto" - "golang.org/x/sys 2be51725563103c17124a318f1745b66f2347acb github.com/golang/sys" -) - -inherit golang-build golang-vcs-snapshot - -DESCRIPTION="Rabbitmq exporter for Prometheus" -HOMEPAGE="https://github.com/kbudde/rabbitmq_exporter" -SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz - ${EGO_VENDOR_URI}" -LICENSE="MIT Apache-2.0 BSD" -SLOT="0" -KEYWORDS="~amd64" - -DEPEND="acct-group/rabbitmq_exporter - acct-user/rabbitmq_exporter" - RDEPEND="${DEPEND}" -BDEPEND="dev-util/promu" - -RESTRICT+=" test " - -src_prepare() { - default - sed -i -e "/-s$/d" -e "s/{{.Revision}}/v${PV}/" 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/${PN} - dodoc *.md - popd || die - newconfd "${FILESDIR}"/${PN}.confd ${PN} - newinitd "${FILESDIR}"/${PN}.initd ${PN} - keepdir /var/log/${PN} - fowners ${PN}:${PN} /var/log/${PN} -} diff --git a/app-metrics/rabbitmq_exporter/rabbitmq_exporter-1.0.0.ebuild b/app-metrics/rabbitmq_exporter/rabbitmq_exporter-1.0.0.ebuild new file mode 100644 index 000000000000..8f47d4555b87 --- /dev/null +++ b/app-metrics/rabbitmq_exporter/rabbitmq_exporter-1.0.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="Rabbitmq exporter for Prometheus" +HOMEPAGE="https://github.com/kbudde/rabbitmq_exporter" +SRC_URI="https://github.com/kbudde/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" + +LICENSE="MIT Apache-2.0 BSD" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="acct-group/rabbitmq_exporter + acct-user/rabbitmq_exporter" + RDEPEND="${DEPEND}" + +RESTRICT+=" test " + +src_compile() { + ego build . +} + +src_install() { + dobin ${PN} + dodoc *.md + insinto /usr/share/${PN} + doins *.json + newconfd "${FILESDIR}"/${PN}.confd ${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} +} diff --git a/app-metrics/redis_exporter/Manifest b/app-metrics/redis_exporter/Manifest index 3b154bbebc05..1157dbafd958 100644 --- a/app-metrics/redis_exporter/Manifest +++ b/app-metrics/redis_exporter/Manifest @@ -1,2 +1,4 @@ DIST redis_exporter-1.61.0-deps.tar.xz 815816 BLAKE2B b57f1d3094e3e03f990a5b26b75d95621d55cdd519882689c640e90b76750b4f7de7d48ebc7dd8456af33e14be14a07644211921667d2ba6b16a5f2567fc8430 SHA512 176442e32ec79f8621f57712a2658398f9481f0ddb1c104881305f6cfa36b74833b53078355d7fdd5e4a3d13f546fdfb844d5faf7dc5e38763f7f17228de4d68 DIST redis_exporter-1.61.0.tar.gz 82438 BLAKE2B fe62e6c56206718eaf908de913dcb80dd9e27825dfc74b2f9bef3d4c914b75cfe0223924b852e8b99421ccbd0a3618bc9f9a0aea8c9a7733bcb95221731f7f97 SHA512 2528be4680b5cb2b1a1077a3a28ddac8f5a8a4a2b936504553cb218e8c53f8a9d9e52a9266c247f85bda03ae76eec90dbc9ab9bcc8df828d5850538e818d8188 +DIST redis_exporter-1.67.0-deps.tar.xz 955620 BLAKE2B d319e605a8685ec2a8dc441d42346009c019eabb385c758d8a7f09bff37ebe6c158f9a04353fdac51821b54dcdbee873bc747ae008d3dc2148e153eaeaa154d8 SHA512 e1dae9c1e941aaff88769008d70811c22d4ec2946076d43b74269a5fb6b1b12aa8bc0c73e114cf9ec9ecafe6b9af6ef8b0236fe6b3788bdfe7f94241785c6bfd +DIST redis_exporter-1.67.0.tar.gz 87552 BLAKE2B d97f181f95b8ac44292892c6df031762fcea79eb8a06a224346152631ce18a5229d9ef14b53893709b83933053a8e47bedff52040a07849704b29961b1f69b54 SHA512 5acb905cf8b41c95013d917754837066e4c68535414c1459b985cea901c4cb1ab347be5715fec9d1306810915c4bcac2e4aea4a9fbf64403921b5ef30c6ab1a2 diff --git a/app-metrics/redis_exporter/redis_exporter-1.67.0.ebuild b/app-metrics/redis_exporter/redis_exporter-1.67.0.ebuild new file mode 100644 index 000000000000..9c0c9e913b87 --- /dev/null +++ b/app-metrics/redis_exporter/redis_exporter-1.67.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module systemd +EGIT_COMMIT=e2bb7fd6af3b950efa3267e4b932531098dc06b0 + +DESCRIPTION="Prometheus Exporter for Redis Metrics. Supports Redis 2.x, 3.x and 4.x" +HOMEPAGE="https://github.com/oliver006/redis_exporter" +SRC_URI="https://github.com/oliver006/redis_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz" + +LICENSE="MIT Apache-2.0 BSD" +SLOT="0" +KEYWORDS="~amd64" +RDEPEND=" + acct-user/redis_exporter + acct-group/redis_exporter" +DEPEND="${RDEPEND}" +RESTRICT="test" + +src_unpack() { + default +} + +src_prepare() { + ln -sv ../vendor ./ || die + default + sed -e "s|\(^[[:space:]]*VERSION[[:space:]]*=[[:space:]]*\).*|\1\"${PV}\"|" \ + -e "s|\(^[[:space:]]*BUILD_DATE[[:space:]]*=[[:space:]]*\).*|\1\"$(LC_ALL=C date -u)\"|" \ + -e "s|\(^[[:space:]]*COMMIT_SHA1[[:space:]]*=[[:space:]]*\).*|\1\"${EGIT_COMMIT}\"|" \ + -i main.go || die +} + +src_compile() { + export GOBIN="${S}/bin" + go install \ + -ldflags="-X main.BuildVersion=${PV} -X main.BuildCommitSha=${EGIT_COMMIT} -X main.BuildDate=$(date +%F-%T)" \ + ./... || die +} + +src_test() { + go test -work ./... || die +} + +src_install() { + dobin "${GOBIN}/redis_exporter" + dodoc README.md + local dir + for dir in /var/{lib,log}/${PN}; do + keepdir "${dir}" + fowners ${PN}:${PN} "${dir}" + done + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" +} diff --git a/app-metrics/uwsgi_exporter/Manifest b/app-metrics/uwsgi_exporter/Manifest index 5e156c4c575c..2c11e8d76412 100644 --- a/app-metrics/uwsgi_exporter/Manifest +++ b/app-metrics/uwsgi_exporter/Manifest @@ -1,3 +1,2 @@ -DIST uwsgi_exporter-0.8.0.tar.gz 3040547 BLAKE2B 5b6769487b3a08752cdff9dccc727096bc6b9d49e12e8aa35d04bbd0c3534503c19a4dda882c7efd7409549f3cae750021fa7ce87d12b798a2998efcdfc9f1cf SHA512 a5a1439f554749c7db4857651a11cbbf0ad0a0a8da0ffd421e374fe08194ba289a6bb04a95e4169ba6a75d0358c7a96e5b9f3cc5813cc39004f81dce42edb3ed DIST uwsgi_exporter-1.1.0-deps.tar.xz 6393556 BLAKE2B ce75723b9de728560fc367c31b8f70498ffda083f1aa3ed138aaed37d540ed4b05681c022c63bd3f8aa6c1bf9d9e7fc7e6f947c556794b5d65724b1ff95ceb60 SHA512 e5140951a895981eb85be571035e017b3d3a344cb074a40b693f46e25d9355192debecb9710afb4952cbfe6beb62741ddca2c16ac5454df8643927400e3f2d6b DIST uwsgi_exporter-1.1.0.tar.gz 39335 BLAKE2B af7fc7ba6d2479467e4b0b90c469fd3a3de1d967b1f4130ce54b5db5bec4dcf910687cf375dcc98a6b68463831d49117e23f589d03d37579b2d83b33a74b519f SHA512 62db351903f6876efea60cc25bea1560b5061ecdf6ca1f113bfa51a745d1524b397350cc2bd0e720aab9357f4f9f6dbca0285eb41ed9cdabebeb4f4176d9c652 diff --git a/app-metrics/uwsgi_exporter/uwsgi_exporter-0.8.0-r1.ebuild b/app-metrics/uwsgi_exporter/uwsgi_exporter-0.8.0-r1.ebuild deleted file mode 100644 index 5be77e4e77ed..000000000000 --- a/app-metrics/uwsgi_exporter/uwsgi_exporter-0.8.0-r1.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit golang-build golang-vcs-snapshot systemd - -ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" -EGIT_COMMIT="v${PV/_rc/-rc.}" -EGO_PN="github.com/timonwong/uwsgi_exporter" -UWSGI_EXPORTER_COMMIT="ddbc18f" - -DESCRIPTION="uWSGI metrics exporter for prometheus.io" -HOMEPAGE="https://github.com/timonwong/uwsgi_exporter" -SRC_URI="${ARCHIVE_URI}" - -LICENSE="Apache-2.0 BSD ISC MIT" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - acct-group/uwsgi_exporter - acct-user/uwsgi_exporter -" - -DEPEND=" - ${RDEPEND} - dev-util/promu -" - -src_prepare() { - default - sed -e "s/{{.Revision}}/${UWSGI_EXPORTER_COMMIT}/" -i 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/uwsgi_exporter - dodoc README.md - popd || die - local dir - for dir in /var/log/${PN}; do - keepdir "${dir}" - fowners ${PN}:${PN} "${dir}" - done - newinitd "${FILESDIR}"/${PN}.initd ${PN} - newconfd "${FILESDIR}"/${PN}.confd ${PN} - insinto /etc/logrotate.d - newins "${FILESDIR}/${PN}.logrotated" "${PN}" - systemd_dounit "${FILESDIR}/${PN}.service" -} diff --git a/app-metrics/vault_exporter/Manifest b/app-metrics/vault_exporter/Manifest index 2bd4e869f9fb..3abe5684690a 100644 --- a/app-metrics/vault_exporter/Manifest +++ b/app-metrics/vault_exporter/Manifest @@ -1 +1,2 @@ -DIST vault_exporter-0.1.2.tar.gz 34555506 BLAKE2B 53178f8a16fceca442e38a756081cca438abdd786960de3dae073f3ce5f2ac2c5d06684ec56e48a2057b4a2161a25527b41c36d3705a054f0bae37357f33faee SHA512 71941c17d7146861a09ed48289efe15143d3fba18e56accdfdf977bf4443bb650e7201a4870b63793d372dcca8f53a04131c12803f019efbdcac9e0ca8909cbd +DIST vault_exporter-0.1.3-deps.tar.xz 19727436 BLAKE2B acabd1e3080e068d0c59f6485184bcf4736e4f02e2391ea761ad25cb1ba80122cd9fbeea3e72bcc6341e595b861999b07bdedffc846c076ec2c0c80f7012966c SHA512 bfa6077d71e8b3c8768e2d86b117de58a275daf856ede27c1bca099b88b299ad03f3f73dbbbae21869fe054b2907c0f199529860dbdd8f2acad20ee544ca0ce3 +DIST vault_exporter-0.1.3.tar.gz 184621 BLAKE2B 90f80e5e8258110ac2e29a8b6d845b0de220acf67c36c627f7c0f433a8ffe992aebea3d95cb3ef6b4fd286739f71e76fcbb581e329534709d5a8f84ae73901ce SHA512 002c481d87b97e7e884473fe660b3d3b9b98077e11f02f125e99735634bd33f0d46be04919a8423e345ba3064ef1b1f3a28c9e890aab95adcd44c22dde5cfd94 diff --git a/app-metrics/vault_exporter/vault_exporter-0.1.2-r1.ebuild b/app-metrics/vault_exporter/vault_exporter-0.1.3.ebuild index 4f8185cc0e8c..a374a536dd40 100644 --- a/app-metrics/vault_exporter/vault_exporter-0.1.2-r1.ebuild +++ b/app-metrics/vault_exporter/vault_exporter-0.1.3.ebuild @@ -1,16 +1,15 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -EGO_PN="github.com/grapeshot/vault_exporter" +inherit go-module MY_PV="${PV/_/}" -inherit golang-build golang-vcs-snapshot - DESCRIPTION="Vault exporter for Prometheus" -HOMEPAGE="https://github.com/grapeshot/vault_exporter" -SRC_URI="https://${EGO_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE="https://github.com/talend/vault_exporter" +SRC_URI="https://github.com/talend/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" LICENSE="Apache-2.0 BSD MIT MPL-2.0" SLOT="0" @@ -24,20 +23,16 @@ RDEPEND=" BDEPEND="${RDEPEND}" src_compile() { - pushd "src/${EGO_PN}" || die - GOPATH="${S}" emake build - popd || die + ego build -ldflags '-d -s -w' -tags netgo -installsuffix netgo -v -x . } src_install() { - pushd "src/${EGO_PN}" || die - newbin _output/bin/vault_exporter-v${PV}* vault_exporter - dodoc README.md - popd || die - - keepdir /var/log/vault_exporter - fowners vault_exporter:vault_exporter /var/log/vault_exporter - + dobin ${PN} + dodoc *.md + insinto /usr/share/${PN} + doins -r vault-mixin newinitd "${FILESDIR}"/vault_exporter.initd vault_exporter newconfd "${FILESDIR}"/vault_exporter.confd vault_exporter + keepdir /var/log/vault_exporter + fowners vault_exporter:vault_exporter /var/log/vault_exporter } |