X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meta-app-framework%2Frecipes-core%2Fapplaunchd%2Fapplaunchd_git.bb;h=c1bafad8e2d7267e6aee82aa0295e030b954ba86;hb=762c46e7456563c2f10a9054195a89599fd0e24c;hp=e6439c3dd04ea638c5933bf227a4613242c3d0b2;hpb=8d2bcfc384c9e7464ffc77343c0b094e0e65b285;p=AGL%2Fmeta-agl.git diff --git a/meta-app-framework/recipes-core/applaunchd/applaunchd_git.bb b/meta-app-framework/recipes-core/applaunchd/applaunchd_git.bb index e6439c3dd..c1bafad8e 100644 --- a/meta-app-framework/recipes-core/applaunchd/applaunchd_git.bb +++ b/meta-app-framework/recipes-core/applaunchd/applaunchd_git.bb @@ -8,6 +8,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=ae6497158920d9524cf208c09cc4c984" DEPENDS = " \ glib-2.0 \ glib-2.0-native \ + protobuf-native \ + grpc-native \ + grpc \ systemd \ " @@ -15,21 +18,34 @@ PV = "2.0+git${SRCPV}" SRC_URI = " \ git://gerrit.automotivelinux.org/gerrit/src/applaunchd;protocol=https;branch=${AGL_BRANCH} \ + file://applaunchd.service \ file://agl-app@.service \ file://agl-app-web@.service \ file://agl-app-flutter@.service \ file://no-network.conf \ file://private-tmp.conf \ " -SRCREV = "c675bafdf15cc19276bd8276c34f56404a5ecb62" +SRCREV = "c32fe42f40d0af8b31b6113a3140f52b83be7769" S = "${WORKDIR}/git" -inherit meson pkgconfig +inherit meson pkgconfig systemd useradd features_check + +REQUIRED_DISTRO_FEATURES = "systemd polkit" + +USERADD_PACKAGES = "${PN}" +USERADDEXTENSION = "useradd-staticids" +GROUPADD_PARAM:${PN} = "-g 1003 applaunchd ; " +USERADD_PARAM:${PN} = "\ + -g 1003 -u 1003 -o -d / -K PASS_MAX_DAYS=-1 applaunchd ; \ +" + +SYSTEMD_SERVICE:${PN} = "applaunchd.service" do_install:append() { # Install generic template for all agl-app services install -d ${D}${systemd_system_unitdir} + install -m 644 ${WORKDIR}/applaunchd.service ${D}${systemd_system_unitdir}/ install -m 644 ${WORKDIR}/agl-app@.service ${D}${systemd_system_unitdir}/ install -m 644 ${WORKDIR}/agl-app-web@.service ${D}${systemd_system_unitdir}/ install -m 644 ${WORKDIR}/agl-app-flutter@.service ${D}${systemd_system_unitdir}/ @@ -42,7 +58,7 @@ do_install:append() { PACKAGE_BEFORE_PN += "${PN}-template-agl-app ${PN}-template-agl-app-web ${PN}-template-agl-app-flutter" -FILES:${PN} += "${systemd_system_unitdir} ${datadir}/dbus-1/" +FILES:${PN} += "${systemd_system_unitdir}" FILES:${PN}-template-agl-app = "${systemd_system_unitdir}/agl-app@.service" @@ -51,7 +67,7 @@ FILES:${PN}-template-agl-app-web = "${systemd_system_unitdir}/agl-app-web@.servi FILES:${PN}-template-agl-app-flutter = "${systemd_system_unitdir}/agl-app-flutter@.service" RDEPENDS:${PN} += " \ - agl-session \ + agl-users \ polkit-rule-agl-app \ "