Update for OpenMDNS to 0.6

* All patches are now in.
* Support for multiple iface

OK jca@
This commit is contained in:
gonzalo 2014-09-17 15:43:59 +00:00
parent 01e62971f9
commit cc9e852a7c
5 changed files with 6 additions and 42 deletions

View File

@ -1,9 +1,8 @@
# $OpenBSD: Makefile,v 1.13 2014/07/22 10:55:41 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.14 2014/09/17 15:43:59 gonzalo Exp $
COMMENT = MDNS/DNS-SD daemon
DISTNAME = openmdns-0.5
REVISION = 5
DISTNAME = openmdns-0.6
CATEGORIES = net
MAINTAINER = Gonzalo L. R. <gonzalo@openbsd.org>
@ -18,6 +17,8 @@ MASTER_SITES = http://www.haesbaert.org/openmdns/releases/ \
WANTLIB += c event util
WRKDIST = ${WRKDIR}/mdnsd
MAKE_FLAGS = BINDIR="${TRUEPREFIX}/bin" \
MANDIR="${TRUEPREFIX}/man/man"

View File

@ -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

View File

@ -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);

View File

@ -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)

View File

@ -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>