Shairport Airplay Receiver

Hi there,

this is my first try to build a Synology package.

Since I have some AirPlay-enabled iDevices in use, as well as a Synology hooked via a USB soundcard to my amp, I wanted to use the storage as an AirPlay receiver. Synology provides various Apps that would stream TO AirPlay receivers, but nothing that would make the NAS act as an AirPlay receiver.

Luckly there's a project called "ShairPort" around (well, it's even @ github: https://github.com/abrasive/shairport). So I compiled shairport using your crosscompile framework. Works fine with on my DS1512+. However, there are some known issues:

1. shairport currently runs as root. I've tried to use a "shairport" user, but the /dev/snd and alsa-config are a bit messed-up in the DSM, so I could not allow any other user than root to play back via alsa without messing around with chgrp and chmod in /dev/snd/. Suggestions welcome.

2. avahi-deamon has to support avahi-publish and dbus. Did not apply any of that stuff http://blog.elsdoerfer.name/2011/05/15/shairport-on-synology-nas/ suggests and it runs fine on my box. However: no guaranty it will run on every box. Beta testers welcome.

3. the icon I used is from http://gnarld.com/how-to-use-airplay-with-your-ipad-2-iphone-4s-apple-tv/ - hope there's no copyright issue... (...graphically gifted contributions welcome. ;-) )

Cheers,
Losty