summaryrefslogtreecommitdiffstats
path: root/recipes-core/nss/nss-agl-driver-db_git.bb
blob: ba203d4e65cdca879a75ebb3168c0c22d065998c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SUMMARY = "Custom nss db hosting the kuksa certificates"
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"
PV = "0.1"

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
}

pkg_postinst_ontarget:${PN} () {
    chown agl-driver:agl-driver -R /home/agl-driver/.pki/
}

FILES:${PN} += "/home/agl-driver/.pki/*"