+++ /dev/null
-#!/bin/sh
-
-# This script is used by shairport-sync to stop MPD
-# before starting a new playback session, so that it can
-# access the sound card.
-
-mpc stop
+++ /dev/null
-// hvmpd Shairport Sync configuration file
-
-general =
-{
- name = "@AIRPLAY_SERVER_NAME@";
- interpolation = "basic";
- mdns_backend = "avahi";
-};
-
-// How to deal with metadata, including artwork
-metadata =
-{
- enabled = "yes"; // Solicit metadata from the source and to pass it on via a pipe
- include_cover_art = "no";
- pipe_name = "/tmp/shairport-sync-metadata";
-};
-
-sessioncontrol =
-{
- allow_session_interruption = "yes";
-};
-
-// Parameters for the "alsa" audio back end (only back end that supports synchronised audio)
-alsa =
-{
- //output_device = "default"; // the name of the alsa output device. Use "alsamixer" or "aplay" to find out the names of devices, mixers, etc.
- //mixer_control_name = "PCM"; // the name of the mixer to use to adjust output volume. If not specified, volume in adjusted in software.
- //mixer_device = "default"; // the mixer_device default is whatever the output_device is. Normally you wouldn't have to use this.
-};
--- /dev/null
+#!/bin/sh
+
+# This script is used by shairport-sync to stop MPD
+# before starting a new playback session, so that it can
+# access the sound card.
+
+mpc stop
--- /dev/null
+// hvmpd Shairport Sync configuration file
+
+general =
+{
+ name = "@AIRPLAY_SERVER_NAME@";
+ interpolation = "basic";
+ mdns_backend = "avahi";
+};
+
+// How to deal with metadata, including artwork
+metadata =
+{
+ enabled = "yes"; // Solicit metadata from the source and to pass it on via a pipe
+ include_cover_art = "no";
+ pipe_name = "/tmp/shairport-sync-metadata";
+};
+
+sessioncontrol =
+{
+ allow_session_interruption = "yes";
+};
+
+// Parameters for the "alsa" audio back end (only back end that supports synchronised audio)
+alsa =
+{
+ //output_device = "default"; // the name of the alsa output device. Use "alsamixer" or "aplay" to find out the names of devices, mixers, etc.
+ //mixer_control_name = "PCM"; // the name of the mixer to use to adjust output volume. If not specified, volume in adjusted in software.
+ //mixer_device = "default"; // the mixer_device default is whatever the output_device is. Normally you wouldn't have to use this.
+};
--- /dev/null
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+
+SRC_URI += " \
+ file://shairport-sync.conf.in \
+ file://mpc-stop.sh \
+"
+
+AIRPLAY_SERVER_NAME ?= "%h shairplay-sync"
+
+do_install:append() {
+ sed -e "s/@AIRPLAY_SERVER_NAME@/${AIRPLAY_SERVER_NAME}/" \
+ ${UNPACKDIR}/shairport-sync.conf.in > ${UNPACKDIR}/shairport-sync.conf
+ install -d ${D}${sysconfdir}/
+ install -m 0644 ${UNPACKDIR}/shairport-sync.conf ${D}${sysconfdir}/
+
+ # Modify shairport-sync start arguments to always stop MPD before playing:
+ sed -i -e "s@^\(ExecStart=.*\)@\1 -w --on-start=${bindir}/mpc-stop.sh@g" \
+ ${D}${systemd_system_unitdir}/shairport-sync.service
+
+ install -d ${D}${bindir}
+ install -m 0755 ${UNPACKDIR}/mpc-stop.sh ${D}${bindir}
+}
+++ /dev/null
-DESCRIPTION = "AirPlay audio player. Shairport Sync adds multi-room capability with Audio Synchronisation"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSES;md5=9f329b7b34fcd334fb1f8e2eb03d33ff"
-
-DEPENDS = " libconfig popt avahi openssl alsa-lib"
-
-PV = "4.3.7"
-SRCBRANCH = "master"
-SRCREV = "3c8ceb7c97c8782903ec48e280023436711e0913"
-SRC_URI = "git://github.com/mikebrady/shairport-sync;protocol=https;branch=${SRCBRANCH}"
-
-SRC_URI += " \
- file://shairport-sync.conf.in \
- file://mpc-stop.sh \
-"
-
-inherit autotools pkgconfig systemd useradd
-
-EXTRA_OECONF = " \
- --with-alsa \
- --with-stdout \
- --with-ssl=openssl \
- --with-avahi \
- --with-metadata \
- --with-libdaemon \
- --with-systemd \
- --without-create-user-group \
-"
-
-AIRPLAY_SERVER_NAME ?= "%h shairplay-sync"
-
-do_install:append() {
- sed -e "s/@AIRPLAY_SERVER_NAME@/${AIRPLAY_SERVER_NAME}/" \
- ${UNPACKDIR}/shairport-sync.conf.in > ${UNPACKDIR}/shairport-sync.conf
- install -d ${D}${sysconfdir}/
- install -m 0644 ${UNPACKDIR}/shairport-sync.conf ${D}${sysconfdir}/
-
- # Modify shairport-sync start arguments to always stop MPD before playing:
- sed -i -e "s@^\(ExecStart=.*\)@\1 -w --on-start=${bindir}/mpc-stop.sh@g" \
- ${D}${systemd_system_unitdir}/shairport-sync.service
-
- install -d ${D}${bindir}
- install -m 0755 ${UNPACKDIR}/mpc-stop.sh ${D}${bindir}
-}
-
-SYSTEMD_SERVICE:${PN} = " \
- shairport-sync.service \
-"
-
-USERADD_PACKAGES = "${PN}"
-USERADD_PARAM:${PN} = " \
- --system \
- --no-create-home \
- --home ${runstatedir}/shairport-sync \
- --groups audio \
- --user-group shairport-sync \
-"
-
-RDEPENDS:${PN} = "avahi-daemon"