summaryrefslogtreecommitdiffstats
path: root/meta-app-framework/recipes-core/applaunchd/applaunchd_git.bb
blob: 5c2036a782b8fc5c646b87fbd9a35bccca0a5829 (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
36
37
38
39
40
41
42
43
44
SUMMARY     = "AGL Application Launcher service"
DESCRIPTION = "AGL Application Launcher service build with recipe method"
HOMEPAGE    = "https://git.automotivelinux.org/src/applaunchd"
SECTION     = "apps"
LICENSE     = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ae6497158920d9524cf208c09cc4c984"

DEPENDS = " \
    glib-2.0 \
    glib-2.0-native \
    systemd \
"

PV = "2.0+git${SRCPV}"

SRC_URI = " \
    git://gerrit.automotivelinux.org/gerrit/src/applaunchd;protocol=https;branch=${AGL_BRANCH}  \
    file://agl-app@.service \
    file://no-network.conf \
    file://private-tmp.conf \
"
SRCREV = "efbd734aca8b813710d7564d79696b1cf150a88c"

S = "${WORKDIR}/git"

inherit meson pkgconfig

do_install:append() {
    # Install generic template for all agl-app services
    mkdir -p ${D}${sysconfdir}/systemd/system/
    install -m 644 ${WORKDIR}/agl-app@.service ${D}${sysconfdir}/systemd/system/

    # Install individual sandboxing overrides/drop-ins to be used by apps
    mkdir -p ${D}${sysconfdir}/systemd/sandboxing/
    install -m 644 ${WORKDIR}/no-network.conf ${D}${sysconfdir}/systemd/sandboxing/
    install -m 644 ${WORKDIR}/private-tmp.conf ${D}${sysconfdir}/systemd/sandboxing/
}

FILES:${PN} += " ${datadir}/dbus-1/"

RDEPENDS:${PN} += " \
    agl-session \
    polkit-rule-agl-app \
"