1 FILESEXTRAPATHS:prepend := "${THISDIR}/agl-compositor-init:"
4 file://agl-compositor.conf \
5 file://agl-compositor.service.in \
6 file://agl-compositor.socket \
9 # Reset systemd services list
10 SYSTEMD_SERVICE:${PN} = ""
14 files=agl-compositor.service.in
17 if [ "${f}" != "${g}" ]; then
18 sed -e "s,@AGL_COMPOSITOR_ARGS@,${AGL_COMPOSITOR_ARGS},g" \
19 ${WORKDIR}/${f} > ${WORKDIR}/${g}
23 install -d ${D}${systemd_system_unitdir}/agl-session@agl-driver.service.d
24 install -m 0644 ${WORKDIR}/agl-compositor.conf \
25 ${D}${systemd_system_unitdir}/agl-session@agl-driver.service.d/agl-compositor.conf
27 install -D -p -m0644 ${WORKDIR}/agl-compositor.service ${D}${systemd_user_unitdir}/agl-compositor.service
28 install -D -p -m0644 ${WORKDIR}/agl-compositor.socket ${D}${systemd_user_unitdir}/agl-compositor.socket
30 # Enable the compositor as part of the user session
31 install -d ${D}${systemd_user_unitdir}/agl-session.target.wants
32 ln -s ../agl-compositor.service ${D}${systemd_user_unitdir}/agl-session.target.wants/agl-compositor.service
36 ${systemd_system_unitdir} \
37 ${systemd_user_unitdir} \
47 RCONFLICTS:${PN} = "weston-init"