summaryrefslogtreecommitdiff
path: root/media-sound/mt-daapd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-12 09:56:54 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-12 09:56:54 +0000
commitebc282ef4dfa408accac685565b8ee5f6faec119 (patch)
treec0a4f713228cda0ab17eed46f0bb7ca8cb8be2f6 /media-sound/mt-daapd
parent6c8694a707151d59555b0e4e48235f085ce166c3 (diff)
gentoo auto-resync : 12:02:2023 - 09:56:54
Diffstat (limited to 'media-sound/mt-daapd')
-rw-r--r--media-sound/mt-daapd/Manifest4
-rw-r--r--media-sound/mt-daapd/files/mt-daapd-0.2.4.2-clang16.patch80
-rw-r--r--media-sound/mt-daapd/files/mt-daapd-0.2.4.2-musl.patch32
-rw-r--r--media-sound/mt-daapd/files/mt-daapd.tmpfiles1
-rw-r--r--media-sound/mt-daapd/mt-daapd-0.2.4.2-r2.ebuild95
5 files changed, 212 insertions, 0 deletions
diff --git a/media-sound/mt-daapd/Manifest b/media-sound/mt-daapd/Manifest
index 78cad693a28f..02532f97229f 100644
--- a/media-sound/mt-daapd/Manifest
+++ b/media-sound/mt-daapd/Manifest
@@ -1,9 +1,13 @@
AUX mt-daapd-0.2.3-sparc.patch 740 BLAKE2B 3dda0247a83790a97bd2b3d7a6f5fa72b20dd4ea71ee95b72d381272f5c97604d45116d03aa64c7eccedf109aa334d464a619558ba4ba42353034f9ae5d36bef SHA512 69a187f4557901f8cf0a2854297a3f80cdb451719eab835feb1a3ac37ca1fef8750b2f573f710c6b490c27de1ad41901db19196b17a7309ee585c25188feb0c5
AUX mt-daapd-0.2.4.1-libsorder.patch 5073 BLAKE2B 46fc079420368466c5aa6e9efabcdea0e06194b9c36c22623e7f1930fcfcdf21de7a200e5874096ed88a1cc059de02e0086157f190a89186f0cfadcd5636e3ac SHA512 f3765589ae7eeb5b342a7eb3fe8e6cd38e92c5584b304d153ee369b95890ce98c1a6ac5096cfa05b91f5e971a0ab86c83b1b99307d73bbca6ce0b95f82ed6c16
AUX mt-daapd-0.2.4.1-pidfile.patch 1731 BLAKE2B 49f59edee6756e814da79e9fbc15422e8f95dd84f6723f6996370e794e7189e5164f8b881863d338d1a8437cf9ec06f80c4eca276e817a80475a543550cba093 SHA512 86340f84e20d847267dd1e46ca9a0d209f16d7fd0bd6936b0dd1f830c8c7c0572a6e49a664371780d71c9ca930aaba1ddc4cac2b0f0fdb64c2833b2202d4b458
+AUX mt-daapd-0.2.4.2-clang16.patch 1781 BLAKE2B bcecc752e034f2eab7fa99895fa4bdfe8780fed71fa9e3b5df42b2ba17d6ff1a51263734170e1a25d0a2d2b3a2595e7d312eb22da3c99cb5a69f405de6aff794 SHA512 02e1932f9249e1d1bda7471ba7dba05ad8dadd671f08c8166db21082f5044bd0fdefbb268c7ec91b89160c189475cf59e99d1f4dcc2d9457005b646d1a20fbaf
AUX mt-daapd-0.2.4.2-maintainer-mode.patch 332 BLAKE2B 94083b6a8847b0f6a1f8c060842ce7496ae61ebd92e669a8ee58d558974f078d739500c25c87d9e572ad1da85fb75c1ebdb7b04549157df4b553a3a33e363c0f SHA512 631a844c2bd0a07d1c793ab0ffe839d4b75e34f2268915b6451f44aeee7fc0d4597bbabe3c8f09b12fc432f76a38fec9593f5721ee76c5c7e761634926b7a9f3
+AUX mt-daapd-0.2.4.2-musl.patch 1164 BLAKE2B 3f2b4f8b5e235b1c2f6c7d2948da04c6697bfe7e1983cb1a7affca2b928b8438ceaafcbfb33f7f4bf5d1f458806133eae265b14746d90211c4307eacad653b8a SHA512 73756b6c97915728bc955752f0fa54d216ae82fb5a2c0135012355ac53601f496a7f1cda194a0c44ff29243ce25ed52d040f086dd88118956f290f1642a2e727
AUX mt-daapd-0.2.4.2-oggvorbis.patch 590 BLAKE2B be372f1dc4aa4541b35782064c0dfccc40d62e704d2ac3041fda8d719af52f5692dd8a0ba351c8fed3b5ef35be0ca604242e2a9cc588c890862ff710c4762c96 SHA512 51785b2e89fe20d71a3bfaaf75ccbf6b8369af8e5b76f2c8fb63b76fbb0a3249b9119be7c63256b507ce4f39cdfd08982ccf9e398d3d3fd13b24628b2c8f2280
AUX mt-daapd.init.2 1220 BLAKE2B 483f41aeab5ab3de0ab6c268f8263317a26b6c647e5e02c52c1636bfd4f4b2efb3cf9f8745e4da90b8f19d809509fcebe721fe94fef8140fb65da3152bd26549 SHA512 32a24aa6c027df24a959f908bfac5be24638975fd98a7470dd0e5e9e4590c9918810f646eb9a4497405563c1dfdd139a974cc6db8b7066684af8d9701c703b42
+AUX mt-daapd.tmpfiles 39 BLAKE2B e9e7b7a727bd02d82ff8891317dcd027fe77b3bb9ea3419fb0562400f71f86cde01dd61605811e6e0f0d826e7ddd8832ea6a0dd7984957b9990b86e8d4be27f9 SHA512 b1d5ebe9fa86ab5034999c70c94ae242fedfb9c3acb5092338e1bbb21c3941c83f0ec48298a11c111fe0910d4faed725ac471f572d854a1bac1e9c29169d04c4
DIST mt-daapd-0.2.4.2.tar.gz 436513 BLAKE2B bca01805bbdc96d3aed1499a1295c48761d83f2ab876e15ea546d30b164bd86eab9e8278db39bedad356b4c018bec96f2086a98113562dfa09a496c6c0ce60de SHA512 1a944f31cc63355d33c7fd821d4509b8b69805ae29aa23f1307bf7602f6a62beba1f5ab5f4005387177f17c5fdf8db91b338f010b4be4ab0cd783dc72c6df60f
EBUILD mt-daapd-0.2.4.2-r1.ebuild 1852 BLAKE2B 41cea2876622e6d60029fb99eeb5108e6b25980d3760c369e55f9300730c18e892ad18188f70867257fe1b7ce40289a3d752b1e218d5dcfb981d189629051164 SHA512 15e71db10db1dd3204f4133f261f1a0d1494d1c3a421a70fbc1f82123f2379e7cdb65dca44fc7d0578732a698c8627bcfcc2f907dc47e3058c7ebdccc3cffed3
+EBUILD mt-daapd-0.2.4.2-r2.ebuild 2118 BLAKE2B 5a78816e04d7afa669651993d64d94c0ce36ce125094d78b15a0e6ade37ff374cc2ce39446ec113766fa766f8514421b10df30efb3d35160a838a08a050302d8 SHA512 bcfdfc0e461abca2c479973e639493f729a26a9b8a1fd67697d3cd1b3db2828968149248f67c465a57ee6a52d31e180ededecce51e50f5ae8270ab731f5b0283
MISC metadata.xml 332 BLAKE2B bab36e3f204548c836b8ecd62b32b6a595afab38916836a8edd774e4b3b4e5a0d8a9354123013b1b9b0e0c7eccdbc4173b9960c02c90e3beddfd2435d11f3f9e SHA512 effbc4718f9a19e6c037b7a9f1d6e97c55f14af20e5cebb4d9fb05cb8171109f4549468cc26befa4f85d0361be545c70b145b4d221c6dc868cdaca3f9218b76c
diff --git a/media-sound/mt-daapd/files/mt-daapd-0.2.4.2-clang16.patch b/media-sound/mt-daapd/files/mt-daapd-0.2.4.2-clang16.patch
new file mode 100644
index 000000000000..3380cc0da44a
--- /dev/null
+++ b/media-sound/mt-daapd/files/mt-daapd-0.2.4.2-clang16.patch
@@ -0,0 +1,80 @@
+https://bugs.gentoo.org/860879
+https://bugs.gentoo.org/875011
+--- a/configure.in
++++ b/configure.in
+@@ -21,6 +21,9 @@ CPPFLAGS="${CPPFLAGS} -g"
+
+ AM_MAINTAINER_MODE
+
++# For strcasestr
++AC_USE_SYSTEM_EXTENSIONS
++
+ dnl fix freebsd's broken (?) libpthread
+ AC_CHECK_LIB(c_r,pthread_creat,THREAD_LIBS="-lc_r", [
+ AC_CHECK_LIB(pthread,pthread_create,THREAD_LIBS="-lpthread") ])
+--- a/src/configfile.c
++++ b/src/configfile.c
+@@ -48,6 +48,7 @@
+ #include <sys/wait.h>
+
+ #include "configfile.h"
++#include "db-memory.h"
+ #include "err.h"
+
+ #ifndef WITHOUT_MDNS
+--- a/src/dynamic-art.c
++++ b/src/dynamic-art.c
+@@ -32,6 +32,7 @@
+ #include <sys/stat.h>
+
+ #include "configfile.h"
++#include "dynamic-art.h"
+ #include "err.h"
+ #include "playlist.h"
+ #include "restart.h"
+--- a/src/mp3-scanner.h
++++ b/src/mp3-scanner.h
+@@ -74,5 +74,6 @@ extern void make_composite_tags(MP3FILE *song);
+
+ /* this should be refactored out of here... */
+ extern off_t aac_drilltoatom(FILE *aac_fp, char *atom_path, unsigned int *atom_length);
++extern long scan_aac_findatom(FILE *fin, long max_offset, char *which_atom, int *atom_size);
+
+ #endif /* _MP3_SCANNER_H_ */
+--- a/src/parser.y
++++ b/src/parser.y
+@@ -26,11 +26,14 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <time.h>
+ #include "playlist.h"
+
++#define YYPARSE_PARAM
+ #define YYERROR_VERBOSE 1
+
+ extern int yyerror(char *msg);
++extern int yylex(void);
+
+ /* Forwards */
+
+--- a/src/query.c
++++ b/src/query.c
+@@ -2,6 +2,7 @@
+ #include "config.h"
+ #endif
+
++#include <ctype.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+--- a/src/webserver.c
++++ b/src/webserver.c
+@@ -41,6 +41,7 @@
+ #include <sys/types.h>
+ #include <sys/socket.h>
+
++#include "configfile.h"
+ #include "err.h"
+ #include "webserver.h"
+
diff --git a/media-sound/mt-daapd/files/mt-daapd-0.2.4.2-musl.patch b/media-sound/mt-daapd/files/mt-daapd-0.2.4.2-musl.patch
new file mode 100644
index 000000000000..707b7ac3b828
--- /dev/null
+++ b/media-sound/mt-daapd/files/mt-daapd-0.2.4.2-musl.patch
@@ -0,0 +1,32 @@
+https://bugs.gentoo.org/716010
+--- a/src/mp3-scanner.c
++++ b/src/mp3-scanner.c
+@@ -378,7 +378,7 @@ int scan_init(char *path) {
+ */
+ int scan_path(char *path) {
+ DIR *current_dir;
+- char de[sizeof(struct dirent) + MAXNAMLEN + 1]; /* overcommit for solaris */
++ char de[sizeof(struct dirent) + NAME_MAX + 1]; /* overcommit for solaris */
+ struct dirent *pde;
+ int err;
+ char mp3_path[PATH_MAX];
+--- a/src/webserver.c
++++ b/src/webserver.c
+@@ -1029,14 +1029,14 @@ int ws_returnerror(WS_CONNINFO *pwsc,int error, char *description) {
+ * and serves it up
+ */
+ void ws_defaulthandler(WS_PRIVATE *pwsp, WS_CONNINFO *pwsc) {
+- char path[MAXPATHLEN];
+- char resolved_path[MAXPATHLEN];
++ char path[PATH_MAX];
++ char resolved_path[PATH_MAX];
+ int file_fd;
+ off_t len;
+
+ DPRINTF(E_SPAM,L_WS,"Entering ws_defaulthandler\n");
+
+- snprintf(path,MAXPATHLEN,"%s/%s",pwsp->wsconfig.web_root,pwsc->uri);
++ snprintf(path,PATH_MAX,"%s/%s",pwsp->wsconfig.web_root,pwsc->uri);
+ if(!realpath(path,resolved_path)) {
+ pwsc->error=errno;
+ DPRINTF(E_WARN,L_WS,"Exiting ws_defaulthandler: Cannot resolve %s\n",path);
diff --git a/media-sound/mt-daapd/files/mt-daapd.tmpfiles b/media-sound/mt-daapd/files/mt-daapd.tmpfiles
new file mode 100644
index 000000000000..e0923ac06d7c
--- /dev/null
+++ b/media-sound/mt-daapd/files/mt-daapd.tmpfiles
@@ -0,0 +1 @@
+d /var/cache/mt-daapd 0755 root root -
diff --git a/media-sound/mt-daapd/mt-daapd-0.2.4.2-r2.ebuild b/media-sound/mt-daapd/mt-daapd-0.2.4.2-r2.ebuild
new file mode 100644
index 000000000000..1ef6c391d0db
--- /dev/null
+++ b/media-sound/mt-daapd/mt-daapd-0.2.4.2-r2.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools tmpfiles
+
+DESCRIPTION="A multi-threaded implementation of Apple's DAAP server"
+HOMEPAGE="https://sourceforge.net/projects/mt-daapd/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="vorbis"
+
+RDEPEND="
+ media-libs/libid3tag:=
+ net-dns/avahi[dbus]
+ sys-libs/gdbm:=
+ sys-libs/zlib:=
+ vorbis? (
+ media-libs/libvorbis
+ media-libs/libogg
+ )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ app-alternatives/yacc
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.2.3-sparc.patch
+ "${FILESDIR}"/${PN}-0.2.4.1-libsorder.patch
+ "${FILESDIR}"/${PN}-0.2.4.1-pidfile.patch
+ "${FILESDIR}"/${P}-maintainer-mode.patch
+ "${FILESDIR}"/${P}-oggvorbis.patch
+ "${FILESDIR}"/${P}-clang16.patch
+ "${FILESDIR}"/${P}-musl.patch
+)
+
+src_prepare() {
+ default
+
+ # parser.y is fixed by the clang16 patch, force regeneration
+ rm src/parser.c || die
+
+ mv configure.{in,ac} || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable vorbis oggvorbis) \
+ --disable-maintainer-mode \
+ --enable-avahi \
+ --disable-mdns
+}
+
+src_install() {
+ default
+
+ insinto /etc
+ newins contrib/mt-daapd.conf mt-daapd.conf.example
+ doins contrib/mt-daapd.playlist
+
+ newinitd "${FILESDIR}"/${PN}.init.2 ${PN}
+
+ keepdir /etc/mt-daapd.d
+
+ newtmpfiles "${FILESDIR}"/mt-daapd.tmpfiles mt-daapd.conf
+}
+
+pkg_postinst() {
+ tmpfiles_process mt-daapd.conf
+
+ elog
+ elog "You have to configure your mt-daapd.conf following"
+ elog "${EROOT}/etc/mt-daapd.conf.example file."
+ elog
+
+ if use vorbis; then
+ elog
+ elog "You need to edit you extensions list in ${EROOT}/etc/mt-daapd.conf"
+ elog "if you want your mt-daapd to serve ogg files."
+ elog
+ fi
+
+ elog
+ elog "If you want to start more than one ${PN} service, symlink"
+ elog "${EROOT}/etc/init.d/${PN} to ${EROOT}/etc/init.d/${PN}.<name>, and it will"
+ elog "load the data from ${EROOT}/etc/${PN}.d/<name>.conf."
+ elog "Make sure that you have different cache directories for them."
+ elog
+}