Update for OpenMDNS to 0.6 * All patches are now in. * Support for multiple iface
Test are welcome. OK? Comments? Cheers.- -- Sending from my toaster.
Index: Makefile =================================================================== RCS file: /cvs/ports/net/openmdns/Makefile,v retrieving revision 1.13 diff -u -p -r1.13 Makefile --- Makefile 22 Jul 2014 10:55:41 -0000 1.13 +++ Makefile 15 Sep 2014 19:35:29 -0000 @@ -2,8 +2,7 @@ COMMENT = MDNS/DNS-SD daemon -DISTNAME = openmdns-0.5 -REVISION = 5 +DISTNAME = openmdns-0.6 CATEGORIES = net MAINTAINER = Gonzalo L. R. <[email protected]> @@ -17,6 +16,8 @@ MASTER_SITES = http://www.haesbaert.org http://x61.com.ar/mirrors/openmdns/ WANTLIB += c event util + +WRKDIST = ${WRKDIR}/mdnsd MAKE_FLAGS = BINDIR="${TRUEPREFIX}/bin" \ MANDIR="${TRUEPREFIX}/man/man" Index: distinfo =================================================================== RCS file: /cvs/ports/net/openmdns/distinfo,v retrieving revision 1.3 diff -u -p -r1.3 distinfo --- distinfo 31 Oct 2013 21:12:13 -0000 1.3 +++ distinfo 15 Sep 2014 19:35:29 -0000 @@ -1,2 +1,2 @@ -SHA256 (openmdns-0.5.tar.gz) = tJR8JSTPgoVM+xOmdhBo2G/CKhtMdlZZl6S2w4IXWAs= -SIZE (openmdns-0.5.tar.gz) = 64879 +SHA256 (openmdns-0.6.tar.gz) = yLkvnd4uYTBx2spg5EySp8nf0XjrtreKnBR7hv7Vhks= +SIZE (openmdns-0.6.tar.gz) = 48577 Index: patches/patch-mdnsctl_mdnsl_c =================================================================== RCS file: patches/patch-mdnsctl_mdnsl_c diff -N patches/patch-mdnsctl_mdnsl_c --- patches/patch-mdnsctl_mdnsl_c 1 Oct 2013 07:36:06 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,14 +0,0 @@ -$OpenBSD: patch-mdnsctl_mdnsl_c,v 1.1 2013/10/01 07:36:06 jca Exp $ -msgbuf_write() returns 1 on success -https://github.com/haesbaert/mdnsd/commit/cdd16e971a0204b8439b07a81879573e01fae4cb ---- mdnsctl/mdnsl.c.orig Tue Oct 1 08:51:23 2013 -+++ mdnsctl/mdnsl.c Tue Oct 1 08:51:25 2013 -@@ -510,7 +510,7 @@ ibuf_send_imsg(struct imsgbuf *ibuf, u_int32_t type, - - imsg_close(ibuf, wbuf); - -- if (msgbuf_write(&ibuf->w)) -+ if (msgbuf_write(&ibuf->w) == -1) - return (-1); - - return (0); Index: patches/patch-mdnsd_mdns_c =================================================================== RCS file: patches/patch-mdnsd_mdns_c diff -N patches/patch-mdnsd_mdns_c --- patches/patch-mdnsd_mdns_c 26 Nov 2013 08:53:24 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,12 +0,0 @@ -$OpenBSD: patch-mdnsd_mdns_c,v 1.1 2013/11/26 08:53:24 jca Exp $ ---- mdnsd/mdns.c.orig Mon Nov 25 23:32:38 2013 -+++ mdnsd/mdns.c Mon Nov 25 23:32:20 2013 -@@ -1091,7 +1091,7 @@ pge_new_workstation(struct iface *iface) - bzero(&ms, sizeof(ms)); - ms.port = 9; /* workstation stuff */ - (void)strlcpy(ms.app, "workstation", sizeof(ms.app)); -- (void)strlcpy(ms.proto, "tcp", sizeof(ms.app)); -+ (void)strlcpy(ms.proto, "tcp", sizeof(ms.proto)); - (void)strlcpy(myname, conf->myname, sizeof(myname)); - /* Chomp .local suffix */ - if ((cp = strchr(myname, '.')) != NULL) Index: patches/patch-mdnsd_mdnsd_h =================================================================== RCS file: patches/patch-mdnsd_mdnsd_h diff -N patches/patch-mdnsd_mdnsd_h --- patches/patch-mdnsd_mdnsd_h 26 Nov 2013 08:53:24 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,11 +0,0 @@ -$OpenBSD: patch-mdnsd_mdnsd_h,v 1.1 2013/11/26 08:53:24 jca Exp $ ---- mdnsd/mdnsd.h.orig Mon Nov 25 23:30:58 2013 -+++ mdnsd/mdnsd.h Mon Nov 25 23:30:10 2013 -@@ -19,6 +19,7 @@ - - #include <sys/param.h> - #include <sys/socket.h> -+#include <sys/tree.h> - #include <sys/types.h> - #include <net/if_arp.h> - #include <net/if.h>
