ShairPort

Airtunes Perl Software

Note that you need to also install p5-libwww-perl to get this to work on a mac

albertz-shairport-d670169

Check Here

https://github.com/albertz/shairport

As a side note if you want to fix the service add this before @hw_addr

{code}
# Seeds Rand Command from the cksum of the computers MAC address so it should be the same everytime
# So that iTunes will always find the same set of speakers By Daniel Shane
srand (`ifconfig | grep -i ether | head -n 1 | cut -d ” ” -f 2 | sed ‘s/://g’ | cksum | cut -f1 -d” “`) ;
{/code}

Also change apname so it matches the macs host name and remove .local bonjour from the hostname

my $apname = `hostname | sed 's/.local//g'`;