blob: 6ad9577ceaf44c816db7b51dcfb874c66b364c39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
SUMMARY = "Aktualizr SOTA Client"
DESCRIPTION = "SOTA Client application written in C++"
HOMEPAGE = "https://github.com/advancedtelematic/aktualizr"
SECTION = "base"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=9741c346eef56131163e13b9db1241b3"
DEPENDS = "boost curl openssl jansson libsodium ostree"
RDEPENDS_${PN} = "lshw"
SRC_URI = " \
git://github.com/advancedtelematic/aktualizr \
file://aktualizr-manual-provision.service \
file://aktualizr-autoprovision.service \
file://sota_autoprov.toml \
"
SRCREV = "1004efa3f86cef90c012b34620992b5762b741e3"
PV = "1.0+git${SRCPV}"
PR = "6"
S = "${WORKDIR}/git"
SYSTEMD_SERVICE_${PN} = "aktualizr.service"
inherit cmake systemd
EXTRA_OECMAKE = "-DWARNING_AS_ERROR=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_OSTREE=ON -DAKTUALIZR_VERSION=${PV}"
export SOTA_PACKED_CREDENTIALS
do_install_append() {
if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then
install -d ${D}/${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/aktualizr-autoprovision.service ${D}/${systemd_unitdir}/system/aktualizr.service
install -d ${D}/usr/lib/sota
install -m "0644" ${WORKDIR}/sota_autoprov.toml ${D}/usr/lib/sota/sota.toml
else
install -d ${D}/${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/aktualizr-manual-provision.service ${D}/${systemd_unitdir}/system/aktualizr.service
fi
}
FILES_${PN} = " \
${bindir}/aktualizr \
${systemd_unitdir}/system/aktualizr.service \
/usr/lib/sota/sota.toml \
"
|