From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CCBCC1581B9 for ; Fri, 03 Oct 2025 01:37:23 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 3548733BE3B for ; Fri, 03 Oct 2025 01:26:37 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 2E190110213; Fri, 03 Oct 2025 01:26:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 24BFB110213 for ; Fri, 03 Oct 2025 01:26:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CE0D533BE3B for ; Fri, 03 Oct 2025 01:26:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 384F43A74 for ; Fri, 03 Oct 2025 01:21:30 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1759454439.82e783d9c77fd6dc2234d2ec59bfedab020f323d.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/netdata/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/netdata/Manifest net-analyzer/netdata/metadata.xml net-analyzer/netdata/netdata-2.5.3.ebuild X-VCS-Directories: net-analyzer/netdata/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 82e783d9c77fd6dc2234d2ec59bfedab020f323d X-VCS-Branch: master Date: Fri, 03 Oct 2025 01:21:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 57082d32-5aad-4199-835d-f341761ebce7 X-Archives-Hash: 97fed267d77a89dde4a2670e695ea5b8 commit: 82e783d9c77fd6dc2234d2ec59bfedab020f323d Author: Azamat H. Hackimov gmail com> AuthorDate: Mon Jun 9 20:54:04 2025 +0000 Commit: Sam James gentoo org> CommitDate: Fri Oct 3 01:20:39 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82e783d9 net-analyzer/netdata: add 2.5.3 Reorganize dependency list, properly handle some bundled dependencies. Closes: https://bugs.gentoo.org/953632 Closes: https://bugs.gentoo.org/953121 Closes: https://bugs.gentoo.org/901329 Signed-off-by: Azamat H. Hackimov gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42525 Signed-off-by: Sam James gentoo.org> net-analyzer/netdata/Manifest | 2 + net-analyzer/netdata/metadata.xml | 2 +- net-analyzer/netdata/netdata-2.5.3.ebuild | 179 ++++++++++++++++++++++++++++++ 3 files changed, 182 insertions(+), 1 deletion(-) diff --git a/net-analyzer/netdata/Manifest b/net-analyzer/netdata/Manifest index 4dc200613314..e74b59d418a7 100644 --- a/net-analyzer/netdata/Manifest +++ b/net-analyzer/netdata/Manifest @@ -1,3 +1,4 @@ +DIST dlib-19.24.8.tar.gz 18965261 BLAKE2B 3dbcfcd4d1a98737a21f3618994a96b3932cfc3c12ef26411ef919d8843227418460208911aa687d5a94552588e8e1eb4c99646afc86f4b43afc6972d22c65b8 SHA512 9092768628246b682e29322b101cfb8c0cd1d5a2af850510403cc7f912aa43370db1d4b5b07ff6ce6a575b3bd8cfe666b6b8f78f5e7c2ec751ae23569edcb517 DIST netdata-1.45.4.tar.gz 74881136 BLAKE2B e6184458a8b7e4430fb3e11543812f00652712c0c78d3ffb2f040adf649ceb4b01b4984165e489dfbea5c2207b702319fd5f3fb0d6d420e8973a20e54f3555b9 SHA512 44ab814c1dfb8c70880a363abbf29115189da366a49df953665dc2831da389e46ac2e33c288ebdbb10478f66180d0243d1b848a2f94043449198a87d9ad06340 DIST netdata-1.46.1.tar.gz 75135927 BLAKE2B 61ba35b4c61df47fd3aa03f08dc168dd02173b3c1ef0246bdf14555c50e9e573b0fa4b1bbca8b8f89f89a21a076630318acd21969be9060d1e7fba08cea85e22 SHA512 04d9f955129538cdd34175b6586fc548b80da1aa6d7cc7d8ecfb222e36ad184d51ad45c71b173ede7f8c1d948b9dafa3136b71cb47dfd8a73a0412445e6aae51 DIST netdata-1.46.2.tar.gz 75133899 BLAKE2B 56fedb88071fffd906fbe7bd6eb78baab944e5fe4929e203e0cc29a0397c7ee71bb4718c372d82981d47ecb2caaa38fd071ed619c058a76165a6c02a2165f5cc SHA512 d38951df52638ed8a620e7b271e1ad9fb30b7de1a38b0080c36cdccdb6c64928ff63e6c631d0e762b887d16a94e603a8414eabc0b288cb82e839fadfd38accb3 @@ -7,3 +8,4 @@ DIST netdata-1.47.1.tar.gz 51028613 BLAKE2B 435aeb7a87655b234ac7373307d05b9933e4 DIST netdata-1.47.2.tar.gz 51049731 BLAKE2B 45207328aba56a3e03f52ce17a8a3bf40ead5937e5965782fc0a3f457c36f0ae7cb35ada8ec9ca77e2090c28e724a3b6590c15dd4aba0d56a418c7f3008317cc SHA512 722686f3b3701dea739294ea4ae4039ad207bfcf8af2f583a8e5801853705567e79f9356a90dad5be82c5cfff04df2bfc9ebe3390d5d77838b0345ecb3da70c3 DIST netdata-1.47.4.tar.gz 51029997 BLAKE2B 568d504aabac40b3acb41df946c91769349a573b9484012479c3e262a9fe17a51a1bbe6b2e5b8b4b3406374a19e90c9e414c188e109d3037d767f8a81a781423 SHA512 995e332f83915f78800b02b706da975e91abf8ffa280c3bd91b07968f6a22cd3fffe61aa769706ebf83b9dba7ab140c8d12c9f47c1c1158513e930188831d706 DIST netdata-1.47.5.tar.gz 51034758 BLAKE2B c7c86956080b1903cdcfad23e7e016d91e89ef394275ed6ace140e1a5adf98300d983847bb5f4ac09a7d2fdafeba9f2a32c9a5c5f28a24b387ce7231310799b7 SHA512 9350edd520c20e8d97919a5bad804f8855e39f98aaa2eb0b4f07cc6cf763714720518b7e4c81a9a48d368aedeeb6bbcebb7b9fdb7ab5f7a7e1b3a447904e4183 +DIST netdata-2.5.3.tar.gz 31858932 BLAKE2B fe3f8f97f27e775aad75f57089623df1c1eb79addb46847ac2d282610651d26248a090e215e144978c4f27b9f8e428ed953987bf10bfdbe2a33ba4c34b672cd7 SHA512 9bf469aada9db631e9b8e6e8890de22eaed080f2b1b016503469ebe563a85a2cbcb6c4f0839a633178136e5dcf73fa952776106f99927d9cace610209d645b1e diff --git a/net-analyzer/netdata/metadata.xml b/net-analyzer/netdata/metadata.xml index a252c7c74573..d3cdf5f744c6 100644 --- a/net-analyzer/netdata/metadata.xml +++ b/net-analyzer/netdata/metadata.xml @@ -10,7 +10,7 @@ Enable the extended Berkeley Packet Filter (eBPF) collector to monitor kernel-level metrics about applications with per-second granularity Enable Netdata Cloud support Enable the Netdata database engine - Install sys-apps/ipmitool required for monitoring IPMI sensors. + Install sys-apps/ipmitool required for monitoring IPMI sensors 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-2.5.3.ebuild b/net-analyzer/netdata/netdata-2.5.3.ebuild new file mode 100644 index 000000000000..430482177b6c --- /dev/null +++ b/net-analyzer/netdata/netdata-2.5.3.ebuild @@ -0,0 +1,179 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{11..13} ) + +inherit cmake fcaps linux-info optfeature python-single-r1 systemd + +DLIB_VER="19.24.8" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/netdata/${PN}.git" + inherit git-r3 +else + SRC_URI=" + https://github.com/netdata/netdata/releases/download/v${PV}/${PN}-v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/davisking/dlib/archive/v${DLIB_VER}.tar.gz -> dlib-${DLIB_VER}.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="cups +dbengine ipmi jemalloc mongodb mysql nfacct nodejs prometheus +python systemd xen" +REQUIRED_USE=" + mysql? ( python ) + python? ( ${PYTHON_REQUIRED_USE} )" + +# most unconditional dependencies are for plugins.d/charts.d.plugin: +RDEPEND=" + acct-group/netdata + acct-user/netdata + app-alternatives/awk + app-arch/brotli:= + app-arch/lz4:= + app-arch/zstd:= + app-misc/jq + >=app-shells/bash-4:0 + dev-libs/json-c:= + dev-libs/libpcre2:= + dev-libs/libuv:= + dev-libs/libyaml + dev-libs/protobuf:= + || ( + net-analyzer/openbsd-netcat + net-analyzer/netcat + ) + net-libs/libmnl:= + net-libs/libwebsockets + net-misc/curl + net-misc/wget + sys-apps/util-linux + sys-libs/libcap + sys-libs/zlib:= + cups? ( net-print/cups ) + dbengine? ( + dev-libs/judy + dev-libs/openssl:= + ) + ipmi? ( sys-libs/freeipmi ) + jemalloc? ( dev-libs/jemalloc:= ) + mongodb? ( dev-libs/mongo-c-driver:0 ) + nfacct? ( + net-firewall/nfacct + net-libs/libmnl:= + ) + nodejs? ( net-libs/nodejs ) + prometheus? ( + app-arch/snappy:= + ) + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') + mysql? ( $(python_gen_cond_dep 'dev-python/mysqlclient[${PYTHON_USEDEP}]') ) + ) + xen? ( + app-emulation/xen-tools + dev-libs/yajl + ) + systemd? ( sys-apps/systemd )" +DEPEND="${RDEPEND}" +BDEPEND=" + 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() { + local mycmakeargs=( + -DNETDATA_DLIB_SOURCE_PATH="${WORKDIR}/dlib-${DLIB_VER}" + -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON + -DCMAKE_INSTALL_PREFIX=/ + -DFETCHCONTENT_FULLY_DISCONNECTED=ON + -DFETCHCONTENT_UPDATES_DISCONNECTED=ON + -DENABLE_BUNDLED_JSONC=OFF + -DENABLE_BUNDLED_PROTOBUF=OFF + -DENABLE_BUNDLED_YAML=OFF + -DENABLE_DASHBOARD=OFF # uses binary blobs, license issues + -DENABLE_DBENGINE=$(usex dbengine) + -DENABLE_EXPORTER_MONGODB=$(usex mongodb) + -DENABLE_EXPORTER_PROMETHEUS_REMOTE_WRITE=$(usex prometheus) + -DENABLE_JEMALLOC=$(usex jemalloc) + -DENABLE_LIBBACKTRACE=OFF + -DENABLE_MIMALLOC=OFF + -DENABLE_ML=ON + -DENABLE_PLUGIN_APPS=ON + -DENABLE_PLUGIN_CGROUP_NETWORK=ON + -DENABLE_PLUGIN_CHARTS=ON + -DENABLE_PLUGIN_CUPS=$(usex cups) + -DENABLE_PLUGIN_DEBUGFS=ON + -DENABLE_PLUGIN_EBPF=OFF # bundles libbpf + -DENABLE_PLUGIN_GO=OFF + -DENABLE_PLUGIN_FREEIPMI=$(usex ipmi) + -DENABLE_PLUGIN_NFACCT=$(usex nfacct) + -DENABLE_PLUGIN_OTEL=OFF + -DENABLE_PLUGIN_PERF=ON + -DENABLE_PLUGIN_PYTHON=$(usex python) + -DENABLE_PLUGIN_SLABINFO=ON + -DENABLE_PLUGIN_SYSTEMD_JOURNAL=$(usex systemd) + -DENABLE_PLUGIN_XENSTAT=$(usex xen) + ) + 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 + + # Opt-out anonymous statistics + touch "${D}/etc/netdata/.opt-out-from-anonymous-statistics" +} + +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 +}