diff options
-rw-r--r-- | recipes-sota/aktualizr/aktualizr_git.bb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb index 6ad9577..e02442a 100644 --- a/recipes-sota/aktualizr/aktualizr_git.bb +++ b/recipes-sota/aktualizr/aktualizr_git.bb | |||
@@ -9,37 +9,17 @@ RDEPENDS_${PN} = "lshw" | |||
9 | 9 | ||
10 | SRC_URI = " \ | 10 | SRC_URI = " \ |
11 | git://github.com/advancedtelematic/aktualizr \ | 11 | git://github.com/advancedtelematic/aktualizr \ |
12 | file://aktualizr-manual-provision.service \ | ||
13 | file://aktualizr-autoprovision.service \ | ||
14 | file://sota_autoprov.toml \ | ||
15 | " | 12 | " |
16 | SRCREV = "1004efa3f86cef90c012b34620992b5762b741e3" | 13 | SRCREV = "1004efa3f86cef90c012b34620992b5762b741e3" |
17 | PV = "1.0+git${SRCPV}" | 14 | PV = "1.0+git${SRCPV}" |
18 | PR = "6" | 15 | PR = "6" |
19 | 16 | ||
20 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
21 | SYSTEMD_SERVICE_${PN} = "aktualizr.service" | ||
22 | 18 | ||
23 | inherit cmake systemd | 19 | inherit cmake systemd |
24 | 20 | ||
25 | EXTRA_OECMAKE = "-DWARNING_AS_ERROR=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_OSTREE=ON -DAKTUALIZR_VERSION=${PV}" | 21 | EXTRA_OECMAKE = "-DWARNING_AS_ERROR=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_OSTREE=ON -DAKTUALIZR_VERSION=${PV}" |
26 | 22 | ||
27 | export SOTA_PACKED_CREDENTIALS | ||
28 | |||
29 | do_install_append() { | ||
30 | if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then | ||
31 | install -d ${D}/${systemd_unitdir}/system | ||
32 | install -m 0644 ${WORKDIR}/aktualizr-autoprovision.service ${D}/${systemd_unitdir}/system/aktualizr.service | ||
33 | install -d ${D}/usr/lib/sota | ||
34 | install -m "0644" ${WORKDIR}/sota_autoprov.toml ${D}/usr/lib/sota/sota.toml | ||
35 | else | ||
36 | install -d ${D}/${systemd_unitdir}/system | ||
37 | install -m 0644 ${WORKDIR}/aktualizr-manual-provision.service ${D}/${systemd_unitdir}/system/aktualizr.service | ||
38 | fi | ||
39 | } | ||
40 | |||
41 | FILES_${PN} = " \ | 23 | FILES_${PN} = " \ |
42 | ${bindir}/aktualizr \ | 24 | ${bindir}/aktualizr \ |
43 | ${systemd_unitdir}/system/aktualizr.service \ | ||
44 | /usr/lib/sota/sota.toml \ | ||
45 | " | 25 | " |