diff options
Diffstat (limited to 'recipes-sota/rvi-sota-client/rvi-sota-client_git.bb')
| -rw-r--r-- | recipes-sota/rvi-sota-client/rvi-sota-client_git.bb | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb b/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb deleted file mode 100644 index e286598..0000000 --- a/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb +++ /dev/null | |||
| @@ -1,59 +0,0 @@ | |||
| 1 | require rvi-sota-client.inc | ||
| 2 | |||
| 3 | |||
| 4 | SYSTEMD_SERVICE_${PN} = "sota-client.service sota-client-autoprovision.service" | ||
| 5 | |||
| 6 | FILES_${PN} = " \ | ||
| 7 | /lib64 \ | ||
| 8 | ${bindir}/sota_client \ | ||
| 9 | ${bindir}/sota_sysinfo.sh \ | ||
| 10 | ${bindir}/sota_provision.sh \ | ||
| 11 | ${sysconfdir}/sota_client.version \ | ||
| 12 | ${sysconfdir}/sota_certificates \ | ||
| 13 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${systemd_unitdir}/system/sota-client.service', '', d)} \ | ||
| 14 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${systemd_unitdir}/system/sota-client-autoprovision.service', '', d)} \ | ||
| 15 | " | ||
| 16 | |||
| 17 | DEPENDS += " openssl openssl-native dbus " | ||
| 18 | RDEPENDS_${PN} = " \ | ||
| 19 | bash \ | ||
| 20 | curl \ | ||
| 21 | libcrypto \ | ||
| 22 | libssl \ | ||
| 23 | lshw \ | ||
| 24 | jq \ | ||
| 25 | python-petname \ | ||
| 26 | sota-launcher \ | ||
| 27 | zip \ | ||
| 28 | " | ||
| 29 | |||
| 30 | export SOTA_PACKED_CREDENTIALS | ||
| 31 | |||
| 32 | do_compile_prepend() { | ||
| 33 | export SOTA_VERSION=$(make sota-version) | ||
| 34 | cd sota-client | ||
| 35 | } | ||
| 36 | |||
| 37 | do_install() { | ||
| 38 | ln -fs /lib ${D}/lib64 | ||
| 39 | |||
| 40 | install -d ${D}${bindir} | ||
| 41 | install -d ${D}${sysconfdir} | ||
| 42 | |||
| 43 | echo `git log -1 --pretty=format:%H` > ${D}${sysconfdir}/sota_client.version | ||
| 44 | install -c ${S}/sota-client/docker/sota_certificates ${D}${sysconfdir} | ||
| 45 | |||
| 46 | install -m 0755 target/${TARGET_SYS}/release/sota_client ${D}${bindir} | ||
| 47 | install -m 0755 ${S}/sota-client/docker/sota_provision.sh ${D}${bindir} | ||
| 48 | install -m 0755 ${S}/sota-client/docker/sota_sysinfo.sh ${D}${bindir} | ||
| 49 | |||
| 50 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
| 51 | install -d ${D}/${systemd_unitdir}/system | ||
| 52 | if [ -n "$SOTA_PACKED_CREDENTIALS" ]; then | ||
| 53 | install -m 0644 ${WORKDIR}/sota-client-uptane.service ${D}/${systemd_unitdir}/system/sota-client.service | ||
| 54 | else | ||
| 55 | install -m 0644 ${WORKDIR}/sota-client-ostree.service ${D}/${systemd_unitdir}/system/sota-client.service | ||
| 56 | fi | ||
| 57 | install -m 0644 ${WORKDIR}/sota-client-autoprovision.service ${D}/${systemd_unitdir}/system/sota-client-autoprovision.service | ||
| 58 | fi | ||
| 59 | } | ||
