diff options
author | Craig Andrews <candrews@gentoo.org> | 2023-10-17 08:49:10 -0400 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2023-10-17 08:50:53 -0400 |
commit | 076f61e2b576ace5b7ee04efd494d3df6180aa77 (patch) | |
tree | 2eacb7d5549292e38015961ff0b4445fde06c51e | |
parent | sys-devel/automake: Stabilize 1.16.5-r1 ALLARCHES, #908624 (diff) | |
download | gentoo-076f61e2b576ace5b7ee04efd494d3df6180aa77.tar.gz gentoo-076f61e2b576ace5b7ee04efd494d3df6180aa77.tar.bz2 gentoo-076f61e2b576ace5b7ee04efd494d3df6180aa77.zip |
net-analyzer/netdata: add 1.43.0
Signed-off-by: Craig Andrews <candrews@gentoo.org>
-rw-r--r-- | net-analyzer/netdata/Manifest | 1 | ||||
-rw-r--r-- | net-analyzer/netdata/netdata-1.43.0.ebuild | 163 |
2 files changed, 164 insertions, 0 deletions
diff --git a/net-analyzer/netdata/Manifest b/net-analyzer/netdata/Manifest index e2f7e2d96752..76c4e379b91c 100644 --- a/net-analyzer/netdata/Manifest +++ b/net-analyzer/netdata/Manifest @@ -6,3 +6,4 @@ DIST netdata-1.42.1.tar.gz 46044731 BLAKE2B c42fbdf3e360fd1d6a005820d0c4b8d0ea58 DIST netdata-1.42.2.tar.gz 46047621 BLAKE2B 0d95d3faad424cd8a19ccc3b6c3f28383e839f30740c3c4728a93367f55a4b3efbf425c898da4bdc72cbcd00f67fff2c0177f57b7ffcbd3ccf2f30e596fc3ffc SHA512 0d576bb79ba01672605fff54cf1c345933be74737dea16ac23d21c91151d3e2862ad1e828d7703f2d18e6fa74caf16db50c4eb122fd4bdc4cba4fbd0ea142553 DIST netdata-1.42.3.tar.gz 46067338 BLAKE2B 56686f6506049058948b4d6b465afdcd127312153c1d8c37497e3ebe8883e15b0ac984ddd1c16b2738fce2ca39e647ca94ee38ba8a1ba90fe14b1d698fb793a9 SHA512 38eb3c403c0dbabce4e82e54c93785f85f0b54803270dc6cf0a841c093fc8d2854bd66452939beb5bcc3a27834832924b68f62c8eff12c6a72363f61b2605a54 DIST netdata-1.42.4.tar.gz 46073521 BLAKE2B 2289bb781c45c36159233cc373a8216390e80024c0d41c8034aa86621c6a3b33f35c2d4a31a5ad42d8ce9c78b7e91ef2b255783b8127a4919d056095e3d6590e SHA512 58bfb21658044b5c4ede4cb88e440b161f1548168b9012caeca18f5800ba17b742156dda97b4587ea705b3d31c6fe8f9fb32df76c482c1b62ed109066669ddcd +DIST netdata-1.43.0.tar.gz 46452620 BLAKE2B e88bd3a2a09ab6fdd620245cc87215231d33b04cf99f14d962e13d6f2584a22015e3b1cf191c45396ffa0b1c528f10bc103f8c9a3278b388298940a5aae91207 SHA512 107eb48f2a72b1bd67d00a10de7f3e0fa21b3d386f6a2d4b5abe4da2d56b75eb5d114c978d8bd7c88357481e93bcbc10fb40e717e164803cfa202e08f5b7f57c diff --git a/net-analyzer/netdata/netdata-1.43.0.ebuild b/net-analyzer/netdata/netdata-1.43.0.ebuild new file mode 100644 index 000000000000..120388949957 --- /dev/null +++ b/net-analyzer/netdata/netdata-1.43.0.ebuild @@ -0,0 +1,163 @@ +# Copyright 1999-2023 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 autotools fcaps flag-o-matic linux-info python-single-r1 systemd toolchain-funcs + +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="caps cloud +compression cpu_flags_x86_sse2 cups +dbengine ipmi +jsonc +lto mongodb mysql nfacct nodejs postgres prometheus +python 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 + caps? ( sys-libs/libcap ) + cups? ( net-print/cups ) + dbengine? ( + app-arch/lz4:= + dev-libs/judy + dev-libs/openssl:= + ) + dev-libs/libuv:= + dev-libs/libyaml + cloud? ( dev-libs/protobuf:= ) + sys-libs/zlib + ipmi? ( sys-libs/freeipmi ) + jsonc? ( 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 + )" +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_prepare() { + default + eautoreconf +} + +src_configure() { + if use ppc64; then + # bundled dlib does not support vsx on big-endian + # https://github.com/davisking/dlib/issues/397 + [[ $(tc-endian) == big ]] && append-flags -mno-vsx + fi + + econf \ + --localstatedir="${EPREFIX}"/var \ + --with-user=netdata \ + --without-bundled-protobuf \ + $(use_enable cloud) \ + $(use_enable jsonc) \ + $(use_enable cups plugin-cups) \ + $(use_enable dbengine) \ + $(use_enable nfacct plugin-nfacct) \ + $(use_enable ipmi plugin-freeipmi) \ + --disable-exporting-kinesis \ + $(use_enable lto lto) \ + $(use_enable mongodb exporting-mongodb) \ + $(use_enable prometheus exporting-prometheus-remote-write) \ + $(use_enable xen plugin-xenstat) \ + $(use_enable cpu_flags_x86_sse2 x86-sse) +} + +src_compile() { + emake clean + default +} + +src_install() { + default + + rm -rf "${D}/var/cache" || die + + keepdir /var/log/netdata + fowners -Rc netdata:netdata /var/log/netdata + keepdir /var/lib/netdata + keepdir /var/lib/netdata/registry + fowners -Rc netdata:netdata /var/lib/netdata + + fowners -Rc root:netdata /usr/share/${PN} + + newinitd system/openrc/init.d/netdata ${PN} + newconfd system/openrc/conf.d/netdata ${PN} + systemd_dounit system/systemd/netdata.service + systemd_dounit system/systemd/netdata-updater.service + systemd_dounit 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 +} |