media-sound/shairport-sync: new package
This commit is contained in:
parent
39d0fff176
commit
60914b40ba
3
media-sound/shairport-sync/Manifest
Normal file
3
media-sound/shairport-sync/Manifest
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
AUX shairport-sync.init 439 BLAKE2B 9e8bb0dbaba36c6db1a33bcf32b923489d8e66171f2b30a14293ce73d0577d18f6bda9cd7cc9f0384cb58ea8938fd3df8bd6fb5b3a5ea08375bf19add3fa5097 SHA512 a59bac485c3814edfbeaf09c2d34177255b01cdb1060af2ba0657cb9383fcaf432329879725b761e2ec445461c5b2cadcd82f050c159c0200fa2530604b16150
|
||||||
|
DIST shairport-sync-3.3.5.tar.gz 416875 BLAKE2B 2fd058a1f694dacffa66d4e647fac60dbd29855d7e8ca3392f254b2d6d9cc74ab96c9a8646d4ba2b4c462d2b9fef1b704de61137fc0aee233272b92b279bd24e SHA512 6e99a442a3de02ca5be8a2b65d9a559f79ecf04e73be9f6a85e0b2033f66c453f8e48ac5fe399e0d6766e181b0a6dcb629815ce2130d3cc8fb6167aab3bf8d79
|
||||||
|
EBUILD shairport-sync-3.3.5.ebuild 956 BLAKE2B 03a093478f79bec449b65328d6d62e81e43351e0861ba2308343d397db25edefd699bd1f78d68b0ca021796e1d671cba918582780b833dbf242641d6c3ed6ee3 SHA512 c707aeec9d69320e6a7f3c5e4ab8c5c22642a343edb51c1edc1b713f38792db64f5c7fd7278b48a786976559e6feaa05714cfd355b8d20851a693277bc983e79
|
14
media-sound/shairport-sync/files/shairport-sync.init
Normal file
14
media-sound/shairport-sync/files/shairport-sync.init
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/sbin/openrc-run
|
||||||
|
# Copyright 1999-2020 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
name="Shairport Sync"
|
||||||
|
description="AirPlay audio player. Shairport Sync adds multi-room capability with Audio Synchronisation."
|
||||||
|
|
||||||
|
command="/usr/bin/shairport-sync"
|
||||||
|
pidfile=${SHAIRPORT_PIDFILE:-/var/run/shairport-sync.pid}
|
||||||
|
start_stop_daemon_args="-b --make-pid -u nobody -g audio"
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
need avahi-daemon
|
||||||
|
}
|
51
media-sound/shairport-sync/shairport-sync-3.3.5.ebuild
Normal file
51
media-sound/shairport-sync/shairport-sync-3.3.5.ebuild
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit autotools user
|
||||||
|
|
||||||
|
DESCRIPTION="AirPlay audio player. Shairport Sync adds multi-room capability with Audio Synchronisation"
|
||||||
|
HOMEPAGE="https://github.com/mikebrady/shairport-sync"
|
||||||
|
SRC_URI="https://github.com/mikebrady/shairport-sync/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="ALAC"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
IUSE="+alsa +avahi +ssl"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-libs/openssl
|
||||||
|
dev-libs/popt
|
||||||
|
net-dns/avahi
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
BDEPEND="
|
||||||
|
dev-libs/libconfig
|
||||||
|
"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local my_conf=(
|
||||||
|
--sysconfdir="${EPREFIX}/etc"
|
||||||
|
--with-configfiles
|
||||||
|
$(use_with alsa)
|
||||||
|
$(use_with avahi)
|
||||||
|
--with-metadata
|
||||||
|
$(use_with ssl ssl=openssl)
|
||||||
|
)
|
||||||
|
|
||||||
|
econf "${my_conf[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
rm "${EPREFIX}/etc/shairport-sync.conf.sample"
|
||||||
|
newinitd "${FILESDIR}/shairport-sync.init" shairport-sync
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user