summaryrefslogtreecommitdiffstats
path: root/recipes-sota/aktualizr/aktualizr_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-sota/aktualizr/aktualizr_git.bb')
-rw-r--r--recipes-sota/aktualizr/aktualizr_git.bb20
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
10SRC_URI = " \ 10SRC_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 "
16SRCREV = "1004efa3f86cef90c012b34620992b5762b741e3" 13SRCREV = "1004efa3f86cef90c012b34620992b5762b741e3"
17PV = "1.0+git${SRCPV}" 14PV = "1.0+git${SRCPV}"
18PR = "6" 15PR = "6"
19 16
20S = "${WORKDIR}/git" 17S = "${WORKDIR}/git"
21SYSTEMD_SERVICE_${PN} = "aktualizr.service"
22 18
23inherit cmake systemd 19inherit cmake systemd
24 20
25EXTRA_OECMAKE = "-DWARNING_AS_ERROR=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_OSTREE=ON -DAKTUALIZR_VERSION=${PV}" 21EXTRA_OECMAKE = "-DWARNING_AS_ERROR=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_OSTREE=ON -DAKTUALIZR_VERSION=${PV}"
26 22
27export SOTA_PACKED_CREDENTIALS
28
29do_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
41FILES_${PN} = " \ 23FILES_${PN} = " \
42 ${bindir}/aktualizr \ 24 ${bindir}/aktualizr \
43 ${systemd_unitdir}/system/aktualizr.service \
44 /usr/lib/sota/sota.toml \
45 " 25 "