summaryrefslogtreecommitdiffstats
path: root/recipes-sota/aktualizr/aktualizr-auto-prov.bb
diff options
context:
space:
mode:
authorLeon Anavi <leon.anavi@konsulko.com>2017-09-11 11:08:00 +0300
committerLeon Anavi <leon.anavi@konsulko.com>2017-09-11 14:53:31 +0300
commit975c98c334e2f70cc61a4eb490091eaafa256aa7 (patch)
tree4025a368a1301c4772322c26748c5a0d4b108153 /recipes-sota/aktualizr/aktualizr-auto-prov.bb
parenta9a01b8adb1cbee1542e037f8a5df04f5740dca3 (diff)
downloadmeta-updater-975c98c334e2f70cc61a4eb490091eaafa256aa7.tar.gz
aktualizr-auto-prov.bb: Aktualizr configuraitons
Provide Aktualizr systemd service and configurations for manual and autoprovision in a separate recipe. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Diffstat (limited to 'recipes-sota/aktualizr/aktualizr-auto-prov.bb')
-rw-r--r--recipes-sota/aktualizr/aktualizr-auto-prov.bb39
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-auto-prov.bb b/recipes-sota/aktualizr/aktualizr-auto-prov.bb
new file mode 100644
index 0000000..054b5cd
--- /dev/null
+++ b/recipes-sota/aktualizr/aktualizr-auto-prov.bb
@@ -0,0 +1,39 @@
1SUMMARY = "Aktualizr systemd service and configurations"
2DESCRIPTION = "Systemd service and configurations for Aktualizr, the SOTA Client application written in C++"
3HOMEPAGE = "https://github.com/advancedtelematic/aktualizr"
4SECTION = "base"
5LICENSE = "MPL-2.0"
6LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=9741c346eef56131163e13b9db1241b3"
7RDEPENDS_${PN} = "aktualizr"
8
9SRC_URI = " \
10 file://LICENSE \
11 file://aktualizr-manual-provision.service \
12 file://aktualizr-autoprovision.service \
13 file://sota_autoprov.toml \
14 "
15PV = "1.0"
16PR = "6"
17
18SYSTEMD_SERVICE_${PN} = "aktualizr.service"
19
20inherit systemd
21
22export SOTA_PACKED_CREDENTIALS
23
24do_install_append() {
25 if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then
26 install -d ${D}/${systemd_unitdir}/system
27 install -m 0644 ${WORKDIR}/aktualizr-autoprovision.service ${D}/${systemd_unitdir}/system/aktualizr.service
28 install -d ${D}/usr/lib/sota
29 install -m "0644" ${WORKDIR}/sota_autoprov.toml ${D}/usr/lib/sota/sota.toml
30 else
31 install -d ${D}/${systemd_unitdir}/system
32 install -m 0644 ${WORKDIR}/aktualizr-manual-provision.service ${D}/${systemd_unitdir}/system/aktualizr.service
33 fi
34}
35
36FILES_${PN} = " \
37 ${systemd_unitdir}/system/aktualizr.service \
38 /usr/lib/sota/sota.toml \
39 "