aboutsummaryrefslogtreecommitdiffstats
path: root/meta-pipewire/recipes-multimedia/pipewire/pipewire_git.bbappend
blob: 06b969a663b3dc8105b828ecc4214c99de97dbf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
do_install_append() {
    if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
        # Execute these manually on behalf of systemctl script (from systemd-systemctl-native.bb)
        # because it does not support systemd's user mode.
        mkdir -p ${D}${sysconfdir}/systemd/user/sockets.target.wants/
        ln -sf ${systemd_user_unitdir}/pipewire.socket ${D}${sysconfdir}/systemd/user/sockets.target.wants/pipewire.socket
    fi
}

FILES_${PN} += "${sysconfdir}/systemd/user/"