diff options
| author | Jan Vermaete <jan.vermaete@gmail.com> | 2022-02-16 21:36:02 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-02-17 11:12:44 -0800 |
| commit | 5c379cf62588c4e2365570010bcb115d5360e930 (patch) | |
| tree | 1c214ee89e2a34bc0223ac3bd9272dfde0953779 /meta-webserver/recipes-webadmin/netdata/netdata_1.33.1.bb | |
| parent | f967602a43cede3e78cba4d2197035b2d72bc50b (diff) | |
| download | meta-openembedded-5c379cf62588c4e2365570010bcb115d5360e930.tar.gz | |
netdata: version bump 1.33.0 -> 1.33.1
https can now be enabled (default) or disabled.
The lz4 patch is now in this release.
Package size increase of 2%
Tested on RaspberryPi4-64
Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-webserver/recipes-webadmin/netdata/netdata_1.33.1.bb')
| -rw-r--r-- | meta-webserver/recipes-webadmin/netdata/netdata_1.33.1.bb | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/meta-webserver/recipes-webadmin/netdata/netdata_1.33.1.bb b/meta-webserver/recipes-webadmin/netdata/netdata_1.33.1.bb new file mode 100644 index 0000000000..2004670f62 --- /dev/null +++ b/meta-webserver/recipes-webadmin/netdata/netdata_1.33.1.bb | |||
| @@ -0,0 +1,80 @@ | |||
| 1 | HOMEPAGE = "https://github.com/netdata/netdata/" | ||
| 2 | SUMMARY = "Real-time performance monitoring" | ||
| 3 | DESCRIPTION = "Netdata is high-fidelity infrastructure monitoring and troubleshooting. \ | ||
| 4 | Open-source, free, preconfigured, opinionated, and always real-time." | ||
| 5 | LICENSE = "GPLv3" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=fc9b848046ef54b5eaee6071947abd24" | ||
| 7 | |||
| 8 | DEPENDS += "libuv util-linux zlib" | ||
| 9 | |||
| 10 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BPN}-v${PV}.tar.gz" | ||
| 11 | SRC_URI[sha256sum] = "20ba8695d87187787b27128ac3aab9b09aa29ca6b508c48542e0f7d50ec9322b" | ||
| 12 | |||
| 13 | # default netdata.conf for netdata configuration | ||
| 14 | SRC_URI += "file://netdata.conf" | ||
| 15 | |||
| 16 | # file for providing systemd service support | ||
| 17 | SRC_URI += "file://netdata.service" | ||
| 18 | |||
| 19 | UPSTREAM_CHECK_URI = "https://github.com/netdata/netdata/releases" | ||
| 20 | |||
| 21 | S = "${WORKDIR}/${BPN}-v${PV}" | ||
| 22 | |||
| 23 | # Stop sending anonymous statistics to Google Analytics | ||
| 24 | NETDATA_ANONYMOUS ??= "enabled" | ||
| 25 | |||
| 26 | inherit pkgconfig autotools-brokensep useradd systemd | ||
| 27 | |||
| 28 | LIBS:toolchain-clang:x86 = "-latomic" | ||
| 29 | LIBS:riscv64 = "-latomic" | ||
| 30 | LIBS:riscv32 = "-latomic" | ||
| 31 | LIBS:mips = "-latomic" | ||
| 32 | export LIBS | ||
| 33 | |||
| 34 | #systemd | ||
| 35 | SYSTEMD_PACKAGES = "${PN}" | ||
| 36 | SYSTEMD_SERVICE:${PN} = "netdata.service" | ||
| 37 | SYSTEMD_AUTO_ENABLE:${PN} = "enable" | ||
| 38 | |||
| 39 | #User specific | ||
| 40 | USERADD_PACKAGES = "${PN}" | ||
| 41 | USERADD_PARAM:${PN} = "--system --no-create-home --home-dir ${localstatedir}/run/netdata --user-group netdata" | ||
| 42 | |||
| 43 | PACKAGECONFIG ??= "https" | ||
| 44 | PACKAGECONFIG[compression] = "--enable-compression, --disable-compression, lz4" | ||
| 45 | PACKAGECONFIG[https] = "--enable-https, --disable-https, openssl" | ||
| 46 | |||
| 47 | # ebpf doesn't compile (or detect) the cross compilation well | ||
| 48 | EXTRA_OECONF += "--disable-ebpf" | ||
| 49 | |||
| 50 | do_install:append() { | ||
| 51 | #set S UID for plugins | ||
| 52 | chmod 4755 ${D}${libexecdir}/netdata/plugins.d/apps.plugin | ||
| 53 | |||
| 54 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
| 55 | # Install systemd unit files | ||
| 56 | install -d ${D}${systemd_unitdir}/system | ||
| 57 | install -m 0644 ${WORKDIR}/netdata.service ${D}${systemd_unitdir}/system | ||
| 58 | sed -i -e 's,@@datadir,${datadir_native},g' ${D}${systemd_unitdir}/system/netdata.service | ||
| 59 | fi | ||
| 60 | |||
| 61 | # Install default netdata.conf | ||
| 62 | install -d ${D}${sysconfdir}/netdata | ||
| 63 | install -m 0644 ${WORKDIR}/netdata.conf ${D}${sysconfdir}/netdata/ | ||
| 64 | sed -i -e 's,@@sysconfdir,${sysconfdir},g' ${D}${sysconfdir}/netdata/netdata.conf | ||
| 65 | sed -i -e 's,@@libdir,${libexecdir},g' ${D}${sysconfdir}/netdata/netdata.conf | ||
| 66 | sed -i -e 's,@@datadir,${datadir},g' ${D}${sysconfdir}/netdata/netdata.conf | ||
| 67 | |||
| 68 | if [ "${NETDATA_ANONYMOUS}" = "enabled" ]; then | ||
| 69 | touch ${D}${sysconfdir}/netdata/.opt-out-from-anonymous-statistics | ||
| 70 | fi | ||
| 71 | |||
| 72 | install --group netdata --owner netdata --directory ${D}${localstatedir}/cache/netdata | ||
| 73 | install --group netdata --owner netdata --directory ${D}${localstatedir}/lib/netdata | ||
| 74 | |||
| 75 | chown -R netdata:netdata ${D}${datadir}/netdata/web | ||
| 76 | } | ||
| 77 | |||
| 78 | FILES_${PN} += "${localstatedir}/cache/netdata/ ${localstatedir}/lib/netdata/" | ||
| 79 | |||
| 80 | RDEPENDS:${PN} = "bash zlib" | ||
