diff options
| -rw-r--r-- | meta-webserver/recipes-webadmin/netdata/netdata_1.47.5.bb | 20 |
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" | |||
| 75 | PACKAGECONFIG[systemd] = "-DENABLE_PLUGIN_SYSTEMD_JOURNAL=ON,-DENABLE_PLUGIN_SYSTEMD_JOURNAL=OFF,systemd" | 75 | PACKAGECONFIG[systemd] = "-DENABLE_PLUGIN_SYSTEMD_JOURNAL=ON,-DENABLE_PLUGIN_SYSTEMD_JOURNAL=OFF,systemd" |
| 76 | PACKAGECONFIG[docker] = ",,virtual/docker, virtual/docker" | 76 | PACKAGECONFIG[docker] = ",,virtual/docker, virtual/docker" |
| 77 | PACKAGECONFIG[go] = "-DENABLE_PLUGIN_GO=ON, -DENABLE_PLUGIN_GO=OFF" | 77 | PACKAGECONFIG[go] = "-DENABLE_PLUGIN_GO=ON, -DENABLE_PLUGIN_GO=OFF" |
| 78 | # WebUI (packageconfig not set: v0, v1 & v2) | ||
| 79 | PACKAGECONFIG[webui_v0] = ",,,,,webui_v1 webui_v2" | ||
| 80 | PACKAGECONFIG[webui_v1] = ",,,,,webui_v0 webui_v2" | ||
| 81 | PACKAGECONFIG[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 |
| 80 | EXTRA_OECMAKE += "-DENABLE_PLUGIN_EBPF=OFF -DBUILD_FOR_PACKAGING=${@bb.utils.contains('DISTRO_FEATURES','systemd','ON','OFF',d)} \ | 84 | EXTRA_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 | ||
