From: realsn0w <realsn0w@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] netdata v1.37.1
Date: Wed, 14 Dec 2022 17:43:34 +0100 [thread overview]
Message-ID: <20221214164334.SNksMT-97E9eK7sNaierwlP3pFbjrrPynru3B4x4W7E@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41076@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1493 bytes --]
There is an updated pull request by realsn0w against master on the void-packages repository
https://github.com/realsn0w/void-packages netdata-v1.37.1
https://github.com/void-linux/void-packages/pull/41076
netdata v1.37.1
#### Testing the changes
- I tested the changes in this PR: **YES** (on `x86_64` and `x86_64-musl`)
#### Local build testing
- I built this PR locally for my native architecture
- `x86_64{,-musl}`
- I built this PR locally for these architectures (all cross):
- `i686`
- `armv6l{,-musl}`
- `armv7l{,-musl}`
- `aarch64{,-musl}`
#### Notes
Nodejs subpackage got removed because upstream dropped `node.d` in 1.35 (following deprecation in 1.34).
Could be packaged separately using netdata's community repo but most likely not necessary anymore due to `go.d`.
`go.d` is packaged separately here because it looks to be an entirely separate project with it's own release cycle, only linked to the main netdata project through [this file](https://github.com/netdata/netdata/blob/v1.37/packaging/go.d.version). Assigned myself as the maintainer of `go.d` for now, though since it's somewhat tightly linked to netdata I'd be willing to either maintain netdata as well (i'm actively using it anyway) or of course hand `go.d` over to maldridge.
Also do let me know if this should be two PRs instead, wasn't really sure since the two templates are so close.
A patch file from https://github.com/void-linux/void-packages/pull/41076.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-netdata-v1.37.1-41076.patch --]
[-- Type: text/x-diff, Size: 5052 bytes --]
From 8d5e27dfe7fccb4b70b804c6d431af8fe89378e8 Mon Sep 17 00:00:00 2001
From: sn0w <me@sn0w.cx>
Date: Wed, 14 Dec 2022 02:17:12 +0100
Subject: [PATCH 1/2] netdata: update to 1.37.1
---
srcpkgs/netdata-plugins-nodejs | 1 -
srcpkgs/netdata/template | 46 ++++++++++++++++++++--------------
2 files changed, 27 insertions(+), 20 deletions(-)
delete mode 120000 srcpkgs/netdata-plugins-nodejs
diff --git a/srcpkgs/netdata-plugins-nodejs b/srcpkgs/netdata-plugins-nodejs
deleted file mode 120000
index f0168c8f858a..000000000000
--- a/srcpkgs/netdata-plugins-nodejs
+++ /dev/null
@@ -1 +0,0 @@
-netdata
\ No newline at end of file
diff --git a/srcpkgs/netdata/template b/srcpkgs/netdata/template
index 06cab2f8c6a4..18dbe4394a4e 100644
--- a/srcpkgs/netdata/template
+++ b/srcpkgs/netdata/template
@@ -1,19 +1,24 @@
# Template file for 'netdata'
pkgname=netdata
-version=1.33.0
+version=1.37.1
revision=1
build_style=gnu-configure
-configure_args="--with-user=_netdata ac_cv_file_externaldeps_libbpf_libbpf_a=no"
-hostmakedepends="pkg-config autoconf automake"
-makedepends="json-c-devel judy-devel libcap-devel liblz4-devel libmnl-devel
- libnetfilter_acct-devel openssl-devel libuuid-devel libuv-devel zlib-devel"
+build_helper=qemu
+configure_args="--with-user=_netdata ac_cv_file_externaldeps_libbpf_libbpf_a=no
+ $(vopt_if cloud --enable-cloud --disable-cloud) $(vopt_if ipmi --enable-plugin-freeipmi)
+ $(vopt_if xen --enable-plugin-xenstat) $(vopt_if cups --enable-plugin-cups)"
+hostmakedepends="pkg-config autoconf automake $(vopt_if cloud "protobuf protobuf-devel")"
+makedepends="json-c-devel libcap-devel liblz4-devel libmnl-devel
+ libnetfilter_acct-devel openssl-devel libuuid-devel libuv-devel zlib-devel
+ snappy-devel $(vopt_if cloud protobuf-devel) $(vopt_if ipmi freeipmi-devel)
+ $(vopt_if xen "xen-devel yajl-devel") $(vopt_if cups cups-devel)"
depends="libcap-progs"
short_desc="Real-time performance monitoring, done right"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://www.netdata.cloud/"
distfiles="https://github.com/netdata/netdata/releases/download/v${version}/netdata-v${version}.tar.gz"
-checksum=d167d4b2d8529119fa4047ae40d22833dac9d360a6ed07c314ba313807c027eb
+checksum=2caa042d43ca61007a61294a5ececa037d83a1973bd38032233760341eb1706b
python_version=3
make_dirs="
/var/lib/netdata 0755 _netdata _netdata
@@ -22,29 +27,32 @@ make_dirs="
/var/log/netdata 0755 _netdata _netdata
"
+build_options="cloud ipmi cups xen"
+desc_option_cloud="Enable support for netdata cloud"
+desc_option_ipmi="Enable IPMI plugin"
+desc_option_xen="Enable xenstat plugin"
+build_options_default="cloud"
+
system_accounts="_netdata"
conf_files="/etc/${pkgname}/*.conf"
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+ makedepends+=" libatomic-devel"
+ CFLAGS+=" -DLINK_ATOMIC"
+ export LIBS="-latomic"
+fi
+
pre_configure() {
+ if [ "$CROSS_BUILD" ]; then
+ sed -i "s| \$(builddir)/judyltablesgen\$(EXEEXT)| qemu-${XBPS_TARGET_QEMU_MACHINE}-static \$(builddir)/judyltablesgen\$(EXEEXT)|g" Makefile.am
+ fi
+
autoreconf -ivf
}
post_install() {
vsv netdata
vcopy ${FILESDIR}/netdata.conf etc/$pkgname/
- if [ -n "$_without_node" ]; then
- rm -rf ${DESTDIR}/usr/libexec/netdata/node.d
- rm -rf ${DESTDIR}/usr/libexec/netdata/plugins.d/node.d.plugin
- fi
-}
-
-netdata-plugins-nodejs_package() {
- short_desc+=" - NodeJS Plugins"
- depends="${sourcepkg}>=${version}_${revision} virtual?nodejs-runtime"
- pkg_install() {
- vmove usr/libexec/netdata/plugins.d/node.d.plugin
- vmove usr/libexec/netdata/node.d
- }
}
netdata-plugins-python_package() {
From 9f06154e5b06f837fe6529a9b10e8929c411c611 Mon Sep 17 00:00:00 2001
From: sn0w <me@sn0w.cx>
Date: Wed, 14 Dec 2022 05:54:31 +0100
Subject: [PATCH 2/2] New package: netdata-plugins-go-0.45.0
---
srcpkgs/netdata-plugins-go/template | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 srcpkgs/netdata-plugins-go/template
diff --git a/srcpkgs/netdata-plugins-go/template b/srcpkgs/netdata-plugins-go/template
new file mode 100644
index 000000000000..cf0de06b10cf
--- /dev/null
+++ b/srcpkgs/netdata-plugins-go/template
@@ -0,0 +1,26 @@
+# Template file for 'netdata-plugins-go'
+pkgname=netdata-plugins-go
+version=0.45.0
+revision=1
+build_style=go
+go_import_path="github.com/netdata/go.d.plugin/cmd/godplugin"
+depends="netdata"
+short_desc="Netdata - Go Plugins"
+maintainer="sn0w <me@sn0w.cx>"
+license="GPL-3.0-or-later"
+homepage="https://www.netdata.cloud/"
+distfiles="https://github.com/netdata/go.d.plugin/archive/refs/tags/v${version}.tar.gz"
+checksum=7062325e73520c501cc8aac4b298dec2471109120b8bb92e442e9394b4365c3b
+
+do_install() {
+ vmkdir usr/lib/netdata/conf.d
+ vcopy config/go.d usr/lib/netdata/conf.d
+ vcopy config/go.d.conf usr/lib/netdata/conf.d
+
+ for f in ${GOPATH}/bin/* ${GOPATH}/bin/**/*; do
+ if [ -f "$f" ] && [ -x "$f" ]; then
+ vinstall "$f" 755 usr/lib/netdata/plugins.d go.d.plugin
+ break
+ fi
+ done
+}
next prev parent reply other threads:[~2022-12-14 16:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-14 6:36 [PR PATCH] " realsn0w
2022-12-14 13:40 ` leahneukirchen
2022-12-14 13:42 ` leahneukirchen
2022-12-14 16:41 ` realsn0w
2022-12-14 16:43 ` realsn0w [this message]
2022-12-18 19:16 ` [PR PATCH] [Merged]: " leahneukirchen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221214164334.SNksMT-97E9eK7sNaierwlP3pFbjrrPynru3B4x4W7E@z \
--to=realsn0w@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).