1 SYSTEMD_AUTO_ENABLE = "enable"
4 # Remove upstream weston.ini to avoid conflict with weston-ini-conf package
5 rm -f ${D}${sysconfdir}/xdg/weston/weston.ini
8 RDEPENDS:${PN} += "weston-ini"
10 # Temporary effective backport of upstream commit ccdaab97
11 # This gets us on the same page as upstream with respect to running
12 # weston as non-root, and should make migrating to 3.5/Kirkstone
15 FILESEXTRAPATHS:prepend := "${THISDIR}/weston-init:"
18 file://weston.service \
19 file://weston.socket \
20 file://weston-autologin \
24 rm -f ${D}${sysconfdir}/udev/rules.d/71-weston-drm.rules
25 rm -f ${D}${systemd_system_unitdir}/weston@.service
26 rm -f ${D}${systemd_system_unitdir}/weston@.socket
28 install -D -p -m0644 ${WORKDIR}/weston.service ${D}${systemd_system_unitdir}/weston.service
29 install -D -p -m0644 ${WORKDIR}/weston.socket ${D}${systemd_system_unitdir}/weston.socket
30 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then
31 install -D -p -m0644 ${WORKDIR}/weston-autologin ${D}${sysconfdir}/pam.d/weston-autologin
34 sed -i -e s:/etc:${sysconfdir}:g \
35 -e s:/usr/bin:${bindir}:g \
36 -e s:/var:${localstatedir}:g \
37 ${D}${systemd_system_unitdir}/weston.service
39 install -dm 755 -o weston -g weston ${D}/home/weston
44 USERADD_PACKAGES = "${PN}"
47 ${systemd_system_unitdir}/weston.service \
48 ${systemd_system_unitdir}/weston.socket \
52 SYSTEMD_SERVICE:${PN} = "weston.service weston.socket"
53 USERADD_PARAM:${PN} = "--home /home/weston --shell /bin/sh --user-group -G video,input weston"
54 GROUPADD_PARAM:${PN} = "-r wayland"