mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
media-sound/owntone: drop 28.9-r1, 28.9_p20240903-r1
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
This commit is contained in:
@@ -1,4 +1 @@
|
||||
DIST owntone-28.12.gh.tar.gz 5755301 BLAKE2B 4b797f958f8b9691a596488f6b05da3f13028ea9e96f07d3d1278bbb0a7687a40352a5ea5036484fef118a73bb1f53eb4e6d6710622a30826075d85c4462a88b SHA512 efb6efd85a4c0cbaa09b46b6e1a6ac9f55a5216a3995bb07b3a6da9b7f95f68c4df884ae34eef79a44f2e1fea4bdf38cdd13c816500417a0c859f8e35a2a68b3
|
||||
DIST owntone-28.9.tar.xz 1066248 BLAKE2B 68ba46e6ff2e406d54ccfe387191a67d4eb7590db3039d87ffcd5eabf7417059084997f0d6be810d164616cd663b2e4143714ef4ac31acb7d91e254ccd342465 SHA512 29f42a4a8c9501a038ecc5026fc4bce9d777dee722937b89a55523cd68f001c821017d09f32b704a0c331879f7049d7d087d8e6899c82924f45401b012c65e95
|
||||
DIST owntone-28.9_p20240903-40c22e3d.tar.gz 5730828 BLAKE2B 8328a1c06fa40f27d55c3b28149a0b50f6bf295fe96c1f11bd82e677447ee3c5b5bf55b7d77f201fa73095c1b3f1a878b80b241ac1467d2977611eec3901d1d5 SHA512 5b8ea0aafd8cc63752152ab2e7ae82bb6cd02b743efd419b75f9a3bf2981b26066ef34c26c392822e0666e633653749fce5cdffb83bac788546a3b9a729e1e96
|
||||
DIST owntone-40c22e3-mpd-0.24-r1.patch 75389 BLAKE2B 8047a72dcd374c03e81ea0ab2e2017cab40c58d11d8cf566580b422bbede793696d434ebfacf9d9b2366c91e86a949a8f1c7abced045025a98d7e2795f05c781 SHA512 6a0aa32622083f47eedf172880bb7d6debd3063fa18059510b022e3eca7afbd7d8c29d5f7fc8a3b04b54a42585e6df8e5568615125316a063ff58f97ca2206b4
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
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;
|
||||
@@ -1,85 +0,0 @@
|
||||
# Copyright 2024-2025 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}
|
||||
}
|
||||
@@ -1,92 +0,0 @@
|
||||
# Copyright 2024-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
GITREV="40c22e3d2f716177ad737998f3ef909f20c4acfa"
|
||||
DESCRIPTION="DAAP (iTunes) and MPD media server"
|
||||
HOMEPAGE="https://owntone.github.io/owntone-server"
|
||||
SRC_URI="https://github.com/owntone/owntone-server/archive/${GITREV}.tar.gz -> ${P}-${GITREV:0:8}.tar.gz
|
||||
https://github.com/grobian/owntone-mpd/releases/download/mpd-0.24-r1/${PN}-${GITREV:0:7}-mpd-0.24-r1.patch"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+alsa +chromecast"
|
||||
S="${WORKDIR}/${PN}-server-${GITREV}"
|
||||
|
||||
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=(
|
||||
"${DISTDIR}"/${PN}-${GITREV:0:7}-mpd-0.24-r1.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
|
||||
# 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}
|
||||
}
|
||||
Reference in New Issue
Block a user