diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-03-31 15:36:25 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-04-03 20:34:22 +0000 |
commit | 15c67927eb7d4e23935e25ea26acb6755f842436 (patch) | |
tree | 4f9be6bd04ee5f5efa03cc5fa9d15ed22d4d5397 /recipes-core/nss/nss-agl-driver-db_git.bb | |
parent | be178a5a167547dc6505cd8750cc8d63e4d064e5 (diff) |
Rework nss-agl-driver-db to be a systemd unit at runtimeoctopus_15.0.1octopus/15.0.115.0.1
This avoids the issues seen with access rights changes on /home/agl-driver
and will replace https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl-demo/+/28587
Bug-AGL: SPEC-4599
Change-Id: If01ffc9623208edd7a7705739465fa8fca764b74
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
(cherry picked from commit 11323fa1ed396e3e16f4df327911bc9c60cc6e01)
Diffstat (limited to 'recipes-core/nss/nss-agl-driver-db_git.bb')
-rw-r--r-- | recipes-core/nss/nss-agl-driver-db_git.bb | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/recipes-core/nss/nss-agl-driver-db_git.bb b/recipes-core/nss/nss-agl-driver-db_git.bb index 3d8aa5f4b..c32ba71d2 100644 --- a/recipes-core/nss/nss-agl-driver-db_git.bb +++ b/recipes-core/nss/nss-agl-driver-db_git.bb @@ -3,20 +3,30 @@ DESCRIPTION = "Custom nss db hosting the kuksa certificates for chromium" AUTHOR = "Jan-Simon Moeller <jsmoeller@linuxfoundation.org>" HOMEPAGE = "https://git.automotivelinux.org" LICENSE = "MIT" -DEPENDS = " agl-session nss-native" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + PV = "0.1" +SRC_URI = "file://${BPN}.service \ + file://${BPN}.sh \ + " + +inherit systemd + +SYSTEMD_SERVICE:${PN} = "${BPN}.service" + do_configure[noexec] = "1" do_compile[noexec] = "1" do_install() { - mkdir -p ${D}/home/agl-driver/.pki/nssdb - certutil -N -d ${D}/home/agl-driver/.pki/nssdb --empty-password - chown -R 1001:1001 ${D}/home/agl-driver + if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then + install -d ${D}${systemd_system_unitdir} + install -d ${D}${sbindir} + install -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_system_unitdir} + install -m 0755 ${WORKDIR}/${BPN}.sh ${D}${sbindir} + fi } -pkg_postinst_ontarget:${PN} () { - chown agl-driver:agl-driver -R /home/agl-driver/ -} +FILES:${PN} += "${systemd_system_unitdir} ${sbindir}" -FILES:${PN} += "/home/agl-driver/.pki/*" +RDEPENDS:${PN} += "nss agl-session kuksa-val-client-certificates bash" |