aboutsummaryrefslogtreecommitdiffstats
path: root/net/minidlna
diff options
context:
space:
mode:
authormadpilot <madpilot@FreeBSD.org>2016-01-16 06:38:36 +0800
committermadpilot <madpilot@FreeBSD.org>2016-01-16 06:38:36 +0800
commit8a2ca396ce1162e409b1a17cba41864a9f9d0cd4 (patch)
tree93ab30551f7493d6bd2a9ba58e40a7e23a13daba /net/minidlna
parent78b31c318a7d7255cd495ec59fc80aaca9fe3e5c (diff)
downloadfreebsd-ports-gnome-8a2ca396ce1162e409b1a17cba41864a9f9d0cd4.tar.gz
freebsd-ports-gnome-8a2ca396ce1162e409b1a17cba41864a9f9d0cd4.tar.zst
freebsd-ports-gnome-8a2ca396ce1162e409b1a17cba41864a9f9d0cd4.zip
Revert upstream change which prevents minidlna from replying to
certain multicast queries. PR: 205430 Submitted by: pvoigt@uos.de Approved by: wg (maintainer, implicit) MFH: 2016Q1
Diffstat (limited to 'net/minidlna')
-rw-r--r--net/minidlna/Makefile1
-rw-r--r--net/minidlna/files/patch-minissdp.c20
2 files changed, 17 insertions, 4 deletions
diff --git a/net/minidlna/Makefile b/net/minidlna/Makefile
index 482016d8f824..249f43077a5a 100644
--- a/net/minidlna/Makefile
+++ b/net/minidlna/Makefile
@@ -3,6 +3,7 @@
PORTNAME= minidlna
PORTVERSION= 1.1.5
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= net multimedia www
MASTER_SITES= SF
diff --git a/net/minidlna/files/patch-minissdp.c b/net/minidlna/files/patch-minissdp.c
index 3f7cb950b205..40b0a6405381 100644
--- a/net/minidlna/files/patch-minissdp.c
+++ b/net/minidlna/files/patch-minissdp.c
@@ -1,6 +1,6 @@
---- minissdp.c.orig 2014-03-06 16:30:25.000000000 -0800
-+++ minissdp.c 2014-05-29 09:34:58.763663228 -0700
-@@ -60,7 +60,7 @@
+--- minissdp.c.orig 2015-09-10 19:24:09 UTC
++++ minissdp.c
+@@ -60,7 +60,7 @@ static int
AddMulticastMembership(int s, struct lan_addr_s *iface)
{
int ret;
@@ -8,4 +8,16 @@
+#if defined(HAVE_STRUCT_IP_MREQN) && !defined(__FreeBSD__)
struct ip_mreqn imr; /* Ip multicast membership */
/* setting up imr structure */
- imr.imr_multiaddr.s_addr = inet_addr(SSDP_MCAST_ADDR);
+ memset(&imr, '\0', sizeof(imr));
+@@ -117,7 +117,11 @@ OpenAndConfSSDPReceiveSocket(void)
+ * to receive datagramms send to this multicast address.
+ * To specify the local nics we want to use we have to use setsockopt,
+ * see AddMulticastMembership(...). */
++#ifdef __FreeBSD__
++ sockname.sin_addr.s_addr = htonl(INADDR_ANY);
++#else
+ sockname.sin_addr.s_addr = inet_addr(SSDP_MCAST_ADDR);
++#endif
+
+ if (bind(s, (struct sockaddr *)&sockname, sizeof(struct sockaddr_in)) < 0)
+ {