Skip to content

Instantly share code, notes, and snippets.

@geta6
Created July 12, 2012 05:06
Show Gist options
  • Select an option

  • Save geta6/3095939 to your computer and use it in GitHub Desktop.

Select an option

Save geta6/3095939 to your computer and use it in GitHub Desktop.
install shairport
#!/bin/sh
export ARCHFLAGS="-arch x86_64"
# Get source
mkdir -p /usr/local/share
cd /usr/local/share
git clone https://github.com/albertz/shairport
# Dependencies
brew install cpanminus pkg-config libao
sudo cpanm Crypt::OpenSSL::RSA
sudo cpanm IO::Socket::INET6
make
# Destination
cd /usr/local/bin
ln -s /usr/local/src/shairport/{hairtunes, shairport.pl} .
# Customize
vim shairport.pl
# line 65
# < my $hairtunes_cli = $FindBin::Bin . '/hairtunes';
# ---
# > my $hairtunes_cli = '/usr/local/bin/hairtunes';
# ---
mkdir -p ~/Library/LaunchAgents
cd ~/Library/LaunchAgents
ln -s /usr/local/src/shairport/org.mafipulation.shairport.plist .
vim org.mafipulation.shairport.plist
# line 13
# > <string>RJ</string>
# ---
# < <string>YOUR_AIRPORT_NAME</string>
# ---
# Start Daemon
launchctl load org.mafipulation.shairport.plist
launchctl start org.mafipulation.shairport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment