diff options
author | Donald Carr | 2021-08-14 14:27:49 -0700 |
---|---|---|
committer | Donald Carr | 2021-08-14 14:28:29 -0700 |
commit | 7e11b5ec63f795dd5858d014c03b88b129dee003 (patch) | |
tree | 831b33b3e80eee4db7804839b20d8e3bd2ce9315 | |
parent | 39a2fae21a04eef8d96f71e419b324f056a97d5b (diff) | |
download | aur-7e11b5ec63f795dd5858d014c03b88b129dee003.tar.gz |
Remove the last of my hardcoded goplay2 config
Change-Id: I50979a2c2503316a0b93cb756e4847dabc5b7d06
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | goplay2.install | 2 | ||||
-rw-r--r-- | goplay2.service | 4 |
4 files changed, 7 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = goplay2-git pkgdesc = goplay2 airplay2 server pkgver = r62.dcbcdf3 - pkgrel = 2 + pkgrel = 4 url = https://github.com/openairplay/goplay2 install = goplay2.install arch = x86_64 @@ -3,7 +3,7 @@ _pkgname=goplay2 pkgname=${_pkgname}-git pkgver=r62.dcbcdf3 -pkgrel=2 +pkgrel=4 pkgdesc='goplay2 airplay2 server' arch=(x86_64) url='https://github.com/openairplay/goplay2' diff --git a/goplay2.install b/goplay2.install index ccae4be13b91..16a3da1df8ca 100644 --- a/goplay2.install +++ b/goplay2.install @@ -1,5 +1,7 @@ post_install() { setcap 'cap_net_bind_service=+ep' /usr/bin/goplay2 + echo "Please configure the network interface you want goplay2 to listen on; defaults to eth0" + echo "eg: echo interface=enp5s0 > ~/.config/goplay2-network-interface" } post_upgrade() { diff --git a/goplay2.service b/goplay2.service index ad447439b5e1..6c0906b2d40f 100644 --- a/goplay2.service +++ b/goplay2.service @@ -5,7 +5,9 @@ Requires=pulseaudio.service ConditionUser=!root [Service] -ExecStart=/usr/bin/goplay2 -i $(cat $HOME/.config/goplay2-network-interface || cat /etc/goplay2-default-network-interface) +EnvironmentFile=/etc/goplay2-default-network-interface +EnvironmentFile=-%h/.config/goplay2-network-interface +ExecStart=/usr/bin/goplay2 -i ${interface} Restart=on-failure [Install] |