aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/nss/nss-agl-driver-db_git.bb
blob: 3d8aa5f4b076763af2e51a907c0d64f1480bc74c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
    chown -R 1001:1001 ${D}/home/agl-driver
}

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

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