X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=recipes-core%2Fnss%2Fnss-agl-driver-db_git.bb;h=b2fb40340e419ea672070374249dbd0ffdcf310c;hb=c11d716e3e124d4ee4f156bee9308c68e8036cbc;hp=ba203d4e65cdca879a75ebb3168c0c22d065998c;hpb=f9004968a0e9f3e5fc075c4df474f9fa33225e6d;p=AGL%2Fmeta-agl-demo.git diff --git a/recipes-core/nss/nss-agl-driver-db_git.bb b/recipes-core/nss/nss-agl-driver-db_git.bb index ba203d4e6..b2fb40340 100644 --- a/recipes-core/nss/nss-agl-driver-db_git.bb +++ b/recipes-core/nss/nss-agl-driver-db_git.bb @@ -3,19 +3,30 @@ DESCRIPTION = "Custom nss db hosting the kuksa certificates for chromium" AUTHOR = "Jan-Simon Moeller " 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 + 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/.pki/ -} +FILES:${PN} += "${systemd_system_unitdir} ${sbindir}" -FILES:${PN} += "/home/agl-driver/.pki/*" +RDEPENDS:${PN} += "nss agl-users kuksa-val-certificates-client bash"