aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Healy <lmiphay@gmail.com>2016-06-14 22:08:08 +0100
committerPaul Healy <lmiphay@gmail.com>2016-06-14 22:08:08 +0100
commitb4e658243572002b27e01271a79f7479d3ae12b8 (patch)
treec48fd0fd9f016b0d33c9d72c2847ac4bd2eb2d4d /media-sound
parentadd ebuild for pyroute2 (diff)
downloadlmiphay-b4e658243572002b27e01271a79f7479d3ae12b8.tar.gz
lmiphay-b4e658243572002b27e01271a79f7479d3ae12b8.tar.bz2
lmiphay-b4e658243572002b27e01271a79f7479d3ae12b8.zip
complete pulseaudio optional support
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/shairport/Manifest5
-rw-r--r--media-sound/shairport/files/shairport.confd1
-rw-r--r--media-sound/shairport/files/shairport.confd.pulse8
-rw-r--r--media-sound/shairport/shairport-20141210-r1.ebuild14
4 files changed, 24 insertions, 4 deletions
diff --git a/media-sound/shairport/Manifest b/media-sound/shairport/Manifest
index e044546..91a5ea6 100644
--- a/media-sound/shairport/Manifest
+++ b/media-sound/shairport/Manifest
@@ -1,5 +1,6 @@
-AUX shairport.confd 228 SHA256 bff627f27854cd4f3b76b6e29784da387071eddc600269753b4a44a837b7da66 SHA512 d9515e842399f1b65823511c0a86a1c104f0ca1966d083d47cff762915de5eb3a23b6c607150c3b91ce39193aabb69e6c57b679d3c6fb0427a04e6ed7c3271bf WHIRLPOOL c17a0a6121ca35d9a41ac0e77e2cdc0f11a4b60abeb0c51029a6a88dece282d327c2a88fd77f573f49a8289c6a15513b994957964fc4f53d31c178cdf75c7c49
+AUX shairport.confd 183 SHA256 c2dded8537bed308cd7c104b2711074bb187c20b663bda6575fe4b28942fce55 SHA512 0552bedc641ad66f29ef8670f9c6ac53f3721166e3a363d59625aab3cb87843077b23d39f135dbbe25df42b7444bf0adef7ac9de292fb6dfe64e1f93a637facd WHIRLPOOL 5d591fbaf2b6bcf6b05cd2bb1d7678a553b33d7e14517eb18274e57e02a33a38f073dd418c9dfb9b1a1d3622f6c9a50f50e80929d88c6e702dee7afa4b66ffed
+AUX shairport.confd.pulse 307 SHA256 9c78b7d6baf3a6124b572ab9b2964fb675170646b4e86c4a531a745308690d6f SHA512 d0d3687450609bf0e16f0e6af8b1aeed36e20e14bb9e699f8d71efd5d534d38f49b57d33cea10eb97533354df2dd109f3017c50d90825a03023c433c26a7b623 WHIRLPOOL 1e4fcd6f980a87258842f84046e52844f5c300dcc3edf65a694e2298d4f4c91fbc4ed46750f2e336c4094aea85e10086d9d7d82c9d85aab68c69519a8fc1f7b3
AUX shairport.initd 606 SHA256 5eae2d826b9f61a8d41cf3a655fb8e59382ff3d549a8ef7faae9049625d62c24 SHA512 3efe30df27eb822637c3837e450b0e4e44ab0f1e8d4676aa136f470322113ada5fce6b10cd004f21bd08de3492bf017207a6ed718b08ab690472a2cb5d9a7d80 WHIRLPOOL d042f7d44f6d6fd7d75bff826847f28177add483b861b7d96d17c86356a396daed940b99c0032f05aa1dbb82ed273419bc382f125c38acb6908c3af63c21de99
-EBUILD shairport-20141210-r1.ebuild 1190 SHA256 c66c2097e3ebe1a24b82be0814276d4effff8db2fbe55b3c2ecbddb8c55c26c0 SHA512 e062321f2829d85157bf06c109e88ccb59466bd24ca26e37bdb2e0f4dca57fd12a8a6315d3f9889e0999ede6358a4b4956131f5661205a23bf9348ede12f32b4 WHIRLPOOL 1bfbf15cd031ee90c281865a370c2cb245c254aaa519c31dd32e5cc8f67c7c8694ba4e699daaef6b5a98f7d6e9590bf85b6c4799ad3a7986f6619c66e502f110
+EBUILD shairport-20141210-r1.ebuild 1558 SHA256 c49bd4646274b6cfa4e09fe288360ecd9fcd810c87dea3fc03cf95f20988210e SHA512 653346d045a678659004fe922829c541ee080031f93a24dd6beb5a46950993a59c9ebece5d68569504f3266f61721e0a4531416a480a9e948a30d3a8b76b6504 WHIRLPOOL 59a294802bf1152f86ac2be442734fb7b6d8723a6f6639839d150586c5ecdd3b4fe96a195edf727887fef9338e933f3f766754afdb6e721a8eae04fdbda0cd40
EBUILD shairport-20141210.ebuild 696 SHA256 72ce90def6a5c3b91d5812a5a4de70254d602c5576d4a918475e873da08e9ca5 SHA512 65966f00d57738d2dcbf9002c545072579cb838e82c5074e21d27e68ee94b8fccf0909919da35243fbe8350bc3686860ea50a25e6d4d9cfa39964f39af640d1c WHIRLPOOL c6c2906cb3377b211df11a69b2ab29cb2d52c096ed1b115a4023d17d9b18e0a2ec974b43cec67e6ec406a754ab58499d1544717340908a6b3e79fe44c428058b
EBUILD shairport-9999.ebuild 640 SHA256 61776669cb98bd6fa3ea83c8a5978fc1af40dd4355cf85d36534419eda946cb3 SHA512 c3b6591c52e345303a03f1e4fb34b321764440c54c2d3ca9ba0cd5b8c9a8730085a5ea1d72755b4f58c44f82e616207b94747ca524dffc199dc4ce6c058101ad WHIRLPOOL d5a1ae645add09ba0fd80aa97645abb6bf59f033cda77c4a8914d1ab720c41ba48670bb27f876661474a31f764afa41680a40f3675b2428475420fcf02d22fc4
diff --git a/media-sound/shairport/files/shairport.confd b/media-sound/shairport/files/shairport.confd
index e8a630c..37d5aec 100644
--- a/media-sound/shairport/files/shairport.confd
+++ b/media-sound/shairport/files/shairport.confd
@@ -3,4 +3,3 @@
# 'shairport --help' for available options - default shairport options:
#shairport_opts="--output=alsa --mdns=avahi"
#
-shairport_opts="--output=pulse --mdns=avahi"
diff --git a/media-sound/shairport/files/shairport.confd.pulse b/media-sound/shairport/files/shairport.confd.pulse
new file mode 100644
index 0000000..e056379
--- /dev/null
+++ b/media-sound/shairport/files/shairport.confd.pulse
@@ -0,0 +1,8 @@
+# /etc/conf.d/shairport: config file for /etc/init.d/shairport
+
+# 'shairport --help' for available options - default shairport options:
+#shairport_opts="--output=alsa --mdns=avahi"
+#
+
+# select pulseaudio backend and a pulseserver running locally
+shairport_opts="--output=pulse --mdns=avahi -- -a localhost"
diff --git a/media-sound/shairport/shairport-20141210-r1.ebuild b/media-sound/shairport/shairport-20141210-r1.ebuild
index 653f5b0..c9ffa24 100644
--- a/media-sound/shairport/shairport-20141210-r1.ebuild
+++ b/media-sound/shairport/shairport-20141210-r1.ebuild
@@ -46,6 +46,18 @@ src_prepare () {
src_install() {
dobin shairport
dodoc README.md
- newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ if use pulseaudio ; then
+ newconfd "${FILESDIR}"/${PN}.confd.pulse ${PN}
+ else
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ fi
newinitd "${FILESDIR}"/${PN}.initd ${PN}
}
+
+pkg_postinst() {
+ elog "Check and modify /etc/conf.d/${PN} as required"
+ if use pulseaudio ; then
+ elog "The pulseaudio server must allow the shairport daemon access - see:"
+ elog "https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#index22h3"
+ fi
+}