From 3f4856c1aabdc04935020f51fa18dd510f84a69c Mon Sep 17 00:00:00 2001 From: Patrick Vacek Date: Fri, 27 Apr 2018 12:08:25 +0200 Subject: Provide recipe to disable sending ip (PRO-5297). Obviates the need for SOTA_CLIENT_FEATURES = "disable_send_ip". --- recipes-sota/config/aktualizr-disable-send-ip.bb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 recipes-sota/config/aktualizr-disable-send-ip.bb (limited to 'recipes-sota/config/aktualizr-disable-send-ip.bb') diff --git a/recipes-sota/config/aktualizr-disable-send-ip.bb b/recipes-sota/config/aktualizr-disable-send-ip.bb new file mode 100644 index 0000000..32c55f3 --- /dev/null +++ b/recipes-sota/config/aktualizr-disable-send-ip.bb @@ -0,0 +1,23 @@ +SUMMARY = "Disable IP reporting in Aktualizr" +DESCRIPTION = "Configures aktualizr to disable IP reporting to the server" +HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" +SECTION = "base" +LICENSE = "MPL-2.0" +LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=9741c346eef56131163e13b9db1241b3" + +DEPENDS = "aktualizr " +SRC_URI = " \ + file://LICENSE \ + " + +do_install_append () { + install -m 0700 -d ${D}${libdir}/sota/conf.d + echo "[telemetry]\nreport_network = false\n" > ${D}${libdir}/sota/conf.d/disable-send-ip.toml +} + +FILES_${PN} = " \ + ${libdir}/sota/conf.d/disable-send-ip.toml \ + " + +# vim:set ts=4 sw=4 sts=4 expandtab: + -- cgit v1.2.3-54-g00ecf