diff options
Diffstat (limited to 'recipes-sota/aktualizr/aktualizr-shared-prov.bb')
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-shared-prov.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-shared-prov.bb b/recipes-sota/aktualizr/aktualizr-shared-prov.bb new file mode 100644 index 0000000..d3d6f16 --- /dev/null +++ b/recipes-sota/aktualizr/aktualizr-shared-prov.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | SUMMARY = "Aktualizr configuration for shared credential provisioning" | ||
2 | DESCRIPTION = "Configuration for provisioning Aktualizr with shared credentials" | ||
3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | ||
4 | SECTION = "base" | ||
5 | LICENSE = "MPL-2.0" | ||
6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad" | ||
7 | |||
8 | inherit allarch | ||
9 | |||
10 | DEPENDS = "aktualizr-native zip-native" | ||
11 | RDEPENDS_${PN}_append = "${@' aktualizr-shared-prov-creds' if d.getVar('SOTA_DEPLOY_CREDENTIALS') == '1' else ''}" | ||
12 | PV = "1.0" | ||
13 | PR = "6" | ||
14 | |||
15 | SRC_URI = "" | ||
16 | |||
17 | require credentials.inc | ||
18 | |||
19 | do_install() { | ||
20 | if [ -n "${SOTA_AUTOPROVISION_CREDENTIALS}" ]; then | ||
21 | bbwarn "SOTA_AUTOPROVISION_CREDENTIALS are ignored. Please use SOTA_PACKED_CREDENTIALS" | ||
22 | fi | ||
23 | if [ -n "${SOTA_AUTOPROVISION_URL}" ]; then | ||
24 | bbwarn "SOTA_AUTOPROVISION_URL is ignored. Please use SOTA_PACKED_CREDENTIALS" | ||
25 | fi | ||
26 | if [ -n "${SOTA_AUTOPROVISION_URL_FILE}" ]; then | ||
27 | bbwarn "SOTA_AUTOPROVISION_URL_FILE is ignored. Please use SOTA_PACKED_CREDENTIALS" | ||
28 | fi | ||
29 | if [ -n "${OSTREE_PUSH_CREDENTIALS}" ]; then | ||
30 | bbwarn "OSTREE_PUSH_CREDENTIALS is ignored. Please use SOTA_PACKED_CREDENTIALS" | ||
31 | fi | ||
32 | |||
33 | install -m 0700 -d ${D}${libdir}/sota/conf.d | ||
34 | install -m 0644 ${STAGING_DIR_NATIVE}${libdir}/sota/sota-shared-cred.toml \ | ||
35 | ${D}${libdir}/sota/conf.d/20-sota-shared-cred.toml | ||
36 | } | ||
37 | |||
38 | FILES_${PN} = " \ | ||
39 | ${libdir}/sota/conf.d \ | ||
40 | ${libdir}/sota/conf.d/20-sota-shared-cred.toml \ | ||
41 | " | ||
42 | |||
43 | # vim:set ts=4 sw=4 sts=4 expandtab: | ||