mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-02 13:59:59 +00:00
netdata: do not send anonymous statistics by default.
Netdata is sending anonymous statics data to Google by default. Disabling this by default in the recipe by adding the .opt-out-from-anonymous-statistics file in the netdata config directory. @see: https://learn.netdata.cloud/docs/agent/anonymous-statistics#opt-out Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -20,6 +20,10 @@ UPSTREAM_CHECK_URI = "https://github.com/netdata/netdata/releases"
|
|||||||
|
|
||||||
S = "${WORKDIR}/${BPN}-v${PV}"
|
S = "${WORKDIR}/${BPN}-v${PV}"
|
||||||
|
|
||||||
|
PACKAGECONFIG ??= "\
|
||||||
|
anonymous \
|
||||||
|
"
|
||||||
|
|
||||||
inherit pkgconfig autotools-brokensep useradd systemd
|
inherit pkgconfig autotools-brokensep useradd systemd
|
||||||
|
|
||||||
LIBS:toolchain-clang:x86 = "-latomic"
|
LIBS:toolchain-clang:x86 = "-latomic"
|
||||||
@@ -58,6 +62,11 @@ do_install:append() {
|
|||||||
sed -i -e 's,@@libdir,${libexecdir},g' ${D}${sysconfdir}/netdata/netdata.conf
|
sed -i -e 's,@@libdir,${libexecdir},g' ${D}${sysconfdir}/netdata/netdata.conf
|
||||||
sed -i -e 's,@@datadir,${datadir},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
|
||||||
|
touch ${D}${sysconfdir}/netdata/.opt-out-from-anonymous-statistics
|
||||||
|
fi
|
||||||
|
|
||||||
install --group netdata --owner netdata --directory ${D}${localstatedir}/cache/netdata
|
install --group netdata --owner netdata --directory ${D}${localstatedir}/cache/netdata
|
||||||
install --group netdata --owner netdata --directory ${D}${localstatedir}/lib/netdata
|
install --group netdata --owner netdata --directory ${D}${localstatedir}/lib/netdata
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user