1 SUMMARY = "AGL Application Launcher service"
2 DESCRIPTION = "AGL Application Launcher service build with recipe method"
3 HOMEPAGE = "https://git.automotivelinux.org/src/applaunchd"
6 LIC_FILES_CHKSUM = "file://LICENSE;md5=ae6497158920d9524cf208c09cc4c984"
17 PV = "2.0+git${SRCPV}"
20 git://gerrit.automotivelinux.org/gerrit/src/applaunchd;protocol=https;branch=${AGL_BRANCH} \
21 file://applaunchd.service \
22 file://agl-app@.service \
23 file://agl-app-web@.service \
24 file://agl-app-flutter@.service \
25 file://no-network.conf \
26 file://private-tmp.conf \
28 SRCREV = "c32fe42f40d0af8b31b6113a3140f52b83be7769"
32 inherit meson pkgconfig systemd useradd features_check
34 REQUIRED_DISTRO_FEATURES = "systemd polkit"
36 USERADD_PACKAGES = "${PN}"
37 USERADDEXTENSION = "useradd-staticids"
38 GROUPADD_PARAM:${PN} = "-g 1003 applaunchd ; "
39 USERADD_PARAM:${PN} = "\
40 -g 1003 -u 1003 -o -d / -K PASS_MAX_DAYS=-1 applaunchd ; \
43 SYSTEMD_SERVICE:${PN} = "applaunchd.service"
46 # Install generic template for all agl-app services
47 install -d ${D}${systemd_system_unitdir}
48 install -m 644 ${WORKDIR}/applaunchd.service ${D}${systemd_system_unitdir}/
49 install -m 644 ${WORKDIR}/agl-app@.service ${D}${systemd_system_unitdir}/
50 install -m 644 ${WORKDIR}/agl-app-web@.service ${D}${systemd_system_unitdir}/
51 install -m 644 ${WORKDIR}/agl-app-flutter@.service ${D}${systemd_system_unitdir}/
53 # Install individual sandboxing overrides/drop-ins to be used by apps
54 install -d ${D}${systemd_system_unitdir}/sandboxing
55 install -m 644 ${WORKDIR}/no-network.conf ${D}${systemd_system_unitdir}/sandboxing/
56 install -m 644 ${WORKDIR}/private-tmp.conf ${D}${systemd_system_unitdir}/sandboxing/
59 PACKAGE_BEFORE_PN += "${PN}-template-agl-app ${PN}-template-agl-app-web ${PN}-template-agl-app-flutter"
61 FILES:${PN} += "${systemd_system_unitdir}"
63 FILES:${PN}-template-agl-app = "${systemd_system_unitdir}/agl-app@.service"
65 FILES:${PN}-template-agl-app-web = "${systemd_system_unitdir}/agl-app-web@.service"
67 FILES:${PN}-template-agl-app-flutter = "${systemd_system_unitdir}/agl-app-flutter@.service"
74 RDEPENDS:${PN}-template-agl-app = "${PN}"
76 RDEPENDS:${PN}-template-agl-app-web = "${PN}"
78 RDEPENDS:${PN}-template-agl-app-flutter = "${PN}"