Переглянути джерело

gmediaserver: drop package

Waldemar Brodkorb 3 місяців тому
батько
коміт
1daf9cb3f4

+ 0 - 36
package/gmediaserver/Makefile

@@ -1,36 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-include ${ADK_TOPDIR}/rules.mk
-
-PKG_NAME:=		gmediaserver
-PKG_VERSION:=		0.13.0
-PKG_RELEASE:=		4
-PKG_HASH:=		357030911bcce4ac9e47c2c9219b72e88705a8465899d4e0553bce540fb0fd12
-PKG_DESCR:=		media server
-PKG_SECTION:=		mm/video
-PKG_DEPENDS:=		id3lib libupnp libmagic magic
-PKG_BUILDDEP:=		id3lib libupnp file
-PKG_NEEDS:=		c++
-PKG_URL:=		http://www.gnu.org/software/gmediaserver
-PKG_SITES:=		http://savannah.nongnu.org/download/gmediaserver/
-
-DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz
-
-PKG_LIBC_DEPENDS:=	uclibc-ng glibc
-
-include ${ADK_TOPDIR}/mk/package.mk
-
-$(eval $(call PKG_template,GMEDIASERVER,gmediaserver,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-
-TARGET_CPPFLAGS+=	-D_GNU_SOURCE -I$(STAGING_TARGET_DIR)/usr/include/taglib
-CONFIGURE_ENV+=		LIBS=" -lixml -lthreadutil -lupnp -lz"
-CONFIGURE_ARGS+=	--with-id3lib="${STAGING_TARGET_DIR}/usr" \
-			--with-libupnp="${STAGING_TARGET_DIR}/usr"
-
-gmediaserver-install:
-	${INSTALL_DIR} ${IDIR_GMEDIASERVER}/usr/sbin
-	${INSTALL_BIN} ${WRKINST}/usr/bin/gmediaserver \
-		${IDIR_GMEDIASERVER}/usr/sbin/
-
-include ${ADK_TOPDIR}/mk/pkg-bottom.mk

+ 0 - 27
package/gmediaserver/files/gmediaserver.init

@@ -1,27 +0,0 @@
-#!/bin/sh
-#PKG gmediaserver
-#INIT 60
-. /etc/rc.conf
-
-case $1 in
-autostop) ;;
-autostart)
-	test x"${gmediaserver:-NO}" = x"NO" && exit 0
-	test x"$gmediaserver" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
-	exec sh $0 start
-	;;
-start)
-	/usr/sbin/gmediaserver $gmediaserver_flags
-	;;
-stop)
-	kill $(pgrep -f /usr/sbin/gmediaserver)
-	;;
-restart)
-	sh $0 stop
-	sh $0 start
-	;;
-*)
-	echo "usage: $0 (start | stop | restart)"
-	exit 1
-esac
-exit $?

+ 0 - 4
package/gmediaserver/files/gmediaserver.postinst

@@ -1,4 +0,0 @@
-#!/bin/sh
-. $IPKG_INSTROOT/etc/functions.sh
-add_rcconf gmediaserver NO
-add_rcconf gmediaserver_flags "--background --interface=eth0"

+ 0 - 12
package/gmediaserver/patches/patch-src_Makefile_in

@@ -1,12 +0,0 @@
---- gmediaserver-0.13.0.orig/src/Makefile.in	2007-11-10 16:01:34.000000000 +0100
-+++ gmediaserver-0.13.0/src/Makefile.in	2011-05-16 17:08:17.466610320 +0200
-@@ -452,9 +452,6 @@ AM_CPPFLAGS = \
-   -I$(top_srcdir)/lib \
-   $(ID3_CPPFLAGS)
- 
--AM_LDFLAGS = \
--  $(ID3_LDFLAGS)
--
- gmediaserver_LDADD = \
-   $(top_builddir)/lib/libgnu.a \
-   $(UUID_LIBS) \

+ 0 - 10
package/gmediaserver/patches/patch-src_contentdir_c

@@ -1,10 +0,0 @@
---- gmediaserver-0.13.0.orig/src/contentdir.c	2007-10-20 09:59:38.000000000 +0200
-+++ gmediaserver-0.13.0/src/contentdir.c	2014-01-27 13:08:37.685276614 +0100
-@@ -18,6 +18,7 @@
-  *
-  */
- 
-+#include <assert.h>
- #include <config.h>
- #include <stdint.h>		/* Gnulib/C99 */
- #include <inttypes.h>		/* ? */

+ 0 - 158
package/gmediaserver/patches/patch-src_main_c

@@ -1,158 +0,0 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- gmediaserver-0.13.0.orig/src/main.c	2007-10-20 11:41:37.000000000 +0200
-+++ gmediaserver-0.13.0/src/main.c	2008-10-28 12:14:59.000000000 +0100
-@@ -32,8 +32,10 @@
- #include <stdbool.h>		/* Gnulib, C99 */
- #include <signal.h>		/* ? */
- #include <locale.h>		/* ? */
-+#ifdef HAVE_ICONV
- #include <iconv.h>		/* Gnulib, POSIX */
- #include "striconv.h"		/* Gnulib */
-+#endif
- #ifdef HAVE_NL_LANGINFO
- #include <langinfo.h>
- #endif
-@@ -72,9 +74,11 @@ enum {
- static const char *short_options = "bv::i:o:p:";
- static struct option long_options[] = {
-     { "disable-tags", no_argument, NULL, OPT_DISABLE_TAGS },
-+#ifdef HAVE_ICONV
-     { "fs-charset", required_argument, NULL, OPT_FS_CHARSET },
-     { "device-charset", required_argument, NULL, OPT_DEVICE_CHARSET },
-     { "log-charset", required_argument, NULL, OPT_LOG_CHARSET },
-+#endif
-     { "friendly-name", required_argument, NULL, OPT_FRIENDLY_NAME },
-     { "pid-file", required_argument, NULL, OPT_PIDFILE },
-     { "profile", required_argument, NULL, OPT_PROFILE, },
-@@ -92,14 +96,17 @@ static struct option long_options[] = {
-     { NULL, 0, NULL, 0 }
- };
- 
-+#ifdef HAVE_ICONV
- static iconv_t utf8_to_device = (iconv_t) -1;
- static iconv_t utf8_to_log = (iconv_t) -1;
- static iconv_t fs_to_utf8 = (iconv_t) -1;
-+#endif
- const char version_etc_copyright[] = "Copyright (C) 2005, 2006 Oskar Liljeblad.";
- 
- char *
- convert_string_to_device(const char *str)
- {
-+#ifdef HAVE_ICONV
-     char *out;
-     if (utf8_to_device == (iconv_t) -1)
-         return xstrdup(str);
-@@ -107,12 +114,15 @@ convert_string_to_device(const char *str
-     if (out != NULL)
-         return out;
-     warn(_("%s: cannot convert to device character set: %s\n"), quotearg(str), errstr);
-+#else
-     return xstrdup(str);
-+#endif
- }
- 
- char *
- convert_string_to_log(const char *str)
- {
-+#ifdef HAVE_ICONV
-     char *out;
- 
-     if (utf8_to_log == (iconv_t) -1)
-@@ -121,7 +131,9 @@ convert_string_to_log(const char *str)
-     if (out != NULL)
-         return out;
-     /* Cannot warn here - would deadlock! */
-+#else
-     return xstrdup(str);
-+#endif
- }
- 
- static char *cache_fs_str = NULL;
-@@ -129,6 +141,7 @@ static char *cache_fs_str = NULL;
- char *
- conv_filename(const char *str)
- {
-+#ifdef HAVE_ICONV
-     free(cache_fs_str);
-     if (fs_to_utf8 == (iconv_t) -1) {
-         cache_fs_str = xstrdup(str);
-@@ -140,6 +153,9 @@ conv_filename(const char *str)
-         }
-     }
-     return cache_fs_str;
-+#else
-+    return xstrdup(str);
-+#endif
- }
- 
- static void
-@@ -188,8 +204,10 @@ main(int argc, char **argv)
-     set_program_name(argv[0]);
-     set_quoting_style(0, escape_quoting_style);
- 
-+#ifdef LOCALE
-     if (setlocale(LC_ALL, "") == NULL)
-         warn(_("cannot set locale: %s\n"), errstr);
-+#endif
- #ifdef ENABLE_NLS
-     if (bindtextdomain(PACKAGE, LOCALEDIR) == NULL)
-         warn(_("cannot bind message domain: %s\n"), errstr);
-@@ -215,6 +233,7 @@ main(int argc, char **argv)
- 	case OPT_DISABLE_TAGS:
- 	    tags_enabled = false;
- 	    break;
-+#ifdef HAVE_ICONV
-         case OPT_FS_CHARSET:
-             fs_charset = optarg;
-             break;
-@@ -224,6 +243,7 @@ main(int argc, char **argv)
-         case OPT_LOG_CHARSET:
-             log_charset = optarg;
-             break;
-+#endif
- 	case OPT_FRIENDLY_NAME:
- 	    if (optarg[0] == '\0')
- 		die(_("friendly name cannot be empty\n"));
-@@ -294,9 +314,11 @@ main(int argc, char **argv)
-             printf(_("Run the UPnP media server.\n\n"));
- 	    printf(_("      --friendly-name=NAME      set display name for media server\n"));
- 	    printf(_("      --disable-tags            do not scan files for tags\n"));
-+#ifdef HAVE_ICONV
- 	    printf(_("      --fs-charset=CHARSET      character set used in file names\n"));
- 	    printf(_("      --device-charset=CHARSET  character set used in the player device\n"));
- 	    printf(_("      --log-charset=CHARSET     character set used in logs and display\n"));
-+#endif
- 	    printf(_("  -v, --verbose[=LEVEL]         set verbosity level (0-4)\n"));
-             printf(_("      --pid-file=FILE           write pid to FILE when up and running\n"));
-             printf(_("  -i, --interface=NAME          listen on a specific interface\n"));
-@@ -371,6 +393,7 @@ main(int argc, char **argv)
-     if (fs_charset == NULL && getenv("G_BROKEN_FILENAMES") != NULL)
-         fs_charset = nl_langinfo(CODESET);
- #endif
-+#ifdef HAVE_ICONV
-     if (fs_charset != NULL) {
-         fs_to_utf8 = iconv_open("UTF-8", fs_charset);
-         if (fs_to_utf8 == (iconv_t) -1)
-@@ -395,6 +418,7 @@ main(int argc, char **argv)
-             die(_("cannot create character set convertor from %s to %s\n"), "UTF-8", quotearg(log_charset));
-     }
-     say(4, _("Using log character set %s\n"), quote(log_charset == NULL ? "UTF-8" : log_charset));
-+#endif
- 
-     init_logging(logfilename, timestamp_format);
- 
-@@ -478,12 +502,14 @@ main(int argc, char **argv)
- 
-     finish_logging(true);
- 
-+#ifdef HAVE_ICONV
-     if (fs_to_utf8 != (iconv_t) -1)
-         iconv_close(fs_to_utf8); /* ignore errors (only EINVAL) */
-     if (utf8_to_device != (iconv_t) -1)
-         iconv_close(utf8_to_device); /* ignore errors (only EINVAL) */
-     if (utf8_to_log != (iconv_t) -1)
-         iconv_close(utf8_to_log); /* ignore errors (only EINVAL) */
-+#endif
- 
-     free(cache_fs_str);
- 

+ 0 - 78
package/gmediaserver/patches/patch-src_metadata_c

@@ -1,78 +0,0 @@
-	- magic_file() returns strings like 'audio/mpeg; charset=binary',
-	  ignore the last part
-	- Add flv and flac file type definitions
---- gmediaserver-0.13.0.orig/src/metadata.c	2007-10-20 11:41:32.000000000 +0200
-+++ gmediaserver-0.13.0/src/metadata.c	2022-03-28 07:44:13.332180349 +0200
-@@ -86,6 +86,8 @@ typedef enum {
-     FILE_JPG,
-     FILE_PNG,
-     FILE_TIFF,
-+    FILE_FLV,
-+    FILE_FLAC,
-     FILE_UNKNOWN,
-     FILE_TYPES_COUNT,
- } FileType;
-@@ -122,6 +124,8 @@ static const char *file_type_dlna_pn[] =
-     [FILE_JPG]		= "JPEG_TN",
-     [FILE_PNG]		= NULL,
-     [FILE_TIFF]		= NULL,
-+    [FILE_FLV]		= NULL,
-+    [FILE_FLAC]		= NULL,
-     [FILE_UNKNOWN] 	= NULL,
- };
- 
-@@ -134,6 +138,8 @@ static const char *file_type_mime_types[
-     [FILE_OGG]		= "audio/vorbis",
-     [FILE_MPG] 		= "video/mpeg",
-     [FILE_MP4] 		= "video/mp4",
-+    [FILE_MP4] 		= "video/x-msvideo",
-+    [FILE_MP4] 		= "video/x-matroska",
-     [FILE_PLS] 		= "audio/x-scpls",
-     [FILE_M3U] 		= "audio/m3u",
-     [FILE_EXTM3U] 	= "audio/m3u",
-@@ -142,6 +148,8 @@ static const char *file_type_mime_types[
-     [FILE_JPG]		= "image/jpeg",
-     [FILE_PNG]		= "image/png",
-     [FILE_TIFF]		= "image/tiff",
-+    [FILE_FLV]		= "video/x-flv",
-+    [FILE_FLAC]		= "audio/flac",
-     [FILE_UNKNOWN] 	= "application/octet-stream",
- };
- 
-@@ -162,6 +170,8 @@ static const char *file_type_names[] = {
-     [FILE_JPG]		= "jpg",
-     [FILE_PNG]		= "png",
-     [FILE_TIFF]		= "tiff",
-+    [FILE_FLV]		= "flv",
-+    [FILE_FLAC]		= "flac",
-     [FILE_UNKNOWN] 	= "unknown",
- };
- 
-@@ -183,6 +193,8 @@ static const char *file_type_descs[] = {
-     [FILE_JPG]		= "JPEG image",
-     [FILE_PNG]		= "PNG image",
-     [FILE_TIFF]		= "TIFF image",
-+    [FILE_FLV]		= "Flash video",
-+    [FILE_FLAC]		= "FLAC audio",
- };
- 
- static ItemClass file_type_item_classes[] = {
-@@ -202,6 +214,8 @@ static ItemClass file_type_item_classes[
-     [FILE_JPG]         = ITEM_IMAGE,
-     [FILE_PNG]         = ITEM_IMAGE,
-     [FILE_TIFF]        = ITEM_IMAGE,
-+    [FILE_FLV]         = ITEM_VIDEO,
-+    [FILE_FLAC]        = ITEM_AUDIO,
- };
- 
- static Entry *scan_entry(const char *fullpath, const char *name, int32_t parent, int indent_size, InodeList *inl);
-@@ -325,6 +339,9 @@ check_file_content_type(const char *full
- 	return FILE_UNKNOWN;
-     }
- 
-+    /* ignore trailing data */
-+    *strchrnul(magic, ';') = '\0';
-+
-     if (strcmp(magic, "application/octet-stream") != 0
- 	    && strncmp(magic, "text/plain", 10) != 0) {
- 	struct {

+ 0 - 20
package/gmediaserver/patches/patch-src_upnp_c

@@ -1,20 +0,0 @@
---- gmediaserver-0.13.0.orig/src/upnp.c	2007-10-28 09:20:43.000000000 +0100
-+++ gmediaserver-0.13.0/src/upnp.c	2014-01-27 13:07:07.541007109 +0100
-@@ -265,7 +265,7 @@ handle_get_var_request(struct Upnp_State
-     say(3, _("Event device UDN: %s\n"), quotearg(request->DevUDN));
-     say(3, _("Event service ID: %s\n"), quotearg(request->ServiceID));
-     say(3, _("Event variable name: %s\n"), quotearg(request->StateVarName));
--    say(3, _("Event source: %s\n"), inet_ntoa(request->CtrlPtIPAddr));
-+    say(3, _("Event source: %s\n"), inet_ntoa(*(struct in_addr *)&request->CtrlPtIPAddr));
- 
-     if (strcmp(request->DevUDN, device_udn) != 0) {
-         say(1, _("Discarding event - event device UDN (%s) not recognized\n"), quotearg(request->DevUDN));
-@@ -306,7 +306,7 @@ handle_action_request(struct Upnp_Action
-     say(3, _("Event device UDN: %s\n"), quotearg(request->DevUDN));
-     say(3, _("Event service ID: %s\n"), quotearg(request->ServiceID));
-     say(3, _("Event action name: %s\n"), quotearg(request->ActionName));
--    say(3, _("Event source: %s\n"), inet_ntoa(request->CtrlPtIPAddr));
-+    say(3, _("Event source: %s\n"), inet_ntoa(*(struct in_addr *)&request->CtrlPtIPAddr));
-     say_document(4, _("Event action request:\n"), request->ActionRequest);
- 
-     if (strcmp(request->DevUDN, device_udn) != 0) {