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 = "7a3e870a8349d43a4838604db2c28140c2f76c9f"
32 inherit meson pkgconfig systemd useradd
34 USERADD_PACKAGES = "${PN}"
35 USERADDEXTENSION = "useradd-staticids"
36 GROUPADD_PARAM:${PN} = "-g 1003 applaunchd ; "
37 USERADD_PARAM:${PN} = "\
38 -g 1003 -u 1003 -o -d / -K PASS_MAX_DAYS=-1 applaunchd ; \
41 SYSTEMD_SERVICE:${PN} = "applaunchd.service"
44 # Install generic template for all agl-app services
45 install -d ${D}${systemd_system_unitdir}
46 install -m 644 ${WORKDIR}/applaunchd.service ${D}${systemd_system_unitdir}/
47 install -m 644 ${WORKDIR}/agl-app@.service ${D}${systemd_system_unitdir}/
48 install -m 644 ${WORKDIR}/agl-app-web@.service ${D}${systemd_system_unitdir}/
49 install -m 644 ${WORKDIR}/agl-app-flutter@.service ${D}${systemd_system_unitdir}/
51 # Install individual sandboxing overrides/drop-ins to be used by apps
52 install -d ${D}${systemd_system_unitdir}/sandboxing
53 install -m 644 ${WORKDIR}/no-network.conf ${D}${systemd_system_unitdir}/sandboxing/
54 install -m 644 ${WORKDIR}/private-tmp.conf ${D}${systemd_system_unitdir}/sandboxing/
57 PACKAGE_BEFORE_PN += "${PN}-template-agl-app ${PN}-template-agl-app-web ${PN}-template-agl-app-flutter"
59 FILES:${PN} += "${systemd_system_unitdir}"
61 FILES:${PN}-template-agl-app = "${systemd_system_unitdir}/agl-app@.service"
63 FILES:${PN}-template-agl-app-web = "${systemd_system_unitdir}/agl-app-web@.service"
65 FILES:${PN}-template-agl-app-flutter = "${systemd_system_unitdir}/agl-app-flutter@.service"
72 RDEPENDS:${PN}-template-agl-app = "${PN}"
74 RDEPENDS:${PN}-template-agl-app-web = "${PN}"
76 RDEPENDS:${PN}-template-agl-app-flutter = "${PN}"