summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-webadmin
diff options
context:
space:
mode:
authorJan Vermaete <jan.vermaete@gmail.com>2024-11-03 15:30:38 +0100
committerKhem Raj <raj.khem@gmail.com>2024-11-05 09:42:49 -0800
commitfa7ee06bd615e21f48c42668f1d161c16741b9a9 (patch)
tree32bd77ee2a820bd0c75355584e05a93ef4149904 /meta-webserver/recipes-webadmin
parent8c9e65e262b157732ebd2566f9c18c067871bebc (diff)
downloadmeta-openembedded-fa7ee06bd615e21f48c42668f1d161c16741b9a9.tar.gz
netdata: WebUI choice between all (default), v0, v1 or v2
Added a PACKAGECONFIG to select the version of the WebUI to be installed. When not set, all versions (v0, v1 and v2) will be installed. What is the default of Netdata. Enabling only the v1 version makes the package 25% smaller. More info: https://github.com/netdata/netdata/issues/15640#issuecomment-1946041083 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')
-rw-r--r--meta-webserver/recipes-webadmin/netdata/netdata_1.47.5.bb20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-webserver/recipes-webadmin/netdata/netdata_1.47.5.bb b/meta-webserver/recipes-webadmin/netdata/netdata_1.47.5.bb
index 88dbe19e47..7693335dac 100644
--- a/meta-webserver/recipes-webadmin/netdata/netdata_1.47.5.bb
+++ b/meta-webserver/recipes-webadmin/netdata/netdata_1.47.5.bb
@@ -75,6 +75,10 @@ PACKAGECONFIG[cups] = "-DENABLE_PLUGIN_CUPS=ON,-DENABLE_PLUGIN_CUPS=OFF,cups"
75PACKAGECONFIG[systemd] = "-DENABLE_PLUGIN_SYSTEMD_JOURNAL=ON,-DENABLE_PLUGIN_SYSTEMD_JOURNAL=OFF,systemd" 75PACKAGECONFIG[systemd] = "-DENABLE_PLUGIN_SYSTEMD_JOURNAL=ON,-DENABLE_PLUGIN_SYSTEMD_JOURNAL=OFF,systemd"
76PACKAGECONFIG[docker] = ",,virtual/docker, virtual/docker" 76PACKAGECONFIG[docker] = ",,virtual/docker, virtual/docker"
77PACKAGECONFIG[go] = "-DENABLE_PLUGIN_GO=ON, -DENABLE_PLUGIN_GO=OFF" 77PACKAGECONFIG[go] = "-DENABLE_PLUGIN_GO=ON, -DENABLE_PLUGIN_GO=OFF"
78# WebUI (packageconfig not set: v0, v1 & v2)
79PACKAGECONFIG[webui_v0] = ",,,,,webui_v1 webui_v2"
80PACKAGECONFIG[webui_v1] = ",,,,,webui_v0 webui_v2"
81PACKAGECONFIG[webui_v2] = ",,,,,webui_v0 webui_v1"
78 82
79# ebpf doesn't compile (or detect) the cross compilation well 83# ebpf doesn't compile (or detect) the cross compilation well
80EXTRA_OECMAKE += "-DENABLE_PLUGIN_EBPF=OFF -DBUILD_FOR_PACKAGING=${@bb.utils.contains('DISTRO_FEATURES','systemd','ON','OFF',d)} \ 84EXTRA_OECMAKE += "-DENABLE_PLUGIN_EBPF=OFF -DBUILD_FOR_PACKAGING=${@bb.utils.contains('DISTRO_FEATURES','systemd','ON','OFF',d)} \
@@ -123,6 +127,22 @@ do_install:append() {
123 install --group netdata --owner netdata --directory ${D}${localstatedir}/cache/netdata 127 install --group netdata --owner netdata --directory ${D}${localstatedir}/cache/netdata
124 install --group netdata --owner netdata --directory ${D}${localstatedir}/lib/netdata 128 install --group netdata --owner netdata --directory ${D}${localstatedir}/lib/netdata
125 129
130 # webUI
131 if "${@bb.utils.contains('PACKAGECONFIG', 'webui_v0', 'true', 'false', d)}"; then
132 rm -rf ${D}${datadir}/netdata/web/v1
133 rm -rf ${D}${datadir}/netdata/web/v2
134 install -m 0644 ${D}${datadir}/netdata/web/v0/index.html ${D}${datadir}/netdata/web/
135 fi
136 if "${@bb.utils.contains('PACKAGECONFIG', 'webui_v1', 'true', 'false', d)}"; then
137 rm -rf ${D}${datadir}/netdata/web/v0
138 rm -rf ${D}${datadir}/netdata/web/v2
139 install -m 0644 ${D}${datadir}/netdata/web/v1/index.html ${D}${datadir}/netdata/web/
140 fi
141 if "${@bb.utils.contains('PACKAGECONFIG', 'webui_v2', 'true', 'false', d)}"; then
142 rm -rf ${D}${datadir}/netdata/web/v0
143 rm -rf ${D}${datadir}/netdata/web/v1
144 install -m 0644 ${D}${datadir}/netdata/web/v2/index.html ${D}${datadir}/netdata/web/
145 fi
126 chown -R netdata:netdata ${D}${datadir}/netdata/web 146 chown -R netdata:netdata ${D}${datadir}/netdata/web
127} 147}
128 148