Created
July 12, 2012 05:06
-
-
Save geta6/3095939 to your computer and use it in GitHub Desktop.
install shairport
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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>RJ</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