From c035b2b83f0e94c4b2e82184f00bcef874e6276b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 11 May 2024 00:01:23 +0100 Subject: gentoo auto-resync : 11:05:2024 - 00:01:22 --- net-analyzer/netdata/Manifest | 7 +- .../netdata/files/netdata-1.45.3-dbengine.patch | 13 -- net-analyzer/netdata/metadata.xml | 2 - net-analyzer/netdata/netdata-1.45.3.ebuild | 165 --------------------- net-analyzer/netdata/netdata-1.45.4.ebuild | 163 ++++++++++++++++++++ 5 files changed, 166 insertions(+), 184 deletions(-) delete mode 100644 net-analyzer/netdata/files/netdata-1.45.3-dbengine.patch delete mode 100644 net-analyzer/netdata/netdata-1.45.3.ebuild create mode 100644 net-analyzer/netdata/netdata-1.45.4.ebuild (limited to 'net-analyzer/netdata') diff --git a/net-analyzer/netdata/Manifest b/net-analyzer/netdata/Manifest index ee32ecc1774a..4b10642c63af 100644 --- a/net-analyzer/netdata/Manifest +++ b/net-analyzer/netdata/Manifest @@ -1,5 +1,4 @@ -AUX netdata-1.45.3-dbengine.patch 464 BLAKE2B 93c9fb255d83fc81efa91de5a03f8e1bcd50de1a833d3ef9f27ca48d7354145af3fa0302064bdbdd461e83b32f52ef8e1e7d93c871cc79e0d7f1a959d26e9dc7 SHA512 dd792d2c64529f2847ce923051e9e33a355aefff34966efef9ef2e89de30287bcf24dd58e721739a857f55add7fb3de65a32ff4c6ab0bc40c98474f29eedb57a -DIST netdata-1.45.3.tar.gz 74876663 BLAKE2B 2e181daea72b9f03c74bc8f8a4dac81f0915a080295b914486d8aa732742099a7758795386b27576693723e1990455d0d869ed21150a41ebae030714ee339ca9 SHA512 5d293949632caa8660632247460d08300123c1375e1f24f759ebe16fc40a7e35afe04f948bf431819076f82d9fff315d45a42db582636e89b351b167d7e64498 -EBUILD netdata-1.45.3.ebuild 4377 BLAKE2B 9ea71270e30308e91cb25c5d23ed13bce72f00278a6300669438e5e53120c217e7f0fd6b7e8a15abcb994b9d9ac72ebe3e8731d9eb95c5423bd4ca53f9ffe162 SHA512 09f63cfb4477bbe80eb378893813b461695e33fbed2b382c0a61ded8da429ded9d7c814bd9227074225eae8a9d0938b5ca5c6546f378356de482fa61316cb6cf +DIST netdata-1.45.4.tar.gz 74881136 BLAKE2B e6184458a8b7e4430fb3e11543812f00652712c0c78d3ffb2f040adf649ceb4b01b4984165e489dfbea5c2207b702319fd5f3fb0d6d420e8973a20e54f3555b9 SHA512 44ab814c1dfb8c70880a363abbf29115189da366a49df953665dc2831da389e46ac2e33c288ebdbb10478f66180d0243d1b848a2f94043449198a87d9ad06340 +EBUILD netdata-1.45.4.ebuild 4330 BLAKE2B f5ab535f2c5123de9a75e2456a84a57470d6e2980618d4552e898912245986ef1db79738d7ff5b1c572013539e11228bf4f7d75b6cc82bc04a36a74077a7d930 SHA512 95b61beaac0758a412c88af158f72bb89e1bf130e081c80bfbf337a95089bafc84a65685490356ffe997dcad742f13b1a10bbcb8d6d2f5da144d094920c6e05e EBUILD netdata-9999.ebuild 4330 BLAKE2B f5ab535f2c5123de9a75e2456a84a57470d6e2980618d4552e898912245986ef1db79738d7ff5b1c572013539e11228bf4f7d75b6cc82bc04a36a74077a7d930 SHA512 95b61beaac0758a412c88af158f72bb89e1bf130e081c80bfbf337a95089bafc84a65685490356ffe997dcad742f13b1a10bbcb8d6d2f5da144d094920c6e05e -MISC metadata.xml 1512 BLAKE2B 321d3c1be16a0fd3c64d89f96c510d68ea82fca12730183d2724f7a0f30fdcb94c2be2749a6f9651ae7effdf7c250e977f95cf03c865a20e03e136456429c2b3 SHA512 4bd5583efd1fee4a0f221708fedf6dcf424639852842c8ba1089a2303a57ae58ccfd302fc5fcbfdada65a56efa8c7c949b95eedde0133a770ef68ca6688bbefd +MISC metadata.xml 1357 BLAKE2B d7b8f45aaa7dc92cc61e5452f883069997f571d6461572430786f85783d3ed42a23f079818da95495eb3a613eb7107ab3509eddda317f728a0a21e5f8dad98a9 SHA512 ee5f106689c754cb4dc679eba1a00d69c0df858146b168f5a02faac794a8b21cfcadee316e9fbfa26433ed16eb3c56ddb8cdc70d950882be1aada7433795d2d0 diff --git a/net-analyzer/netdata/files/netdata-1.45.3-dbengine.patch b/net-analyzer/netdata/files/netdata-1.45.3-dbengine.patch deleted file mode 100644 index 66392c9b7203..000000000000 --- a/net-analyzer/netdata/files/netdata-1.45.3-dbengine.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/src/daemon/main.c -+++ b/src/daemon/main.c -@@ -1520,8 +1520,9 @@ - - // set defaults for dbegnine unittest - config_set(CONFIG_SECTION_DB, "dbengine page type", "gorilla"); -+#ifdef ENABLE_DBENGINE - default_rrdeng_disk_quota_mb = default_multidb_disk_quota_mb = 256; -- -+#endif - if (sqlite_library_init()) - return 1; - diff --git a/net-analyzer/netdata/metadata.xml b/net-analyzer/netdata/metadata.xml index ea8a63a7fd26..f8b7fb9f0721 100644 --- a/net-analyzer/netdata/metadata.xml +++ b/net-analyzer/netdata/metadata.xml @@ -9,10 +9,8 @@ Enable Agent-Cloud Link (ACLK) for securely connecting a Netdata Agent to your web browser through Netdata Cloud Enable the extended Berkeley Packet Filter (eBPF) collector to monitor kernel-level metrics about applications with per-second granularity Enable Netdata Cloud support - Enable compression via zlib Enable the Netdata database engine Install sys-apps/ipmitool required for monitoring IPMI sensors. - Enable optimization of JSON using dev-libs/json-c Enable support for the mongodb backend Enable the nfacct plugin Enable use of nodejs (which some plugins use) diff --git a/net-analyzer/netdata/netdata-1.45.3.ebuild b/net-analyzer/netdata/netdata-1.45.3.ebuild deleted file mode 100644 index e7d91907df53..000000000000 --- a/net-analyzer/netdata/netdata-1.45.3.ebuild +++ /dev/null @@ -1,165 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 -PYTHON_COMPAT=( python{3_9,3_10,3_11} ) - -inherit cmake fcaps flag-o-matic linux-info optfeature python-single-r1 systemd - -if [[ ${PV} == *9999 ]] ; then - EGIT_REPO_URI="https://github.com/netdata/${PN}.git" - inherit git-r3 -else - SRC_URI="https://github.com/netdata/${PN}/releases/download/v${PV}/${PN}-v${PV}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/${PN}-v${PV}" - KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" -fi - -DESCRIPTION="Linux real time system monitoring, done right!" -HOMEPAGE="https://github.com/netdata/netdata https://my-netdata.io/" - -LICENSE="GPL-3+ MIT BSD" -SLOT="0" -IUSE="aclk bpf cloud cups +dbengine ipmi mongodb mysql nfacct nodejs postgres prometheus +python systemd tor xen" -REQUIRED_USE=" - mysql? ( python ) - python? ( ${PYTHON_REQUIRED_USE} ) - tor? ( python )" - -# most unconditional dependencies are for plugins.d/charts.d.plugin: -RDEPEND=" - acct-group/netdata - acct-user/netdata - app-misc/jq - >=app-shells/bash-4:0 - || ( - net-analyzer/openbsd-netcat - net-analyzer/netcat - ) - net-libs/libwebsockets - net-misc/curl - net-misc/wget - sys-apps/util-linux - app-alternatives/awk - sys-libs/libcap - cups? ( net-print/cups ) - app-arch/lz4:= - app-arch/zstd:= - app-arch/brotli:= - dbengine? ( - dev-libs/judy - dev-libs/openssl:= - ) - dev-libs/libpcre2:= - dev-libs/libuv:= - dev-libs/libyaml - dev-libs/protobuf:= - bpf? ( virtual/libelf:= ) - sys-libs/zlib - ipmi? ( sys-libs/freeipmi ) - dev-libs/json-c:= - mongodb? ( dev-libs/mongo-c-driver ) - nfacct? ( - net-firewall/nfacct - net-libs/libmnl:= - ) - nodejs? ( net-libs/nodejs ) - prometheus? ( - app-arch/snappy:= - dev-libs/protobuf:= - ) - python? ( - ${PYTHON_DEPS} - $(python_gen_cond_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') - mysql? ( $(python_gen_cond_dep 'dev-python/mysqlclient[${PYTHON_USEDEP}]') ) - postgres? ( $(python_gen_cond_dep 'dev-python/psycopg:2[${PYTHON_USEDEP}]') ) - tor? ( $(python_gen_cond_dep 'net-libs/stem[${PYTHON_USEDEP}]') ) - ) - xen? ( - app-emulation/xen-tools - dev-libs/yajl - ) - systemd? ( sys-apps/systemd )" -DEPEND="${RDEPEND} - virtual/pkgconfig" - -PATCHES=( "${FILESDIR}/${P}-dbengine.patch" ) - -FILECAPS=( - 'cap_dac_read_search,cap_sys_ptrace+ep' - 'usr/libexec/netdata/plugins.d/apps.plugin' - 'usr/libexec/netdata/plugins.d/debugfs.plugin' -) - -pkg_setup() { - use python && python-single-r1_pkg_setup - linux-info_pkg_setup -} - -src_configure() { - # -Werror=strict-aliasing - # https://bugs.gentoo.org/927174 - # https://github.com/netdata/netdata/issues/17321 - # - # Do not trust with LTO either. - append-flags -fno-strict-aliasing - filter-lto - - local mycmakeargs=( - -DCMAKE_DISABLE_FIND_PACKAGE_Git=TRUE - -DCMAKE_INSTALL_PREFIX=/ - -DENABLE_ACLK=$(usex aclk) - -DENABLE_CLOUD=$(usex cloud) - -DENABLE_DBENGINE=$(usex dbengine) - -DENABLE_PLUGIN_CUPS=$(usex cups) - -DENABLE_PLUGIN_NFACCT=$(usex nfacct) - -DENABLE_PLUGIN_FREEIPMI=$(usex ipmi) - -DENABLE_EXPORTER_MONGODB=$(usex mongodb) - -DENABLE_EXPORTER_PROMETHEUS_REMOTE_WRITE=$(usex prometheus) - -DENABLE_PLUGIN_XENSTAT=$(usex xen) - -DENABLE_PLUGIN_EBPF=$(usex bpf) - -DENABLE_PLUGIN_GO=FALSE - -DENABLE_PLUGIN_SYSTEMD_JOURNAL=$(usex systemd) - ) - cmake_src_configure -} - -src_install() { - cmake_src_install - - rm -rf "${D}/var/cache" || die - rm -rf "${D}/var/run" || die - - keepdir /var/log/netdata - fowners -Rc netdata:netdata /var/log/netdata - keepdir /var/lib/netdata - keepdir /var/lib/netdata/registry - keepdir /var/lib/netdata/cloud.d - fowners -Rc netdata:netdata /var/lib/netdata - - newinitd "${D}/usr/lib/netdata/system/openrc/init.d/netdata" "${PN}" - newconfd "${D}/usr/lib/netdata/system/openrc/conf.d/netdata" "${PN}" - systemd_newunit "${D}/usr/lib/netdata/system/systemd/netdata.service.v235" netdata.service - systemd_dounit "${D}/usr/lib/netdata/system/systemd/netdata-updater.service" - systemd_dounit "${D}/usr/lib/netdata/system/systemd/netdata-updater.timer" - insinto /etc/netdata - doins system/netdata.conf -} - -pkg_postinst() { - fcaps_pkg_postinst - - if use nfacct ; then - fcaps 'cap_net_admin' 'usr/libexec/netdata/plugins.d/nfacct.plugin' - fi - - if use xen ; then - fcaps 'cap_dac_override' 'usr/libexec/netdata/plugins.d/xenstat.plugin' - fi - - if use ipmi ; then - fcaps 'cap_dac_override' 'usr/libexec/netdata/plugins.d/freeipmi.plugin' - fi - - optfeature "go.d external plugin" net-analyzer/netdata-go-plugin -} diff --git a/net-analyzer/netdata/netdata-1.45.4.ebuild b/net-analyzer/netdata/netdata-1.45.4.ebuild new file mode 100644 index 000000000000..0d57f53917bc --- /dev/null +++ b/net-analyzer/netdata/netdata-1.45.4.ebuild @@ -0,0 +1,163 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python{3_9,3_10,3_11} ) + +inherit cmake fcaps flag-o-matic linux-info optfeature python-single-r1 systemd + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/netdata/${PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/netdata/${PN}/releases/download/v${PV}/${PN}-v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-v${PV}" + KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +fi + +DESCRIPTION="Linux real time system monitoring, done right!" +HOMEPAGE="https://github.com/netdata/netdata https://my-netdata.io/" + +LICENSE="GPL-3+ MIT BSD" +SLOT="0" +IUSE="aclk bpf cloud cups +dbengine ipmi mongodb mysql nfacct nodejs postgres prometheus +python systemd tor xen" +REQUIRED_USE=" + mysql? ( python ) + python? ( ${PYTHON_REQUIRED_USE} ) + tor? ( python )" + +# most unconditional dependencies are for plugins.d/charts.d.plugin: +RDEPEND=" + acct-group/netdata + acct-user/netdata + app-misc/jq + >=app-shells/bash-4:0 + || ( + net-analyzer/openbsd-netcat + net-analyzer/netcat + ) + net-libs/libwebsockets + net-misc/curl + net-misc/wget + sys-apps/util-linux + app-alternatives/awk + sys-libs/libcap + cups? ( net-print/cups ) + app-arch/lz4:= + app-arch/zstd:= + app-arch/brotli:= + dbengine? ( + dev-libs/judy + dev-libs/openssl:= + ) + dev-libs/libpcre2:= + dev-libs/libuv:= + dev-libs/libyaml + dev-libs/protobuf:= + bpf? ( virtual/libelf:= ) + sys-libs/zlib + ipmi? ( sys-libs/freeipmi ) + dev-libs/json-c:= + mongodb? ( dev-libs/mongo-c-driver ) + nfacct? ( + net-firewall/nfacct + net-libs/libmnl:= + ) + nodejs? ( net-libs/nodejs ) + prometheus? ( + app-arch/snappy:= + dev-libs/protobuf:= + ) + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') + mysql? ( $(python_gen_cond_dep 'dev-python/mysqlclient[${PYTHON_USEDEP}]') ) + postgres? ( $(python_gen_cond_dep 'dev-python/psycopg:2[${PYTHON_USEDEP}]') ) + tor? ( $(python_gen_cond_dep 'net-libs/stem[${PYTHON_USEDEP}]') ) + ) + xen? ( + app-emulation/xen-tools + dev-libs/yajl + ) + systemd? ( sys-apps/systemd )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +FILECAPS=( + 'cap_dac_read_search,cap_sys_ptrace+ep' + 'usr/libexec/netdata/plugins.d/apps.plugin' + 'usr/libexec/netdata/plugins.d/debugfs.plugin' +) + +pkg_setup() { + use python && python-single-r1_pkg_setup + linux-info_pkg_setup +} + +src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/927174 + # https://github.com/netdata/netdata/issues/17321 + # + # Do not trust with LTO either. + append-flags -fno-strict-aliasing + filter-lto + + local mycmakeargs=( + -DCMAKE_DISABLE_FIND_PACKAGE_Git=TRUE + -DCMAKE_INSTALL_PREFIX=/ + -DENABLE_ACLK=$(usex aclk) + -DENABLE_CLOUD=$(usex cloud) + -DENABLE_DBENGINE=$(usex dbengine) + -DENABLE_PLUGIN_CUPS=$(usex cups) + -DENABLE_PLUGIN_NFACCT=$(usex nfacct) + -DENABLE_PLUGIN_FREEIPMI=$(usex ipmi) + -DENABLE_EXPORTER_MONGODB=$(usex mongodb) + -DENABLE_EXPORTER_PROMETHEUS_REMOTE_WRITE=$(usex prometheus) + -DENABLE_PLUGIN_XENSTAT=$(usex xen) + -DENABLE_PLUGIN_EBPF=$(usex bpf) + -DENABLE_PLUGIN_GO=FALSE + -DENABLE_PLUGIN_SYSTEMD_JOURNAL=$(usex systemd) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + rm -rf "${D}/var/cache" || die + rm -rf "${D}/var/run" || die + + keepdir /var/log/netdata + fowners -Rc netdata:netdata /var/log/netdata + keepdir /var/lib/netdata + keepdir /var/lib/netdata/registry + keepdir /var/lib/netdata/cloud.d + fowners -Rc netdata:netdata /var/lib/netdata + + newinitd "${D}/usr/lib/netdata/system/openrc/init.d/netdata" "${PN}" + newconfd "${D}/usr/lib/netdata/system/openrc/conf.d/netdata" "${PN}" + systemd_newunit "${D}/usr/lib/netdata/system/systemd/netdata.service.v235" netdata.service + systemd_dounit "${D}/usr/lib/netdata/system/systemd/netdata-updater.service" + systemd_dounit "${D}/usr/lib/netdata/system/systemd/netdata-updater.timer" + insinto /etc/netdata + doins system/netdata.conf +} + +pkg_postinst() { + fcaps_pkg_postinst + + if use nfacct ; then + fcaps 'cap_net_admin' 'usr/libexec/netdata/plugins.d/nfacct.plugin' + fi + + if use xen ; then + fcaps 'cap_dac_override' 'usr/libexec/netdata/plugins.d/xenstat.plugin' + fi + + if use ipmi ; then + fcaps 'cap_dac_override' 'usr/libexec/netdata/plugins.d/freeipmi.plugin' + fi + + optfeature "go.d external plugin" net-analyzer/netdata-go-plugin +} -- cgit v1.2.3