The previous commit was using a PACKAGECONFIG to enable or disable
the sending of anonymous data to Google Analytics.
This was giving QA issues.

Now the variable 'NETDATA_ANONYMOUS' is used to enable or disable
the opt-out.

Signed-off-by: Jan Vermaete <[email protected]>
---
 meta-webserver/recipes-webadmin/netdata/netdata_1.32.1.bb | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/meta-webserver/recipes-webadmin/netdata/netdata_1.32.1.bb 
b/meta-webserver/recipes-webadmin/netdata/netdata_1.32.1.bb
index 6824dd725..dbce1c432 100644
--- a/meta-webserver/recipes-webadmin/netdata/netdata_1.32.1.bb
+++ b/meta-webserver/recipes-webadmin/netdata/netdata_1.32.1.bb
@@ -20,9 +20,8 @@ UPSTREAM_CHECK_URI = 
"https://github.com/netdata/netdata/releases";
 
 S = "${WORKDIR}/${BPN}-v${PV}"
 
-PACKAGECONFIG ??= "\
-    anonymous \
-"
+# Stop sending anonymous statistics to Google Analytics
+NETDATA_ANONYMOUS ??= "enabled"
 
 inherit pkgconfig autotools-brokensep useradd systemd
 
@@ -62,8 +61,7 @@ do_install:append() {
     sed -i -e 's,@@libdir,${libexecdir},g' 
${D}${sysconfdir}/netdata/netdata.conf
     sed -i -e 's,@@datadir,${datadir},g' ${D}${sysconfdir}/netdata/netdata.conf
 
-    # Stop sending anonymous statistics to Google Analytics
-    if ${@bb.utils.contains('PACKAGECONFIG', 'anonymous', 'true', 'false', 
d)}; then
+    if [ "${NETDATA_ANONYMOUS}" = "enabled" ]; then
         touch ${D}${sysconfdir}/netdata/.opt-out-from-anonymous-statistics
     fi
 
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#94488): 
https://lists.openembedded.org/g/openembedded-devel/message/94488
Mute This Topic: https://lists.openembedded.org/mt/87923776/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to