summaryrefslogtreecommitdiffstats
path: root/meta-agl-html5-demo/recipes-core/nss/nss-agl-driver-db_git.bb
blob: 84cb34edcee41f743e5d813090d3943816ee4b90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

PV = "0.1"

SRC_URI = "file://${BPN}.service \
           file://${BPN}.sh \
          "

S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"

inherit systemd

SYSTEMD_SERVICE:${PN} = "${BPN}.service"

do_configure[noexec] = "1"
do_compile[noexec] = "1"

do_install() {
    if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
        install -d ${D}${systemd_system_unitdir}
        install -d ${D}${sbindir}
        install -m 0644 ${UNPACKDIR}/${BPN}.service ${D}${systemd_system_unitdir}
        install -m 0755 ${UNPACKDIR}/${BPN}.sh ${D}${sbindir}
    fi
}

FILES:${PN} += "${systemd_system_unitdir} ${sbindir}"

RDEPENDS:${PN} += "nss agl-users kuksa-val-certificates-client bash"