diff options
Diffstat (limited to 'meta-agl-ic-container/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend')
-rw-r--r-- | meta-agl-ic-container/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-agl-ic-container/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend b/meta-agl-ic-container/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend new file mode 100644 index 00000000..ae1a20c6 --- /dev/null +++ b/meta-agl-ic-container/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend @@ -0,0 +1,27 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/pulseaudio:" + +SRC_URI:append = " \ + file://pulseaudio.service \ + file://system.pa \ + file://daemon.conf \ + " + +do_install:append() { + install -Dm644 ${WORKDIR}/system.pa ${D}${sysconfdir}/pulse/system.pa + install -Dm644 ${WORKDIR}/daemon.conf ${D}${sysconfdir}/pulse/daemon.conf + rm ${D}${sysconfdir}/pulse/default.pa + + install -d ${D}/${systemd_unitdir}/system + install -m 0644 ${WORKDIR}/pulseaudio.service ${D}/${systemd_unitdir}/system + rm ${D}/${systemd_unitdir}/user/* +} + +FILES:${PN}-server:append = " ${systemd_unitdir}/*" +CONFFILES:pulseaudio-server = "\ + ${sysconfdir}/pulse/daemon.conf \ + ${sysconfdir}/pulse/system.pa \ +" + +SYSTEMD_PACKAGES:append = " ${PN}-server" +SYSTEMD_SERVICE:${PN}-server = "pulseaudio.service" +SYSTEMD_AUTO_ENABLE:${PN}-server = "enable" |