From b92911550490e2da121ec4b02d3cf60a2d31a17d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 16 Apr 2024 12:04:26 +0100 Subject: gentoo auto-resync : 16:04:2024 - 12:04:26 --- net-analyzer/Manifest.gz | Bin 43612 -> 43612 bytes net-analyzer/greenbone-feed-sync/Manifest | 4 +- .../greenbone-feed-sync-24.1.1.ebuild | 75 --------- .../greenbone-feed-sync-24.3.0.ebuild | 90 +++++++++++ net-analyzer/nagios-check_mysql_health/Manifest | 1 + .../nagios-check_mysql_health-2.2.2-r1.ebuild | 39 +++++ net-analyzer/netdata/Manifest | 10 +- net-analyzer/netdata/netdata-1.44.0.ebuild | 170 --------------------- net-analyzer/netdata/netdata-1.45.0.ebuild | 155 ------------------- net-analyzer/netdata/netdata-1.45.1.ebuild | 155 ------------------- net-analyzer/netdata/netdata-1.45.2.ebuild | 163 -------------------- net-analyzer/netdata/netdata-1.45.3.ebuild | 163 ++++++++++++++++++++ 12 files changed, 297 insertions(+), 728 deletions(-) delete mode 100644 net-analyzer/greenbone-feed-sync/greenbone-feed-sync-24.1.1.ebuild create mode 100644 net-analyzer/greenbone-feed-sync/greenbone-feed-sync-24.3.0.ebuild create mode 100644 net-analyzer/nagios-check_mysql_health/nagios-check_mysql_health-2.2.2-r1.ebuild delete mode 100644 net-analyzer/netdata/netdata-1.44.0.ebuild delete mode 100644 net-analyzer/netdata/netdata-1.45.0.ebuild delete mode 100644 net-analyzer/netdata/netdata-1.45.1.ebuild delete mode 100644 net-analyzer/netdata/netdata-1.45.2.ebuild create mode 100644 net-analyzer/netdata/netdata-1.45.3.ebuild (limited to 'net-analyzer') diff --git a/net-analyzer/Manifest.gz b/net-analyzer/Manifest.gz index eedbc5d2d187..ba9d3bba5818 100644 Binary files a/net-analyzer/Manifest.gz and b/net-analyzer/Manifest.gz differ diff --git a/net-analyzer/greenbone-feed-sync/Manifest b/net-analyzer/greenbone-feed-sync/Manifest index 2713ae84b47c..6c5f9f4b6fef 100644 --- a/net-analyzer/greenbone-feed-sync/Manifest +++ b/net-analyzer/greenbone-feed-sync/Manifest @@ -2,7 +2,7 @@ AUX greenbone-feed-sync.cron 222 BLAKE2B b4ebc765c293fbc8445c7506c882f67879cc64a AUX greenbone-feed-sync.service 219 BLAKE2B 7f5d17b23b56a175115a4147e16d1e8636c961aaf40b24671d3a2e55701eb8bfd493dbda686fb9e56675fc6ac5c731721d53da2446cbcb1dbc6bf9ef279f44fe SHA512 0c2dce6ff3fd1837c69ee0899c2b1da98f8c7877fb140677ce4ff8c10cd140e7f3581008f26bdb119a3bf41f7f2a40fb2082d84060c830417faf4e4ed72dbb98 AUX greenbone-feed-sync.timer 183 BLAKE2B f91b69c6b2a5024c6cd9d678676071f7d5e175a3b35e0e34ffc03be7630df7519948c6c3285c7b265c73c0b7b4485706bba5673f89234c478ad6cd43d7305ddc SHA512 3716c8057bab3926b57e5e9868f4e00ec95940e5a9ea0506e16a152a76cb9b388ba5f0c8404245dcba5ba26bc789f0670781c41568d53a82412cd19689aca2c6 DIST greenbone-feed-sync-23.10.0.tar.gz 63001 BLAKE2B 5566cef8649e578cb498f0a5bc1e41f237a3702698b2012f3a62d8f5f647e6b1e3253c7d92e4a9fc82ad7991de8010b94ba8c1194a820511c49e5f5262e471ff SHA512 fe5864c4e650f17a072cd6e4153779ea33ad8f0ac28e92114b40c465a04b70791b603ccbe82934dcdad13fce2003e2d9786cec75854efecf8aefa74c7ce178f4 -DIST greenbone-feed-sync-24.1.1.tar.gz 58806 BLAKE2B 01229e630584fc04a6c1806f06d6769cdf76adfdff7b8b97032dff908c7de41cb928a902a43da2407e03643e0f7a868cbad148e6fd1680b4c91eb7b953c6cf20 SHA512 bb8d7c2917fe5096dc1041df832a7880a2760dff049e139e6a9d453c4e24ff04557be3c4f52a785496f67820d0c7bc256f7bfd23617a4734e263b0bc725ae039 +DIST greenbone-feed-sync-24.3.0.tar.gz 58949 BLAKE2B 10260850dad8781682e9f3e3eb31faa4139080b3c5661261770fe28053df472b21b4e2ef98f258b5c634c26d543313da30bb01d9eadfdb8ea8e7b7b57205b7f5 SHA512 ac1ce1f0a2898997e5a330e9a186b6203b7593e5b847d23202c28e7b3b7be1556001cc6d8ba5abd7077d1b51e0f21640728f78659ecf9a60eede28ea483344b4 EBUILD greenbone-feed-sync-23.10.0.ebuild 1575 BLAKE2B abe5101d16ca2c904b36d622c49f3d3a4e43ae60d0ce36d76ae50522b39b694604c65d1a81fd6ee74813f697b3d21c130d4acf3f7fe98955537e4bf1a23b24e6 SHA512 fc7ffb5e2c7a155ba33952cd77fddaf7690001e25c1ba1ad4f5c6f640b1b12874c5bedaf61400155a6947d3ed8849a3d8b38f048c16ee9e8bf4c028c243b997a -EBUILD greenbone-feed-sync-24.1.1.ebuild 1727 BLAKE2B cc133c403248dd1ee202b9cfd3288dd8d1a0f890b3cd7dab4fe1e8c814312a24440d924da9740c0bf020718e6aa3c762ba9678b9eb931b3b824d5883190efc84 SHA512 91eab8ba75b56c1a6e4f9a11a25261c834f7dfa7df9b849851caddb62c79fd26759d0fc7729813ddb8ed6166c690df789070cbef9e9214a59ba13bbef0a31332 +EBUILD greenbone-feed-sync-24.3.0.ebuild 2127 BLAKE2B 60467634c1f22f9548fa2e46dab8910c4e978f35af9ea3e7fcb49faf265ef53bd61c0b9be08c147f382eb82fafe63eb67033df234f6d69fae5a8346782198121 SHA512 29757eede67f311828124b32dc2f5c4ba4de1390b3a40aa9c3c3536df5be8e50087881b5a1ffbe8a99b085691619fcba367b81d4be3605676d3e5b64fc67b08a MISC metadata.xml 822 BLAKE2B 6e48caf48d652d7892292654b2b55a1b200fedae3b34d03ed237259fda8a8c8013cda2c3ac93b080658424a21a13e9a3d4eb92c677621c17c2309cf7f7467c32 SHA512 9457919c66737a70c7cc58aa576102c46c1d296a616baf53559eb04bd89a7cc315d59980e7150afea1f9010344952e73deeb215ec5f776075b638072badf5983 diff --git a/net-analyzer/greenbone-feed-sync/greenbone-feed-sync-24.1.1.ebuild b/net-analyzer/greenbone-feed-sync/greenbone-feed-sync-24.1.1.ebuild deleted file mode 100644 index 7ae049456675..000000000000 --- a/net-analyzer/greenbone-feed-sync/greenbone-feed-sync-24.1.1.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 - -PYTHON_COMPAT=( python3_{10..12} ) -DISTUTILS_USE_PEP517=poetry -inherit distutils-r1 systemd - -DESCRIPTION="New script for syncing the Greenbone Community Feed" -HOMEPAGE="https://github.com/greenbone/greenbone-feed-sync" -SRC_URI="https://github.com/greenbone/greenbone-feed-sync/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" - -SLOT="0" -LICENSE="GPL-3+" -KEYWORDS="~amd64" -IUSE="cron" - -COMMON_DEPEND=" - acct-user/gvm - net-misc/rsync - >=net-analyzer/gvmd-22.5.0 - dev-python/tomli[${PYTHON_USEDEP}] - >=dev-python/rich-13.2.0[${PYTHON_USEDEP}] - >=dev-python/shtab-1.6.5[${PYTHON_USEDEP}] -" -DEPEND=" - ${COMMON_DEPEND} - test? ( net-analyzer/pontos[${PYTHON_USEDEP}] ) -" -RDEPEND=" - ${COMMON_DEPEND} - cron? ( virtual/cron ) -" - -distutils_enable_tests unittest - -python_install() { - distutils-r1_python_install - - # greenbone-feed-sync should not be run as root to avoid changing file permissions - insinto /etc/sudoers.d - newins - greenbone-feed-sync <<-EOF - gvm ALL = NOPASSWD: /usr/bin/greenbone-feed-sync - EOF - - fperms 0750 /etc/sudoers.d - fperms 0440 /etc/sudoers.d/greenbone-feed-sync - - if use cron; then - exeinto /etc/cron.daily - newexe "${FILESDIR}"/${PN}.cron ${PN} - fi - - systemd_dounit "${FILESDIR}/${PN}.timer" "${FILESDIR}/${PN}.service" -} - -pkg_postinst() { - if [[ -n ${REPLACING_VERSIONS} ]]; then - return - fi - - if use cron; then - elog - elog "Edit ${EROOT}/etc/cron.weekly/greenbone-feed-sync to activate daily feed update!" - elog - fi - - if systemd_is_booted; then - elog - elog "To enable the systemd timer, run the following command:" - elog " systemctl enable --now greenbone-feed-sync.timer" - elog - fi -} diff --git a/net-analyzer/greenbone-feed-sync/greenbone-feed-sync-24.3.0.ebuild b/net-analyzer/greenbone-feed-sync/greenbone-feed-sync-24.3.0.ebuild new file mode 100644 index 000000000000..a29bec692a29 --- /dev/null +++ b/net-analyzer/greenbone-feed-sync/greenbone-feed-sync-24.3.0.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} pypy3 ) +DISTUTILS_USE_PEP517=poetry +inherit distutils-r1 systemd + +DESCRIPTION="New script for syncing the Greenbone Community Feed" +HOMEPAGE="https://github.com/greenbone/greenbone-feed-sync" +SRC_URI="https://github.com/greenbone/greenbone-feed-sync/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="cron" + +COMMON_DEPEND=" + acct-user/gvm + net-misc/rsync + >=net-analyzer/gvmd-22.5.0 + >=dev-python/tomli-2.0.1[${PYTHON_USEDEP}] + >=dev-python/rich-13.2.0[${PYTHON_USEDEP}] + >=dev-python/shtab-1.7.0[${PYTHON_USEDEP}] +" +DEPEND=" + ${COMMON_DEPEND} + test? ( >=net-analyzer/pontos-22.12.2[${PYTHON_USEDEP}] ) +" +RDEPEND=" + ${COMMON_DEPEND} + cron? ( virtual/cron ) +" + +distutils_enable_tests unittest + +src_test() { + # Disable tests that require network access. + sed -i \ + -e 's:test_do_not_run_as_root:_&:' \ + -e 's:test_sync_nvts:_&:' \ + -e 's:test_sync_nvts_quiet:_&:' \ + -e 's:test_sync_nvts_rsync_error:_&:' \ + -e 's:test_sync_nvts_verbose:_&:' \ + -e 's:test_sync_nvts:_&:' \ + -e 's:test_sync_nvts_error:_&:' \ + tests/test_main.py || die + + distutils-r1_src_test +} + +python_install() { + distutils-r1_python_install + + # greenbone-feed-sync should not be run as root to avoid changing file permissions + insinto /etc/sudoers.d + newins - greenbone-feed-sync <<-EOF + gvm ALL = NOPASSWD: /usr/bin/greenbone-feed-sync + EOF + + fperms 0750 /etc/sudoers.d + fperms 0440 /etc/sudoers.d/greenbone-feed-sync + + if use cron; then + exeinto /etc/cron.daily + newexe "${FILESDIR}"/${PN}.cron ${PN} + fi + + systemd_dounit "${FILESDIR}/${PN}.timer" "${FILESDIR}/${PN}.service" +} + +pkg_postinst() { + if [[ -n ${REPLACING_VERSIONS} ]]; then + return + fi + + if use cron; then + elog + elog "Edit ${EROOT}/etc/cron.weekly/greenbone-feed-sync to activate daily feed update!" + elog + fi + + if systemd_is_booted; then + elog + elog "To enable the systemd timer, run the following command:" + elog " systemctl enable --now greenbone-feed-sync.timer" + elog + fi +} diff --git a/net-analyzer/nagios-check_mysql_health/Manifest b/net-analyzer/nagios-check_mysql_health/Manifest index 4ed2d71952fe..2b1ae27b14c5 100644 --- a/net-analyzer/nagios-check_mysql_health/Manifest +++ b/net-analyzer/nagios-check_mysql_health/Manifest @@ -1,3 +1,4 @@ DIST check_mysql_health-2.2.2.tar.gz 140250 BLAKE2B 7bdbf5398ed2219ec9a254906c2e0b38160fe8914c218388a4c9f06c401636e500290dea42b420da7881e6dd35116e0f5b54bb448b304c84714bdee610c74d92 SHA512 027e47747aba524d8c7d168f6c440271434db2e152e59821eff06449d98919ab343a7840ecf73a1fcbc864799d6d3094088bb06f6b36b16989a5184676ae2628 +EBUILD nagios-check_mysql_health-2.2.2-r1.ebuild 1143 BLAKE2B 4b8ac080e10b54674c00244643b33ea6917dc962a340afd030e1dbaa5e22d90f59e6b3e0488337365f9921fc90b3e96e5db7b095f7cf5383ec94843978739601 SHA512 4349b182045d888cd1a7d8cce9a89e8e2472375654884279ae8c2192f61171f661a646f869ff266e7925216b39e5727fe1a7fa5cbe86de3929c7db8df37bb298 EBUILD nagios-check_mysql_health-2.2.2.ebuild 1148 BLAKE2B 4841b37119954723d5f7a9904d4a06caaaaed1ae23c133d7ebf2b73d32ada4b54065da4aba246e76866c2018970861d00bb0a19587ccc38b2691dd54461028db SHA512 4da3ccde0d062b48f9bfe1ec0f1d42d969bf3b8abf4c60adcb465bf53e7045f9425496a7dee10bb73afbb88a750e35ab2356e60a7a3e1710d19edb24450610d3 MISC metadata.xml 257 BLAKE2B a72891364914bd47c34e23ac2ca36888336d1ed12c7761ef49f0cba205e367eaea3c20859f88487f4fcd1ba047ed657c96d53818a85407879db51410a625ba40 SHA512 7141c86b0377aa711751e5e347d9cc2c1aa7ebe2765bcf8d3db22e1c6ff3155dcd5ab19d287de4f3b362f542339715209d28432c7fd7c5ffbf2b584628069e4f diff --git a/net-analyzer/nagios-check_mysql_health/nagios-check_mysql_health-2.2.2-r1.ebuild b/net-analyzer/nagios-check_mysql_health/nagios-check_mysql_health-2.2.2-r1.ebuild new file mode 100644 index 000000000000..3de8e319875f --- /dev/null +++ b/net-analyzer/nagios-check_mysql_health/nagios-check_mysql_health-2.2.2-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="${PN#nagios-}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Nagios plugin for checking MySQL server health" +HOMEPAGE="https://labs.consol.de/nagios/check_mysql_health/" +SRC_URI="https://labs.consol.de/assets/downloads/nagios/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# Found by grepping for "use " in the built +# plugins-scripts/check_mysql_health. +RDEPEND=" + dev-perl/DBD-mysql + dev-perl/DBI + virtual/perl-Data-Dumper + virtual/perl-File-Temp + virtual/perl-Net-Ping + virtual/perl-Time-HiRes + " + +src_configure() { + # Should match net-analyzer/{monitoring,nagios}-plugins. + econf --libexecdir="/usr/$(get_libdir)/nagios/plugins" +} + +# Here we should have a pkg_preinst() that creates the nagios user/group +# (using the same command from e.g. net-analyzer/nagios-plugins). But +# right now, the build system for check_mysql_health has a bug: it +# doesn't use the configured user (INSTALL_OPTIONS aren't passed to +# /usr/bin/install), so it's pointless. Don't forget to inherit +# user.eclass! diff --git a/net-analyzer/netdata/Manifest b/net-analyzer/netdata/Manifest index ff8a6e92c6b6..7b62fd4255b1 100644 --- a/net-analyzer/netdata/Manifest +++ b/net-analyzer/netdata/Manifest @@ -1,11 +1,5 @@ AUX netdata-1.44.0-dbengine.patch 1703 BLAKE2B 50af2960a6bf44361a5d9a0bd916c6909874211e170bd986794d901503e841fc3dd7ff1cbb5d2d97a86506b84d0bdc1a1199e3da6615d6f3e94486fba53eac31 SHA512 5b223f522bb25f5ace9e1622cd7d23526343c5499dccf10ea2353524d089134742b5cdf11c7f2f813844b0a96b8f469c485cccb282f49bd07e097108da2f085c -DIST netdata-1.44.0.tar.gz 47423685 BLAKE2B 2b430d07abed1e49c5b7a3c24188446e929301eecc849d03ee9c33860f13942dbc06453401d166195b1aadd16e28e19b7533d16fc10e6f3eca51117b52485a85 SHA512 ef3534351504385ac33e18917a839c6506c377a4f25246d8819da916c6e46ae3d2d6f5422e8a685fd3aabbf851829233943abce8a8aeba0ce94db011ed406602 -DIST netdata-1.45.0.tar.gz 74873918 BLAKE2B c7b255b25e48f3594c652f69b80a9b18ea836dfb11d1e82606240a83baf4d62d1f14a718e933f3c9455333971c9a5dac8b48f3cebd0bfcc52b0cb91a34af7920 SHA512 d6e3b3def40995fb25afc5cb6e6ce83b7f6a33e095351f16bf8a5279196638b62a2b4175cb513a262eb2b6981952c129c58302ecf6b9d0d720fb7e0f27d43d29 -DIST netdata-1.45.1.tar.gz 74875031 BLAKE2B 9d1f912288f316f2a08bb2d91b99a5e401107d27d8ff795806e93142a6f0dbaefdab9d0bef4a4790a4d3ab3c5820e5dd16e175543c1dcdbf5d010dfb68811eeb SHA512 f658f40084d2b7accbcfe59b853bb63f2701b65358ca29eff354447819eeff9309fde207b49bff1b02c9d8f23fa4ec74269bbd083840d6d3ac0e657600952f83 -DIST netdata-1.45.2.tar.gz 74879267 BLAKE2B 7dc697657dc1e418bf826ba655544775df10a99f9461d5e13834269f897f6171f417145d904434259bb42c9adcc905170c9bbe1e3284253436ea4179f9aebf45 SHA512 40eea96b15828e44acf85e8de14619560eb59f4eb0a180156a2257c1f9ef3da52516d82a794db255c9d627a89b1c419ea51bd6b091a91bfdaa2f73ec239b4905 -EBUILD netdata-1.44.0.ebuild 4211 BLAKE2B 7221dc851b930b76f7a90b8062025ee723fe5bff7f64a69afe3e857136d2277a0b0c51b516861b26848df9bd1fe9a0a12dc5c078a814e8c16bc42f63fa03641f SHA512 1d9249bbeddb683e00e2a0116e8452eaa62ca2fbcf78b38f89771e030cb6acd6e34bd610936018b2c63f643ecc425a20f4d30acd57d2b45a8c599086fb5a26a7 -EBUILD netdata-1.45.0.ebuild 4121 BLAKE2B 49dfa6968028fd971988f81c8be6486320fb5495be24488699bd74a22eccb3c6bf7fcf39e80494c6a91977802fb2f73aaf6f104eddccacea55561373ed6bb814 SHA512 d5e3844698bad17c232301a399ac43a3b353381382c4992bfce3f6a30f8a97247c8bb8a6e945b2f9b5acd8d10ab6b1acdb8b650e017b32ee9de209cf14b3a7da -EBUILD netdata-1.45.1.ebuild 4121 BLAKE2B 49dfa6968028fd971988f81c8be6486320fb5495be24488699bd74a22eccb3c6bf7fcf39e80494c6a91977802fb2f73aaf6f104eddccacea55561373ed6bb814 SHA512 d5e3844698bad17c232301a399ac43a3b353381382c4992bfce3f6a30f8a97247c8bb8a6e945b2f9b5acd8d10ab6b1acdb8b650e017b32ee9de209cf14b3a7da -EBUILD netdata-1.45.2.ebuild 4330 BLAKE2B f5ab535f2c5123de9a75e2456a84a57470d6e2980618d4552e898912245986ef1db79738d7ff5b1c572013539e11228bf4f7d75b6cc82bc04a36a74077a7d930 SHA512 95b61beaac0758a412c88af158f72bb89e1bf130e081c80bfbf337a95089bafc84a65685490356ffe997dcad742f13b1a10bbcb8d6d2f5da144d094920c6e05e +DIST netdata-1.45.3.tar.gz 74876663 BLAKE2B 2e181daea72b9f03c74bc8f8a4dac81f0915a080295b914486d8aa732742099a7758795386b27576693723e1990455d0d869ed21150a41ebae030714ee339ca9 SHA512 5d293949632caa8660632247460d08300123c1375e1f24f759ebe16fc40a7e35afe04f948bf431819076f82d9fff315d45a42db582636e89b351b167d7e64498 +EBUILD netdata-1.45.3.ebuild 4330 BLAKE2B f5ab535f2c5123de9a75e2456a84a57470d6e2980618d4552e898912245986ef1db79738d7ff5b1c572013539e11228bf4f7d75b6cc82bc04a36a74077a7d930 SHA512 95b61beaac0758a412c88af158f72bb89e1bf130e081c80bfbf337a95089bafc84a65685490356ffe997dcad742f13b1a10bbcb8d6d2f5da144d094920c6e05e EBUILD netdata-9999.ebuild 4330 BLAKE2B f5ab535f2c5123de9a75e2456a84a57470d6e2980618d4552e898912245986ef1db79738d7ff5b1c572013539e11228bf4f7d75b6cc82bc04a36a74077a7d930 SHA512 95b61beaac0758a412c88af158f72bb89e1bf130e081c80bfbf337a95089bafc84a65685490356ffe997dcad742f13b1a10bbcb8d6d2f5da144d094920c6e05e MISC metadata.xml 1512 BLAKE2B 321d3c1be16a0fd3c64d89f96c510d68ea82fca12730183d2724f7a0f30fdcb94c2be2749a6f9651ae7effdf7c250e977f95cf03c865a20e03e136456429c2b3 SHA512 4bd5583efd1fee4a0f221708fedf6dcf424639852842c8ba1089a2303a57ae58ccfd302fc5fcbfdada65a56efa8c7c949b95eedde0133a770ef68ca6688bbefd diff --git a/net-analyzer/netdata/netdata-1.44.0.ebuild b/net-analyzer/netdata/netdata-1.44.0.ebuild deleted file mode 100644 index a85bf1232c4b..000000000000 --- a/net-analyzer/netdata/netdata-1.44.0.ebuild +++ /dev/null @@ -1,170 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 -PYTHON_COMPAT=( python3_{10..11} ) - -inherit autotools fcaps flag-o-matic linux-info optfeature 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 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' -) - -PATCHES=( - "${FILESDIR}/${P}-dbengine.patch" -) - -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 - - # --enable-lto only appends -flto - 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 \ - --disable-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 - - optfeature "go.d external plugin" net-analyzer/netdata-go-plugin -} diff --git a/net-analyzer/netdata/netdata-1.45.0.ebuild b/net-analyzer/netdata/netdata-1.45.0.ebuild deleted file mode 100644 index 2d2fe2aeb560..000000000000 --- a/net-analyzer/netdata/netdata-1.45.0.ebuild +++ /dev/null @@ -1,155 +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 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() { - 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.1.ebuild b/net-analyzer/netdata/netdata-1.45.1.ebuild deleted file mode 100644 index 2d2fe2aeb560..000000000000 --- a/net-analyzer/netdata/netdata-1.45.1.ebuild +++ /dev/null @@ -1,155 +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 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() { - 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.2.ebuild b/net-analyzer/netdata/netdata-1.45.2.ebuild deleted file mode 100644 index 0d57f53917bc..000000000000 --- a/net-analyzer/netdata/netdata-1.45.2.ebuild +++ /dev/null @@ -1,163 +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" - -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.3.ebuild b/net-analyzer/netdata/netdata-1.45.3.ebuild new file mode 100644 index 000000000000..0d57f53917bc --- /dev/null +++ b/net-analyzer/netdata/netdata-1.45.3.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