summaryrefslogtreecommitdiffstats
path: root/recipes-sota/config/aktualizr-virtualsec.bb
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2019-10-10 13:49:50 +0200
committerPatrick Vacek <patrickvacek@gmail.com>2019-10-10 14:01:47 +0200
commite26ead04a52938134e9d4a122ee4b51c36a6dd60 (patch)
treecd0666cb3d8ea325be902a8461f684ea060dd275 /recipes-sota/config/aktualizr-virtualsec.bb
parent7cad55821f0cc9f379b689afc6325bdb0cb1eff3 (diff)
downloadmeta-updater-e26ead04a52938134e9d4a122ee4b51c36a6dd60.tar.gz
Example config for a virtual secondary.
Useful for updating an arbitrary file in /var. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Diffstat (limited to 'recipes-sota/config/aktualizr-virtualsec.bb')
-rw-r--r--recipes-sota/config/aktualizr-virtualsec.bb27
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes-sota/config/aktualizr-virtualsec.bb b/recipes-sota/config/aktualizr-virtualsec.bb
new file mode 100644
index 0000000..b7d55aa
--- /dev/null
+++ b/recipes-sota/config/aktualizr-virtualsec.bb
@@ -0,0 +1,27 @@
1SUMMARY = "Example virtual secondary in aktualizr"
2DESCRIPTION = "Creates an example virtual secondary to be used to update an arbitrary file on the primary"
3HOMEPAGE = "https://github.com/advancedtelematic/aktualizr"
4SECTION = "base"
5LICENSE = "MPL-2.0"
6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad"
7
8inherit allarch
9
10SRC_URI = " \
11 file://30-virtualsec.toml \
12 file://virtualsec.json \
13 "
14
15do_install_append () {
16 install -m 0700 -d ${D}${libdir}/sota/conf.d
17 install -m 0644 ${WORKDIR}/30-virtualsec.toml ${D}${libdir}/sota/conf.d/30-virtualsec.toml
18 install -m 0644 ${WORKDIR}/virtualsec.json ${D}${libdir}/sota/virtualsec.json
19}
20
21FILES_${PN} = " \
22 ${libdir}/sota/conf.d/30-virtualsec.toml \
23 ${libdir}/sota/virtualsec.json \
24 "
25
26# vim:set ts=4 sw=4 sts=4 expandtab:
27