1 SUMMARY = "Startup systemd unit for the AGL Wayland compositor"
3 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
7 # Reuse include file from upstream weston since we have the same requirements
8 require recipes-graphics/wayland/required-distro-features.inc
10 PACKAGE_ARCH = "${MACHINE_ARCH}"
12 SRC_URI = "file://agl-compositor.service \
13 file://agl-compositor.socket \
14 file://agl-compositor-autologin \
15 file://agl-compositor.conf.in \
20 AGL_COMPOSITOR_ARGS ?= " --config ${sysconfdir}/xdg/weston/weston.ini --idle-time=0"
21 AGL_COMPOSITOR_USE_PIXMAN ??= "0"
23 AGL_COMPOSITOR_ARGS:append = " ${@bb.utils.contains("DISTRO_FEATURES", "agl-devel", " --debug", "",d)}"
24 AGL_COMPOSITOR_ARGS:append = " ${@bb.utils.contains("WESTON_USE_PIXMAN", "1", " --use-pixman", "",d)}"
27 # Install systemd service
28 install -D -p -m0644 ${WORKDIR}/agl-compositor.service ${D}${systemd_system_unitdir}/agl-compositor.service
29 install -D -p -m0644 ${WORKDIR}/agl-compositor.socket ${D}${systemd_system_unitdir}/agl-compositor.socket
30 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then
31 install -D -p -m0644 ${WORKDIR}/agl-compositor-autologin ${D}${sysconfdir}/pam.d/agl-compositor-autologin
34 # Install systemd service drop-in with extra configuration
35 files=agl-compositor.conf.in
38 if [ "${f}" != "${g}" ]; then
39 sed -e "s,@AGL_COMPOSITOR_ARGS@,${AGL_COMPOSITOR_ARGS},g" \
40 ${WORKDIR}/${f} > ${WORKDIR}/${g}
43 install -d ${D}${systemd_system_unitdir}/agl-compositor.service.d
44 install -m644 ${WORKDIR}/agl-compositor.conf ${D}/${systemd_system_unitdir}/agl-compositor.service.d/agl-compositor.conf
48 ${systemd_system_unitdir}/agl-compositor.service \
49 ${systemd_system_unitdir}/agl-compositor.socket \
50 ${systemd_system_unitdir}/agl-compositor.service.d \
51 ${sysconfdir}/default/agl-compositor \
52 ${sysconfdir}/pam.d/ \
55 CONFFILES:${PN} += "${sysconfdir}/default/agl-compositor"
57 RDEPENDS:${PN} = "agl-users agl-compositor weston-ini"
59 RCONFLICTS:${PN} = "weston-init"
61 SYSTEMD_SERVICE:${PN} = "agl-compositor.service agl-compositor.socket"