mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
Merge updates from master
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>grobian@gentoo.org</email>
|
||||
<name>Fabian Groffen</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,13 @@
|
||||
# Copyright 2020-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit acct-user
|
||||
|
||||
DESCRIPTION="User for media-sound/owntone"
|
||||
ACCT_USER_ID=541
|
||||
ACCT_USER_GROUPS=( audio )
|
||||
ACCT_USER_HOME="/var/lib/${PN}"
|
||||
|
||||
acct-user_add_deps
|
||||
@@ -20,7 +20,7 @@ SRC_URI="
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
|
||||
@@ -20,7 +20,7 @@ SRC_URI="
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.6.2-pytest_node_from_parent.patch
|
||||
|
||||
@@ -16,7 +16,7 @@ HOMEPAGE="
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/werkzeug[${PYTHON_USEDEP}]
|
||||
|
||||
@@ -16,7 +16,7 @@ HOMEPAGE="
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
|
||||
# tomli backend is optional now, with pyyaml being the new default.
|
||||
# However, keeping it unconditional here for backwards compatibility.
|
||||
|
||||
@@ -22,7 +22,7 @@ S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/wcwidth[${PYTHON_USEDEP}]
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
DIST owntone-28.9.tar.xz 1066248 BLAKE2B 68ba46e6ff2e406d54ccfe387191a67d4eb7590db3039d87ffcd5eabf7417059084997f0d6be810d164616cd663b2e4143714ef4ac31acb7d91e254ccd342465 SHA512 29f42a4a8c9501a038ecc5026fc4bce9d777dee722937b89a55523cd68f001c821017d09f32b704a0c331879f7049d7d087d8e6899c82924f45401b012c65e95
|
||||
@@ -0,0 +1,22 @@
|
||||
Mimick MPDs httpd plugin, while owntone doesn't listen for port 8000 for
|
||||
this, a proxy in front could map that to stream.mp3 easily.
|
||||
|
||||
diff --git a/src/mpd.c b/src/mpd.c
|
||||
index 10645409..0ac30867 100644
|
||||
--- a/src/mpd.c
|
||||
+++ b/src/mpd.c
|
||||
@@ -3753,6 +3753,14 @@ speaker_enum_cb(struct player_speaker_info *spk, void *arg)
|
||||
static int
|
||||
mpd_command_outputs(struct evbuffer *evbuf, int argc, char **argv, char **errmsg, struct mpd_client_ctx *ctx)
|
||||
{
|
||||
+ /* emulate MPDs output for http stream, as "httpd" plugin, which some
|
||||
+ * clients look for to ascertain there is stream playback support */
|
||||
+ evbuffer_add_printf(evbuf,
|
||||
+ "outputid: 65536\n" /* USHRT_MAX + 1 */
|
||||
+ "outputname: MP3 stream\n"
|
||||
+ "plugin: httpd\n"
|
||||
+ "outputenabled: 1\n");
|
||||
+
|
||||
player_speaker_enumerate(speaker_enum_cb, evbuf);
|
||||
|
||||
return 0;
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright 1999-2024 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# user and group to run owntone as
|
||||
#USER=owntone
|
||||
#GROUP=audio
|
||||
|
||||
# any options to use when starting owntone
|
||||
#EXTRA_OPTS=
|
||||
@@ -0,0 +1,40 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2024 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="DAAP/DACP (iTunes), RSP and MPD server."
|
||||
|
||||
command="/usr/sbin/owntone"
|
||||
pidfile="/run/owntone/${SVCNAME}.pid"
|
||||
conffile="/etc/${SVCNAME}.conf"
|
||||
user=${USER:-owntone}
|
||||
group=${GROUP:-audio}
|
||||
|
||||
depend() {
|
||||
need net avahi-daemon
|
||||
use dns
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
mkdir -p "${pidfile%/*}"
|
||||
chown ${user}:${group} "${pidfile%/*}"
|
||||
}
|
||||
|
||||
stop_post() {
|
||||
rm -f "${pidfile}"
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting ${SVCNAME}"
|
||||
start-stop-daemon --start --pidfile "${pidfile}" \
|
||||
--user ${user} --group ${group} \
|
||||
--exec ${command} -- -P "${pidfile}" -c "${conffile}" \
|
||||
${EXTRA_OPTS}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${SVCNAME}"
|
||||
start-stop-daemon --stop --exec ${command} --pidfile "${pidfile}"
|
||||
eend $?
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>grobian@gentoo.org</email>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="chromecast">build and install Chromecast support</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">owntone/owntone-server</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,85 @@
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="DAAP (iTunes) and MPD media server"
|
||||
HOMEPAGE="https://owntone.github.io/owntone-server"
|
||||
SRC_URI="https://github.com/owntone/owntone-server/releases/download/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+alsa +chromecast"
|
||||
|
||||
RDEPEND="
|
||||
app-pda/libplist
|
||||
dev-db/sqlite:3
|
||||
dev-libs/confuse
|
||||
dev-libs/json-c
|
||||
dev-libs/libevent
|
||||
dev-libs/libgcrypt
|
||||
dev-libs/libsodium
|
||||
dev-libs/libunistring
|
||||
dev-libs/libxml2
|
||||
dev-libs/mxml:0
|
||||
dev-libs/protobuf-c
|
||||
media-libs/alsa-lib
|
||||
media-video/ffmpeg
|
||||
net-dns/avahi
|
||||
net-libs/libwebsockets
|
||||
net-misc/curl
|
||||
sys-devel/gettext
|
||||
sys-libs/zlib
|
||||
acct-group/audio
|
||||
acct-user/owntone
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
chromecast? ( net-libs/gnutls media-video/ffmpeg[opus] )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/gperf
|
||||
sys-apps/gawk
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-28.9-stream-support.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# fix log path, and enable songs/cache databases
|
||||
sed -i \
|
||||
-e "/logfile = /s:= .*$:= ${EPREFIX}/var/log/owntone/owntone.log:" \
|
||||
-e "/\(db_path\|cache_path\) =/s:/cache/:/:" \
|
||||
-e "/\(db_path\|cache_path\) =/s:^#::" \
|
||||
owntone.conf.in || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--without-pulseaudio \
|
||||
--with-libwebsockets \
|
||||
--with-avahi \
|
||||
--with-user=owntone \
|
||||
--with-group=audio \
|
||||
$(use_with alsa) \
|
||||
$(use_enable chromecast) || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
rm -Rf "${ED}"/var/lib # all empty dirs
|
||||
find "${ED}" -name "*.la" -delete
|
||||
|
||||
keepdir /var/lib/owntone
|
||||
keepdir /var/log/owntone
|
||||
fowners owntone /var/log/owntone
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
||||
}
|
||||
@@ -4,15 +4,15 @@ https://bugs.gentoo.org/871129
|
||||
@@ -1754,3 +1754,3 @@
|
||||
}
|
||||
- XawListChange (box->keysym_list, keysym_name_buffer, 0, 0, True);
|
||||
+ XawListChange (box->keysym_list, (const char **) keysym_name_buffer, 0, 0, True);
|
||||
+ XawListChange (box->keysym_list, (char **) keysym_name_buffer, 0, 0, True);
|
||||
}
|
||||
@@ -2528,3 +2528,3 @@
|
||||
box->set = &keyboard_sets [i];
|
||||
- XawListChange (box->keymap_list, (char **) box->set->maps, 0, 0, True);
|
||||
+ XawListChange (box->keymap_list, (const char **) box->set->maps, 0, 0, True);
|
||||
+ XawListChange (box->keymap_list, (char **) box->set->maps, 0, 0, True);
|
||||
for (i = 0; i < box->set->map_count; i++)
|
||||
@@ -2599,3 +2599,3 @@
|
||||
|
||||
- XawListChange (box->keyboard_list, list, 0, 0, True);
|
||||
+ XawListChange (box->keyboard_list, (const char **) list, 0, 0, True);
|
||||
+ XawListChange (box->keyboard_list, (char **) list, 0, 0, True);
|
||||
XawListHighlight (box->keyboard_list, kbd);
|
||||
|
||||
@@ -11,6 +11,7 @@ SRC_URI="
|
||||
mirror://debian/pool/main/x/${PN}/${PN}_${PV/_p/-}.debian.tar.xz
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${P/_p*}
|
||||
LICENSE="HPND"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc ppc64 x86"
|
||||
@@ -37,7 +38,6 @@ PATCHES=(
|
||||
"${FILESDIR}"/${P/_p*}-Imakefile.patch
|
||||
"${FILESDIR}"/${P}-clang16.patch
|
||||
)
|
||||
S=${WORKDIR}/${P/_p*}
|
||||
|
||||
src_prepare() {
|
||||
eapply $(
|
||||
|
||||
Reference in New Issue
Block a user