diff options
author | Leon Anavi <leon.anavi@konsulko.com> | 2017-09-11 11:08:00 +0300 |
---|---|---|
committer | Leon Anavi <leon.anavi@konsulko.com> | 2017-09-11 14:53:31 +0300 |
commit | 975c98c334e2f70cc61a4eb490091eaafa256aa7 (patch) | |
tree | 4025a368a1301c4772322c26748c5a0d4b108153 /recipes-sota/aktualizr/aktualizr-auto-prov.bb | |
parent | a9a01b8adb1cbee1542e037f8a5df04f5740dca3 (diff) | |
download | meta-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.bb | 39 |
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 @@ | |||
1 | SUMMARY = "Aktualizr systemd service and configurations" | ||
2 | DESCRIPTION = "Systemd service and configurations for Aktualizr, the SOTA Client application written in C++" | ||
3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | ||
4 | SECTION = "base" | ||
5 | LICENSE = "MPL-2.0" | ||
6 | LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=9741c346eef56131163e13b9db1241b3" | ||
7 | RDEPENDS_${PN} = "aktualizr" | ||
8 | |||
9 | SRC_URI = " \ | ||
10 | file://LICENSE \ | ||
11 | file://aktualizr-manual-provision.service \ | ||
12 | file://aktualizr-autoprovision.service \ | ||
13 | file://sota_autoprov.toml \ | ||
14 | " | ||
15 | PV = "1.0" | ||
16 | PR = "6" | ||
17 | |||
18 | SYSTEMD_SERVICE_${PN} = "aktualizr.service" | ||
19 | |||
20 | inherit systemd | ||
21 | |||
22 | export SOTA_PACKED_CREDENTIALS | ||
23 | |||
24 | do_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 | |||
36 | FILES_${PN} = " \ | ||
37 | ${systemd_unitdir}/system/aktualizr.service \ | ||
38 | /usr/lib/sota/sota.toml \ | ||
39 | " | ||