summaryrefslogtreecommitdiffstats
path: root/recipes-sota/config/aktualizr-virtualsec.bb
blob: b7d55aaa14966bcb55478639086acc440b144ae6 (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
SUMMARY = "Example virtual secondary in aktualizr"
DESCRIPTION = "Creates an example virtual secondary to be used to update an arbitrary file on the primary"
HOMEPAGE = "https://github.com/advancedtelematic/aktualizr"
SECTION = "base"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad"

inherit allarch

SRC_URI = " \
            file://30-virtualsec.toml \
            file://virtualsec.json \
            "

do_install_append () {
    install -m 0700 -d ${D}${libdir}/sota/conf.d
    install -m 0644 ${WORKDIR}/30-virtualsec.toml ${D}${libdir}/sota/conf.d/30-virtualsec.toml
    install -m 0644 ${WORKDIR}/virtualsec.json ${D}${libdir}/sota/virtualsec.json
}

FILES_${PN} = " \
                ${libdir}/sota/conf.d/30-virtualsec.toml \
                ${libdir}/sota/virtualsec.json \
                "

# vim:set ts=4 sw=4 sts=4 expandtab: