Browse Source

- djmount: rework and fix build

master
vanhofen 2 years ago
parent
commit
afdebd57bd
  1. 28
      package/djmount/djmount.mk
  2. 0
      package/djmount/patches/0001-fix-newer-gcc.patch
  3. 0
      package/djmount/patches/0002-fix-hang-with-asset-upnp.patch
  4. 0
      package/djmount/patches/0003-fix-incorrect-range-when-retrieving-content-via-HTTP.patch
  5. 0
      package/djmount/patches/0004-fix-new-autotools.patch
  6. 0
      package/djmount/patches/0005-fixed-crash-when-using-UTF-8-charset.patch
  7. 2
      package/djmount/patches/0006-fixed-crash.patch
  8. 0
      package/djmount/patches/0007-support-fstab-mounting.patch
  9. 2
      package/djmount/patches/0008-support-seeking-in-large-2gb-files.patch
  10. 33
      package/djmount/patches/0009-libupnp-1.6.6.patch
  11. 18
      package/djmount/patches/0010-libupnp-1.6.13.patch

28
package/djmount/djmount.mk

@ -9,9 +9,6 @@ DJMOUNT_DIR = djmount-$(DJMOUNT_VERSION)
DJMOUNT_SOURCE = djmount-$(DJMOUNT_VERSION).tar.gz
DJMOUNT_SITE = https://sourceforge.net/projects/djmount/files/djmount/$(DJMOUNT_VERSION)
$(DL_DIR)/$(DJMOUNT_SOURCE):
$(download) $(DJMOUNT_SITE)/$(DJMOUNT_SOURCE)
DJMOUNT_DEPENDENCIES = libfuse
DJMOUNT_AUTORECONF = YES
@ -20,16 +17,19 @@ DJMOUNT_CONF_OPTS = \
--with-fuse-prefix=$(TARGET_prefix) \
--disable-debug
djmount: $(DJMOUNT_DEPENDENCIES) $(DL_DIR)/$(DJMOUNT_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
touch libupnp/config.aux/config.rpath; \
$(TARGET_CONFIGURE); \
$(MAKE1); \
$(MAKE1) install DESTDIR=$(TARGET_DIR)
DJMOUNT_MAKE = \
$(MAKE1)
define DJMOUNT_TOUCH_CONFIG_RPATH
touch $(PKG_BUILD_DIR)/libupnp/config.aux/config.rpath
endef
DJMOUNT_PRE_CONFIGURE_HOOKS += DJMOUNT_TOUCH_CONFIG_RPATH
define DJMOUNT_INSTALL_INIT_SCRIPT
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/djmount.init $(TARGET_sysconfdir)/init.d/djmount
$(UPDATE-RC.D) djmount defaults 75 25
$(REMOVE)/$(PKG_DIR)
$(call TOUCH)
endef
DJMOUNT_TARGET_FINALIZE_HOOKS += DJMOUNT_INSTALL_INIT_SCRIPT
djmount: | $(TARGET_DIR)
$(call autotools-package)

0
package/djmount/patches/djmount-fix-newer-gcc.patch → package/djmount/patches/0001-fix-newer-gcc.patch

0
package/djmount/patches/djmount-fix-hang-with-asset-upnp.patch → package/djmount/patches/0002-fix-hang-with-asset-upnp.patch

0
package/djmount/patches/djmount-fix-incorrect-range-when-retrieving-content-via-HTTP.patch → package/djmount/patches/0003-fix-incorrect-range-when-retrieving-content-via-HTTP.patch

0
package/djmount/patches/djmount-fix-new-autotools.patch → package/djmount/patches/0004-fix-new-autotools.patch

0
package/djmount/patches/djmount-fixed-crash-when-using-UTF-8-charset.patch → package/djmount/patches/0005-fixed-crash-when-using-UTF-8-charset.patch

2
package/djmount/patches/djmount-fixed-crash.patch → package/djmount/patches/0006-fixed-crash.patch

@ -12,7 +12,7 @@ diff --git a/djmount/device_list.c b/djmount/device_list.c
index b3cb08f..b5c2103 100644
--- a/djmount/device_list.c
+++ b/djmount/device_list.c
@@ -426,7 +426,7 @@ AddDevice (const char* deviceId,
@@ -428,7 +428,7 @@ AddDevice (const char* deviceId,
} else {
// If SSDP target specified, check that the device
// matches it.

0
package/djmount/patches/djmount-support-fstab-mounting.patch → package/djmount/patches/0007-support-fstab-mounting.patch

2
package/djmount/patches/djmount-support-seeking-in-large-2gb-files.patch → package/djmount/patches/0008-support-seeking-in-large-2gb-files.patch

@ -30,7 +30,7 @@ diff --git a/djmount/media_file.c b/djmount/media_file.c
index 44b4ffe..761f715 100644
--- a/djmount/media_file.c
+++ b/djmount/media_file.c
@@ -284,7 +284,7 @@ MediaFile_GetResSize (const MediaFile* const file)
@@ -282,7 +282,7 @@ MediaFile_GetResSize (const MediaFile* const file)
{
const char* const str = ixmlElement_getAttribute (file->res, "size");
off_t res;

33
package/djmount/patches/0009-libupnp-1.6.6.patch

@ -0,0 +1,33 @@
#
# Description: Update libupnp API for 1.6.x.
# Between libupnp2 and libupnp3 (pupnp 1.4.x and 1.6.x) the function
# SetLogFileNames was renamed to UpnpSetLogFileNames.
# Author: nick@leverton.org
# Bug-Debian: 581879
#
Index: djmount-0.71/djmount/fuse_main.c
===================================================================
--- a/djmount/fuse_main.c
+++ b/djmount/fuse_main.c
@@ -618,7 +618,7 @@
}
Log_Colorize (true);
#if UPNP_HAVE_DEBUG
- SetLogFileNames ("/dev/null", "/dev/null");
+ UpnpSetLogFileNames ("/dev/null", "/dev/null");
#endif
/*
@@ -745,10 +745,10 @@
Log_SetMaxLevel (LOG_ERROR);
#if UPNP_HAVE_DEBUG
} else if (strcmp (s, "upnperr") == 0) {
- SetLogFileNames ("/dev/stdout",
+ UpnpSetLogFileNames ("/dev/stdout",
"/dev/null");
} else if (strcmp (s, "upnpall") == 0) {
- SetLogFileNames ("/dev/stdout",
+ UpnpSetLogFileNames ("/dev/stdout",
"/dev/stdout");
#endif
} else {

18
package/djmount/patches/0010-libupnp-1.6.13.patch

@ -0,0 +1,18 @@
#
# Description: Transition from libupnp3 to libupnp6
# Bug-Debian: http://bugs.debian.org/656832
# Author: Nick Leverton <nick@leverton.org>
# Last-Update: 2012-02-22
#
Index: djmount/djmount/upnp_util.h
===================================================================
--- djmount.orig/djmount/upnp_util.h 2012-02-22 03:34:37.459476269 +0100
+++ djmount/djmount/upnp_util.h 2012-02-22 03:48:14.184514680 +0100
@@ -28,6 +28,7 @@
#include <upnp/upnptools.h>
+#include <upnp/upnp.h>
#ifdef __cplusplus
Loading…
Cancel
Save