diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-09 00:01:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-09 00:01:03 +0100 |
commit | a0ce545d52f231499bf9f3644493113d8af58ec9 (patch) | |
tree | 4d67c09eed0c2ae28d1317f72d7f7b08b4f6aeea /app-metrics | |
parent | 5181ced3f3566a9610b85922b083c8f84f20d78f (diff) |
gentoo auto-resync : 09:05:2024 - 00:01:03
Diffstat (limited to 'app-metrics')
-rw-r--r-- | app-metrics/Manifest.gz | bin | 7118 -> 7124 bytes | |||
-rw-r--r-- | app-metrics/node_exporter/Manifest | 5 | ||||
-rw-r--r-- | app-metrics/node_exporter/node_exporter-1.8.0.ebuild | 74 | ||||
-rw-r--r-- | app-metrics/node_exporter/node_exporter-9999.ebuild | 7 |
4 files changed, 81 insertions, 5 deletions
diff --git a/app-metrics/Manifest.gz b/app-metrics/Manifest.gz Binary files differindex fc25d44eb589..807288198eda 100644 --- a/app-metrics/Manifest.gz +++ b/app-metrics/Manifest.gz diff --git a/app-metrics/node_exporter/Manifest b/app-metrics/node_exporter/Manifest index 350b7cdfdb01..e5921ba7b022 100644 --- a/app-metrics/node_exporter/Manifest +++ b/app-metrics/node_exporter/Manifest @@ -5,7 +5,10 @@ AUX node_exporter.confd 111 BLAKE2B bb40370633c41a4f1283677ed16ad9734c7f180683e4 AUX node_exporter.initd-1 674 BLAKE2B e33c8ba727f82ccdf166a836c31364a6f41f5445a05b518e92c5b4ecada75dccf97fdfc93ed4f65757f3b5d9716f650e9e5779cdb1c79d6a1a67f15f1edbced1 SHA512 6f51a4c4b1c7381fc92e47d1ca4434d1b3839ff15af1c16c47374cd2b96d615937bcd13470bff16d067b05b79bdfa94b018f5e986222dc0e5a932de765216bba 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 EBUILD node_exporter-1.7.0-r2.ebuild 1884 BLAKE2B b446559b3c28c9a9e1dd311b0fa93a6813d632965ddbe01577b015e335e718f15f1cf406a78c020fc889c916f8e3a23cd6309cd3e88de34c18cc61deee207c4b SHA512 7b72066b5fe96dc03359ccf4fd5b8a1536846fdacbf379e7f61e34a634093f42bd6264d2e17490ddadab6d2a16b084998dd9d4011ea23e72fe55b670d428a4cb EBUILD node_exporter-1.7.0.ebuild 1943 BLAKE2B f4f7dd6f5b6e6eba320357442c4909f93f334d21273ae29eccc611039d4ccd8c8de960a47e8eda5d47ca031733cc7114530c50bc1a8161f37d90742e22c420cc SHA512 4357f81b0b40a88b4fb19b04340d07c9d7225cf3ff247f0ee05807ec14a7496913445354d89ea91b82041205f9f0f7ee8ed21c9eac71537990e3a00fb2b17231 -EBUILD node_exporter-9999.ebuild 1884 BLAKE2B b446559b3c28c9a9e1dd311b0fa93a6813d632965ddbe01577b015e335e718f15f1cf406a78c020fc889c916f8e3a23cd6309cd3e88de34c18cc61deee207c4b SHA512 7b72066b5fe96dc03359ccf4fd5b8a1536846fdacbf379e7f61e34a634093f42bd6264d2e17490ddadab6d2a16b084998dd9d4011ea23e72fe55b670d428a4cb +EBUILD node_exporter-1.8.0.ebuild 1787 BLAKE2B 058b9e8b6dfa75860dbf4ed4e254b34e132e111c544aed5a7fc806be0a222f0526ac442b9992620317eabcb6cb9c41c8357afb94e57efbab245b60b364a5f8e4 SHA512 c702189d230078bbe19de2b3c77b5b6d2841bc1b7fe945052b0f7122a4aa1e222a4d71e87d7334a886661bb19855c2cf1bdf8281ca0e04914f1ec37191b3af76 +EBUILD node_exporter-9999.ebuild 1787 BLAKE2B 058b9e8b6dfa75860dbf4ed4e254b34e132e111c544aed5a7fc806be0a222f0526ac442b9992620317eabcb6cb9c41c8357afb94e57efbab245b60b364a5f8e4 SHA512 c702189d230078bbe19de2b3c77b5b6d2841bc1b7fe945052b0f7122a4aa1e222a4d71e87d7334a886661bb19855c2cf1bdf8281ca0e04914f1ec37191b3af76 MISC metadata.xml 831 BLAKE2B eba45344fe1d19be5656038d109827066f0aef5fa9f1338bca84217b98a880f232f5459bf017a661334cf8ec4221b749cd4feab8f166d027ceb77ab67a38a70c SHA512 3654c7f6cbe75997ad120d3470691125daa51d1d4be531e12026ddf1313c4cce07d05bba6d48b67ebd19931a47d5a2ec79d8f0c4c2ca8314928c32574e136747 diff --git a/app-metrics/node_exporter/node_exporter-1.8.0.ebuild b/app-metrics/node_exporter/node_exporter-1.8.0.ebuild new file mode 100644 index 000000000000..8f35f716feb4 --- /dev/null +++ b/app-metrics/node_exporter/node_exporter-1.8.0.ebuild @@ -0,0 +1,74 @@ +# 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" + +COMMON_DEPEND=" + acct-group/node_exporter + acct-user/node_exporter + selinux? ( sec-policy/selinux-node_exporter ) +" +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 + default + fi +} + +src_prepare() { + [[ ${PV} != 9999* ]] && { ln -sv ../vendor ./ || die ; } + default +} + +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-9999.ebuild b/app-metrics/node_exporter/node_exporter-9999.ebuild index 9e3f1d237576..8f35f716feb4 100644 --- a/app-metrics/node_exporter/node_exporter-9999.ebuild +++ b/app-metrics/node_exporter/node_exporter-9999.ebuild @@ -22,13 +22,12 @@ LICENSE="Apache-2.0" # deps LICENSE+=" BSD BSD-2 MIT" SLOT="0" -IUSE="selinux systemd" +IUSE="selinux" 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}" @@ -39,13 +38,13 @@ src_unpack() { git-r3_src_unpack go-module_live_vendor else - go-module_src_unpack + default fi } src_prepare() { + [[ ${PV} != 9999* ]] && { ln -sv ../vendor ./ || die ; } default - use systemd && { sed -i -e "s|defaultDisabled|defaultEnabled|g;" collector/systemd_linux.go || die; } } src_compile() { |