blob: 359c9fbb2899f909a3447923514bde0be8ff3c09 (
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 = "c24f1fc9b600113cf9f2d3d7215e406cbbb70ac4"
PV = "1.0+git${SRCPV}"
S = "${WORKDIR}/git"
SYSTEMD_SERVICE_${PN} = "aktualizr.service"
inherit cmake systemd
EXTRA_OECMAKE = "-DWARNING_AS_ERROR=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF -DBUILD_OSTREE=ON -DAKTUALIZR_VERSION=${PV}"
export SOTA_AUTOPROVISION_CREDENTIALS
export SOTA_PACKED_CREDENTIALS
do_install_append() {
if [ -n "${SOTA_AUTOPROVISION_CREDENTIALS}" -o -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 \
"
|