mpd: add MPD configuration file support
authorHugo Villeneuve <hugo@hugovil.com>
Wed, 4 Jan 2023 03:00:45 +0000 (22:00 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 1 Mar 2023 17:10:15 +0000 (12:10 -0500)
recipes-multimedia/musicpd/mpd_%.bbappend [new file with mode: 0644]

diff --git a/recipes-multimedia/musicpd/mpd_%.bbappend b/recipes-multimedia/musicpd/mpd_%.bbappend
new file mode 100644 (file)
index 0000000..105bb83
--- /dev/null
@@ -0,0 +1,8 @@
+do_install:append() {
+    echo "zeroconf_enabled    \"yes\"" >> ${D}/${sysconfdir}/mpd.conf
+    echo "zeroconf_name       \"Serveur Musique MPD\"" >> ${D}/${sysconfdir}/mpd.conf
+    echo "audio_output {" >> ${D}/${sysconfdir}/mpd.conf
+    echo "    type    \"alsa\"" >> ${D}/${sysconfdir}/mpd.conf
+    echo "    name    \"My ALSA Device\"" >> ${D}/${sysconfdir}/mpd.conf
+    echo "}" >> ${D}/${sysconfdir}/mpd.conf
+}