[OpenWrt-Devel,V2,packages] minidlna: update to 1.2.0

Submitted by Rafał Miłecki on June 12, 2017, 12:13 p.m.

Details

Message ID 20170612121308.21801-1-zajec5@gmail.com
State New
Headers show

Commit Message

Rafał Miłecki June 12, 2017, 12:13 p.m.
From: Rafał Miłecki <rafal@milecki.pl>

It contains compatibility/support for few more clients (including Kodi)
and introduces rescan support (useful for devices with limited CPU
power).

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
V2: Refresh patches
---
 multimedia/minidlna/Makefile                                   | 10 ++++------
 .../001-group-videos-by-directory-for-panasonic-tvs.patch      | 10 +++++-----
 multimedia/minidlna/patches/002-dont-build-po-files.patch      |  3 +--
 3 files changed, 10 insertions(+), 13 deletions(-)

Patch hide | download patch | download mbox

diff --git a/multimedia/minidlna/Makefile b/multimedia/minidlna/Makefile
index 2eef5e50..e007af3c 100644
--- a/multimedia/minidlna/Makefile
+++ b/multimedia/minidlna/Makefile
@@ -8,15 +8,13 @@ 
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=minidlna
-PKG_VERSION:=1.1.6+git-8a996b
+PKG_VERSION:=1.2.0
 PKG_RELEASE:=1
 
-PKG_SOURCE_PROTO:=git
-PKG_SOURCE_URL=http://git.code.sf.net/p/minidlna/git
+PKG_SOURCE_URL:=@SF/minidlna
 PKG_SOURCE_SUBDIR=$(PKG_NAME)-$(PKG_VERSION)
-PKG_SOURCE_VERSION:=8a996b4b624ef45538a5de10730b8e94c55e7768
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
-PKG_MIRROR_HASH:=fddbb7c96b40e335a251b919ff5c674519f266a59b8a43011761ba952c0df1b6
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_HASH:=8d34436580c4c44be25976d5e46bc5b71af69bf441c4492774eac001164c4433
 
 PKG_LICENSE:=GPL-2.0 BSD-3-Clause
 PKG_LICENSE_FILES:=COPYING LICENCE.miniupnpd
diff --git a/multimedia/minidlna/patches/001-group-videos-by-directory-for-panasonic-tvs.patch b/multimedia/minidlna/patches/001-group-videos-by-directory-for-panasonic-tvs.patch
index 5380d8a3..f36edde4 100644
--- a/multimedia/minidlna/patches/001-group-videos-by-directory-for-panasonic-tvs.patch
+++ b/multimedia/minidlna/patches/001-group-videos-by-directory-for-panasonic-tvs.patch
@@ -11,7 +11,7 @@  Subject: [PATCH] Add support for grouping videos by directory for Panasonic
 
 --- a/upnpsoap.c
 +++ b/upnpsoap.c
-@@ -1052,6 +1052,15 @@ callback(void *args, int argc, char **ar
+@@ -1095,6 +1095,15 @@ callback(void *args, int argc, char **ar
  						add_res(size, duration, bitrate, sampleFrequency, nrAudioChannels,
  						        resolution, dlna_buf, mime, detailID, ext, passed_args);
  					}
@@ -27,7 +27,7 @@  Subject: [PATCH] Add support for grouping videos by directory for Panasonic
  					break;
  				case ESamsungSeriesCDE:
  				case ELGDevice:
-@@ -1314,8 +1323,11 @@ BrowseContentDirectory(struct upnphttp *
+@@ -1357,8 +1366,11 @@ BrowseContentDirectory(struct upnphttp *
  		if (!where[0])
  			sqlite3_snprintf(sizeof(where), where, "PARENT_ID = '%q'", ObjectID);
  
@@ -40,13 +40,13 @@  Subject: [PATCH] Add support for grouping videos by directory for Panasonic
  		ret = 0;
  		if (SortCriteria && !orderBy)
  		{
-@@ -1354,14 +1366,16 @@ BrowseContentDirectory(struct upnphttp *
+@@ -1397,14 +1409,16 @@ BrowseContentDirectory(struct upnphttp *
  			SoapError(h, 709, "Unsupported or invalid sort criteria");
  			goto browse_error;
  		}
 -
  		sql = sqlite3_mprintf("SELECT %s, %s, %s, " COLUMNS
- 		                      "from OBJECTS o left join DETAILS d on (d.ID = o.DETAIL_ID)"
+ 				      "from OBJECTS o left join DETAILS d on (d.ID = o.DETAIL_ID)"
 -				      " where %s %s limit %d, %d;",
 +				      " where %s order by d.date limit %d, %d;",
  				      objectid_sql, parentid_sql, refid_sql,
@@ -60,7 +60,7 @@  Subject: [PATCH] Add support for grouping videos by directory for Panasonic
  	}
  	if( (ret != SQLITE_OK) && (zErrMsg != NULL) )
  	{
-@@ -1795,7 +1809,7 @@ SearchContentDirectory(struct upnphttp *
+@@ -1838,7 +1852,7 @@ SearchContentDirectory(struct upnphttp *
  	                      (*ContainerID == '*') ? NULL :
  	                      sqlite3_mprintf("UNION ALL " SELECT_COLUMNS
  	                                      "from OBJECTS o left join DETAILS d on (d.ID = o.DETAIL_ID)"
diff --git a/multimedia/minidlna/patches/002-dont-build-po-files.patch b/multimedia/minidlna/patches/002-dont-build-po-files.patch
index c0c02358..38623246 100644
--- a/multimedia/minidlna/patches/002-dont-build-po-files.patch
+++ b/multimedia/minidlna/patches/002-dont-build-po-files.patch
@@ -9,10 +9,9 @@ 
  
  sbin_PROGRAMS = minidlnad
  check_PROGRAMS = testupnpdescgen
- 
 --- a/configure.ac
 +++ b/configure.ac
-@@ -633,6 +633,8 @@ case "$target_os" in
+@@ -644,6 +644,8 @@ case "$target_os" in
  esac