diff options
| -rw-r--r-- | meta-webserver/recipes-webadmin/netdata/netdata/netdata-volatiles.conf | 5 | ||||
| -rw-r--r-- | meta-webserver/recipes-webadmin/netdata/netdata_1.47.0.bb (renamed from meta-webserver/recipes-webadmin/netdata/netdata_1.44.3.bb) | 29 |
2 files changed, 25 insertions, 9 deletions
diff --git a/meta-webserver/recipes-webadmin/netdata/netdata/netdata-volatiles.conf b/meta-webserver/recipes-webadmin/netdata/netdata/netdata-volatiles.conf new file mode 100644 index 0000000000..f342542077 --- /dev/null +++ b/meta-webserver/recipes-webadmin/netdata/netdata/netdata-volatiles.conf | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | d /run/netdata 0755 netdata netdata - | ||
| 2 | d /var/cache/netdata 0755 netdata netdata - | ||
| 3 | d /var/lib/netdata/cloud.d 0755 netdata netdata - | ||
| 4 | d /var/lib/netdata/registry 0755 netdata netdata - | ||
| 5 | d /var/log/netdata 0755 netdata netdata - | ||
diff --git a/meta-webserver/recipes-webadmin/netdata/netdata_1.44.3.bb b/meta-webserver/recipes-webadmin/netdata/netdata_1.47.0.bb index b06a5df314..9fa322b74c 100644 --- a/meta-webserver/recipes-webadmin/netdata/netdata_1.44.3.bb +++ b/meta-webserver/recipes-webadmin/netdata/netdata_1.47.0.bb | |||
| @@ -5,15 +5,15 @@ HOMEPAGE = "https://github.com/netdata/netdata/" | |||
| 5 | LICENSE = "GPL-3.0-only" | 5 | LICENSE = "GPL-3.0-only" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=fc9b848046ef54b5eaee6071947abd24" | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=fc9b848046ef54b5eaee6071947abd24" |
| 7 | 7 | ||
| 8 | DEPENDS += "json-c libuv libyaml util-linux zlib " | 8 | DEPENDS += "json-c libuv libyaml util-linux zlib lz4" |
| 9 | 9 | ||
| 10 | SRC_URI = "\ | 10 | SRC_URI = "\ |
| 11 | https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BPN}-v${PV}.tar.gz \ | 11 | https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BPN}-v${PV}.tar.gz \ |
| 12 | file://netdata.conf \ | 12 | file://netdata.conf \ |
| 13 | file://netdata.service \ | 13 | file://netdata.service \ |
| 14 | file://netdata-volatiles.conf \ | ||
| 14 | " | 15 | " |
| 15 | 16 | SRC_URI[sha256sum] = "6735222ffcff941508b92c8edddc26fbcd719b15880be4911d77fbfd9dbd9a1d" | |
| 16 | SRC_URI[sha256sum] = "50df30a9aaf60d550eb8e607230d982827e04194f7df3eba0e83ff7919270ad2" | ||
| 17 | 17 | ||
| 18 | UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/tags" | 18 | UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/tags" |
| 19 | UPSTREAM_CHECK_REGEX = "${BPN}/releases/tag/v(?P<pver>\d+(?:\.\d+)*)" | 19 | UPSTREAM_CHECK_REGEX = "${BPN}/releases/tag/v(?P<pver>\d+(?:\.\d+)*)" |
| @@ -23,7 +23,9 @@ S = "${WORKDIR}/${BPN}-v${PV}" | |||
| 23 | # Stop sending anonymous statistics to Google Analytics | 23 | # Stop sending anonymous statistics to Google Analytics |
| 24 | NETDATA_ANONYMOUS ??= "enabled" | 24 | NETDATA_ANONYMOUS ??= "enabled" |
| 25 | 25 | ||
| 26 | inherit pkgconfig autotools-brokensep useradd systemd | 26 | inherit pkgconfig cmake useradd systemd |
| 27 | |||
| 28 | TARGET_CC_ARCH:append:libc-musl = " -D_LARGEFILE64_SOURCE" | ||
| 27 | 29 | ||
| 28 | LIBS:toolchain-clang:x86 = "-latomic" | 30 | LIBS:toolchain-clang:x86 = "-latomic" |
| 29 | LIBS:riscv64 = "-latomic" | 31 | LIBS:riscv64 = "-latomic" |
| @@ -40,23 +42,32 @@ SYSTEMD_AUTO_ENABLE:${PN} = "enable" | |||
| 40 | USERADD_PACKAGES = "${PN}" | 42 | USERADD_PACKAGES = "${PN}" |
| 41 | USERADD_PARAM:${PN} = "--system --no-create-home --home-dir ${localstatedir}/run/netdata --user-group netdata" | 43 | USERADD_PARAM:${PN} = "--system --no-create-home --home-dir ${localstatedir}/run/netdata --user-group netdata" |
| 42 | 44 | ||
| 43 | PACKAGECONFIG ??= "openssl" | 45 | PACKAGECONFIG ??= "openssl freeipmi ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
| 44 | PACKAGECONFIG[cloud] = "--enable-cloud, --disable-cloud," | 46 | PACKAGECONFIG[brotli] = ",,brotli" |
| 45 | PACKAGECONFIG[lz4] = "--enable-lz4, --disable-lz4, lz4" | 47 | PACKAGECONFIG[cloud] = "-DENABLE_CLOUD=ON,-DENABLE_CLOUD=OFF," |
| 46 | PACKAGECONFIG[openssl] = "--enable-openssl, --disable-openssl, openssl" | 48 | PACKAGECONFIG[openssl] = "-DENABLE_OPENSSL=ON,-DENABLE_OPENSSL=OFF,openssl" |
| 49 | PACKAGECONFIG[freeipmi] = "-DENABLE_PLUGIN_FREEIPMI=ON,-DENABLE_PLUGIN_FREEIPMI=OFF,freeipmi" | ||
| 50 | PACKAGECONFIG[nfacct] = "-DENABLE_PLUGIN_NFACCT=ON,-DENABLE_PLUGIN_NFACCT=OFF,libmnl" | ||
| 51 | # needs meta-virtualization | ||
| 52 | PACKAGECONFIG[xenstat] = "-DENABLE_PLUGIN_XENSTAT=ON,-DENABLE_PLUGIN_XENSTAT=OFF,xen-tools" | ||
| 53 | PACKAGECONFIG[cups] = "-DENABLE_PLUGIN_CUPS=ON,-DENABLE_PLUGIN_CUPS=OFF,cups" | ||
| 54 | PACKAGECONFIG[systemd] = "-DENABLE_PLUGIN_SYSTEMD_JOURNAL=ON,-DENABLE_PLUGIN_SYSTEMD_JOURNAL=OFF,systemd" | ||
| 47 | 55 | ||
| 48 | # ebpf doesn't compile (or detect) the cross compilation well | 56 | # ebpf doesn't compile (or detect) the cross compilation well |
| 49 | EXTRA_OECONF += "--disable-ebpf" | 57 | EXTRA_OECMAKE += "-DENABLE_PLUGIN_EBPF=OFF -DENABLE_PLUGIN_GO=OFF \ |
| 58 | -DENABLE_ACLK=OFF -DENABLE_EXPORTER_PROMETHEUS_REMOTE_WRITE=OFF -DCMAKE_INSTALL_PREFIX='${base_prefix}'" | ||
| 50 | 59 | ||
| 51 | do_install:append() { | 60 | do_install:append() { |
| 52 | #set S UID for plugins | 61 | #set S UID for plugins |
| 53 | chmod 4755 ${D}${libexecdir}/netdata/plugins.d/apps.plugin | 62 | chmod 4755 ${D}${libexecdir}/netdata/plugins.d/apps.plugin |
| 63 | rm -rf ${D}/${localstatedir}/ | ||
| 54 | 64 | ||
| 55 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | 65 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
| 56 | # Install systemd unit files | 66 | # Install systemd unit files |
| 57 | install -d ${D}${systemd_unitdir}/system | 67 | install -d ${D}${systemd_unitdir}/system |
| 58 | install -m 0644 ${UNPACKDIR}/netdata.service ${D}${systemd_unitdir}/system | 68 | install -m 0644 ${UNPACKDIR}/netdata.service ${D}${systemd_unitdir}/system |
| 59 | sed -i -e 's,@@datadir,${datadir_native},g' ${D}${systemd_unitdir}/system/netdata.service | 69 | sed -i -e 's,@@datadir,${datadir_native},g' ${D}${systemd_unitdir}/system/netdata.service |
| 70 | install -Dm 0644 ${UNPACKDIR}/netdata-volatiles.conf ${D}${sysconfdir}/tmpfiles.d/netdata.conf | ||
| 60 | fi | 71 | fi |
| 61 | 72 | ||
| 62 | # Install default netdata.conf | 73 | # Install default netdata.conf |
