Index: head/multimedia/libhdhomerun/Makefile =================================================================== --- head/multimedia/libhdhomerun/Makefile (revision 513444) +++ head/multimedia/libhdhomerun/Makefile (revision 513445) @@ -1,26 +1,27 @@ # $FreeBSD$ PORTNAME= libhdhomerun PORTVERSION= 20190621 +PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= https://download.silicondust.com/hdhomerun/ DISTNAME= ${PORTNAME}_${PORTVERSION} MAINTAINER= dor.bsd@xm0.uk COMMENT= Library and command line utility for interfacing with HDHomeRun device LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/LICENSE USES= gmake tar:tgz USE_LDCONFIG= yes WRKSRC= ${WRKDIR}/libhdhomerun do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/include/libhdhomerun ${INSTALL_PROGRAM} ${WRKSRC}/hdhomerun_config ${STAGEDIR}${PREFIX}/bin ${INSTALL_LIB} ${WRKSRC}/libhdhomerun.so ${STAGEDIR}${PREFIX}/lib ${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/libhdhomerun .include Index: head/multimedia/libhdhomerun/files/patch-hdhomerun__discover.c =================================================================== --- head/multimedia/libhdhomerun/files/patch-hdhomerun__discover.c (nonexistent) +++ head/multimedia/libhdhomerun/files/patch-hdhomerun__discover.c (revision 513445) @@ -0,0 +1,35 @@ +# Backport FreeBSD broadcast patch +# https://github.com/Silicondust/libhdhomerun/commit/b0e5d5f5c8e2bf37dea34beb014e08ebb598ebf6 + +--- hdhomerun_discover.c.orig 2019-09-30 16:45:23 UTC ++++ hdhomerun_discover.c +@@ -183,7 +183,8 @@ static bool hdhomerun_discover_send(struct hdhomerun_d + unsigned int i; + for (i = 1; i < ds->sock_count; i++) { + struct hdhomerun_discover_sock_t *dss = &ds->socks[i]; +- ++ uint32_t send_ip = target_ip; ++ + if (target_ip != 0xFFFFFFFF) { + if (dss->subnet_mask == 0) { + continue; +@@ -193,7 +194,18 @@ static bool hdhomerun_discover_send(struct hdhomerun_d + } + } + +- result |= hdhomerun_discover_send_internal(ds, dss, target_ip, device_type, device_id); ++#if defined(IP_ONESBCAST) ++ /* FreeBSD special handling - send subnet broadcast */ ++ if (target_ip == 0xFFFFFFFF) { ++ send_ip = dss->local_ip | ~dss->subnet_mask; ++ ++ if ((send_ip == 0x00000000) || (send_ip == 0xFFFFFFFF)) { ++ continue; ++ } ++ } ++#endif ++ ++ result |= hdhomerun_discover_send_internal(ds, dss, send_ip, device_type, device_id); + } + + /* Property changes on: head/multimedia/libhdhomerun/files/patch-hdhomerun__discover.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property