2 file://pipewire@.service \
3 file://pipewire@.socket \
4 file://smack-pipewire \
8 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
9 # remove the original user unit files shipped by pipewire
10 rm -rf ${D}${systemd_unitdir}
12 # install our own system-level templates
13 mkdir -p ${D}${systemd_system_unitdir}/
14 install -m 0644 ${WORKDIR}/pipewire@.service ${D}${systemd_system_unitdir}/pipewire@.service
15 install -m 0644 ${WORKDIR}/pipewire@.socket ${D}${systemd_system_unitdir}/pipewire@.socket
17 # enable the socket to start together with afm-user-session
18 mkdir -p ${D}${systemd_system_unitdir}/afm-user-session@.target.wants
19 ln -sf ../pipewire@.socket ${D}${systemd_system_unitdir}/afm-user-session@.target.wants/pipewire@.socket
22 mkdir -p ${D}${sysconfdir}/smack/accesses.d
23 install -m 0644 ${WORKDIR}/smack-pipewire ${D}${sysconfdir}/smack/accesses.d/pipewire
28 ${systemd_system_unitdir}/* \
29 ${sysconfdir}/smack/accesses.d/* \