Added sysdweb
This commit is contained in:
0
roles/pi-shairport/defaults/main.yml
Normal file
0
roles/pi-shairport/defaults/main.yml
Normal file
21
roles/pi-shairport/files/build-shairport-sync.sh
Normal file
21
roles/pi-shairport/files/build-shairport-sync.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
ARG1=$1
|
||||
VERSION=${ARG1:="3.3.6"}
|
||||
|
||||
# Make a new temporary directory and go there
|
||||
tmp_dir=$(mktemp -d)
|
||||
cd $tmp_dir
|
||||
|
||||
# Clone, build and install
|
||||
git clone https://github.com/mikebrady/shairport-sync.git
|
||||
git reset --hard origin/$VERSION
|
||||
cd shairport-sync
|
||||
autoreconf -fi
|
||||
./configure --sysconfdir=/etc --with-alsa --with-soxr --with-avahi --with-ssl=openssl --with-systemd
|
||||
make
|
||||
make install
|
||||
|
||||
# Clean up
|
||||
cd ~
|
||||
rm -rf $tmp_dir
|
||||
3
roles/pi-shairport/meta/main.yml
Normal file
3
roles/pi-shairport/meta/main.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
dependencies:
|
||||
- role: pi-alsasetup
|
||||
0
roles/pi-shairport/tasks/main.yml
Normal file
0
roles/pi-shairport/tasks/main.yml
Normal file
9
roles/pi-shairport/templates/shairport-sync.conf
Normal file
9
roles/pi-shairport/templates/shairport-sync.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
general =
|
||||
{
|
||||
name = "{{shairport_name}}";
|
||||
};
|
||||
|
||||
alsa =
|
||||
{
|
||||
output_device = "softvol_shairport";
|
||||
};
|
||||
Reference in New Issue
Block a user