Changes 258.14:

This is the version supplied with Mac OS X 10.6.6.
This commit is contained in:
adam 2011-01-12 08:53:52 +00:00
parent 8c9a9ab5ae
commit 48536dc6a7
9 changed files with 91 additions and 55 deletions

View file

@ -1,20 +1,18 @@
# $NetBSD: Makefile,v 1.33 2010/12/20 14:17:01 tez Exp $ # $NetBSD: Makefile,v 1.34 2011/01/12 08:53:52 adam Exp $
DISTNAME= mDNSResponder-214.3.2 DISTNAME= mDNSResponder-258.14
PKGREVISION= 1
CATEGORIES= net CATEGORIES= net
MASTER_SITES= http://www.opensource.apple.com/tarballs/mDNSResponder/ MASTER_SITES= http://www.opensource.apple.com/tarballs/mDNSResponder/
MAINTAINER= pkgsrc-users@NetBSD.org MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://developer.apple.com/bonjour/ HOMEPAGE= http://developer.apple.com/bonjour/
COMMENT= Apple's mDNS responder COMMENT= Apple's mDNS responder
LICENSE= apache-2.0 AND modified-bsd
MAKE_JOBS_SAFE= no USE_TOOLS+= gmake flex bison
BUILD_DIRS= mDNSPosix
USE_TOOLS+= gmake flex bison BUILDDIR= ${WRKSRC}/mDNSPosix/build/prod
BUILD_DIRS= mDNSPosix AUTO_MKDIRS= yes
BUILDDIR= ${WRKSRC}/mDNSPosix/build/prod
AUTO_MKDIRS= yes
PKG_DESTDIR_SUPPORT= user-destdir PKG_DESTDIR_SUPPORT= user-destdir
@ -32,13 +30,7 @@ MAKE_ENV+= os=solaris
.elif ${OPSYS} == "Linux" .elif ${OPSYS} == "Linux"
MAKE_ENV+= os=linux MAKE_ENV+= os=linux
.elif ${OPSYS} == "Darwin" .elif ${OPSYS} == "Darwin"
. if !empty(OS_VERSION:M6*) MAKE_ENV+= os=x
MAKE_ENV+= os=jaguar
. elif !empty(OS_VERSION:M7*)
MAKE_ENV+= os=panther
. elif !empty(OS_VERSION:M8*)
MAKE_ENV+= os=tiger
. endif
SO_SUFFIX= dylib SO_SUFFIX= dylib
.else .else
MAKE_ENV+= os=netbsd MAKE_ENV+= os=netbsd
@ -56,7 +48,7 @@ SBINARY= mdnsd dnsextd
!empty(MACHINE_PLATFORM:MSunOS-5.[0-9]-*) !empty(MACHINE_PLATFORM:MSunOS-5.[0-9]-*)
.include "../../devel/librfuncs/buildlink3.mk" .include "../../devel/librfuncs/buildlink3.mk"
MAKE_ENV+= EXTRA_LIBS=-Wl,-R${BUILDLINK_PREFIX.librfuncs:Q}/lib\ ${BUILDLINK_LDFLAGS.librfuncs:Q} MAKE_ENV+= EXTRA_LIBS=-Wl,-R${BUILDLINK_PREFIX.librfuncs}/lib\ ${BUILDLINK_LDFLAGS.librfuncs:Q}
.else .else
MAKE_ENV+= EXTRA_LIBS= MAKE_ENV+= EXTRA_LIBS=
.endif .endif

View file

@ -1,4 +1,4 @@
# $NetBSD: builtin.mk,v 1.1 2010/07/14 17:45:30 drochner Exp $ # $NetBSD: builtin.mk,v 1.2 2011/01/12 08:53:52 adam Exp $
BUILTIN_PKG:= mDNSResponder BUILTIN_PKG:= mDNSResponder
@ -30,13 +30,13 @@ _BLTN_DNSSD_212_1!= \
${GREP} -c 2120100 ${H_DNSSD} || ${TRUE} ${GREP} -c 2120100 ${H_DNSSD} || ${TRUE}
_BLTN_DNSSD_214_3_2!= \ _BLTN_DNSSD_214_3_2!= \
${GREP} -c 2140302 ${H_DNSSD} || ${TRUE} ${GREP} -c 2140302 ${H_DNSSD} || ${TRUE}
. if ${_BLTN_DNSSD_214_3_2} == "1" . if ${_BLTN_DNSSD_214_3_2} == "1"
BUILTIN_VERSION.mDNSResponder= 214.3.2 BUILTIN_VERSION.mDNSResponder= 214.3.2
. elif ${_BLTN_DNSSD_212_1} == "1" . elif ${_BLTN_DNSSD_212_1} == "1"
BUILTIN_VERSION.mDNSResponder= 212.1 BUILTIN_VERSION.mDNSResponder= 212.1
. else . else
BUILTIN_VERSION.mDNSResponder= 0 #unknown BUILTIN_VERSION.mDNSResponder= 0 #unknown
. endif . endif
BUILTIN_PKG.mDNSResponder= mDNSResponder-${BUILTIN_VERSION.mDNSResponder} BUILTIN_PKG.mDNSResponder= mDNSResponder-${BUILTIN_VERSION.mDNSResponder}
.endif .endif

View file

@ -1,10 +1,11 @@
$NetBSD: distinfo,v 1.23 2010/12/15 22:33:41 jmcneill Exp $ $NetBSD: distinfo,v 1.24 2011/01/12 08:53:52 adam Exp $
SHA1 (mDNSResponder-214.3.2.tar.gz) = bd59e0e3008ba797a30360dd8e59beb7152d9872 SHA1 (mDNSResponder-258.14.tar.gz) = 2a34794ff9a5184ce1e57ccea4001b5af6635f7b
RMD160 (mDNSResponder-214.3.2.tar.gz) = f9670f661083dae5529422b19655ba9c473960c7 RMD160 (mDNSResponder-258.14.tar.gz) = fbd9dcfa84dbeb9de379066958a0b509af074dbc
Size (mDNSResponder-214.3.2.tar.gz) = 1633510 bytes Size (mDNSResponder-258.14.tar.gz) = 1833244 bytes
SHA1 (patch-aa) = 6a899e729b7ed1aa43497934a98e37b2fd9411d4 SHA1 (patch-aa) = 3f31f10ab6bf0d3ec72b56791cc4db5f24bfeb0b
SHA1 (patch-ab) = 712e3999854215b9ea14f6d444262beef8c545b1 SHA1 (patch-ab) = 8567d3a9849377fdfd1fd98f1b0dd164561bb6c9
SHA1 (patch-ac) = f328cfed7da68b61dc1afa9908aade33cfd5ecc3 SHA1 (patch-ac) = 3fb065c49ed434f031ea29214ec4140b24f8da64
SHA1 (patch-ad) = fa77b934a63bd07f9b0a4697a3c1a59d242fca19 SHA1 (patch-ad) = 612390897ad2f395ceb7394b644f977c4858d6cc
SHA1 (patch-ae) = f124201460929b86300664ff9ee31c0d845759c9 SHA1 (patch-ae) = b22eeebf70abb26f7b69374fb5a0dd9720c3957b
SHA1 (patch-af) = bce933daa008f081b72c5d509e84704be13360dc

View file

@ -1,10 +1,19 @@
$NetBSD: patch-aa,v 1.10 2010/07/20 00:04:08 sbd Exp $ $NetBSD: patch-aa,v 1.11 2011/01/12 08:53:52 adam Exp $
Find libpthread.so when not on the default rpath. Find libpthread.so when not on the default rpath.
Allow custom CC and CFLAGS.
--- mDNSPosix/Makefile.orig 2009-02-02 19:44:06.000000000 +0000 --- mDNSPosix/Makefile.orig 2009-02-02 19:44:06.000000000 +0000
+++ mDNSPosix/Makefile +++ mDNSPosix/Makefile
@@ -326,7 +326,7 @@ LN = ln -s -f @@ -54,7 +54,6 @@ COREDIR = ../mDNSCore
SHAREDDIR ?= ../mDNSShared
JDK = /usr/jdk
-CC = @cc
BISON = @bison
FLEX = @flex
LD = ld -shared
@@ -64,7 +64,7 @@ LN = ln -s -f
CFLAGS_COMMON = -I$(COREDIR) -I$(SHAREDDIR) -I$(OBJDIR) -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" CFLAGS_COMMON = -I$(COREDIR) -I$(SHAREDDIR) -I$(OBJDIR) -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\"
CFLAGS_PTHREAD = CFLAGS_PTHREAD =
LINKOPTS = LINKOPTS =
@ -13,7 +22,7 @@ Find libpthread.so when not on the default rpath.
LDSUFFIX = so LDSUFFIX = so
JAVACFLAGS_OS = -fPIC -shared -ldns_sd JAVACFLAGS_OS = -fPIC -shared -ldns_sd
@@ -362,7 +362,7 @@ endif @@ -100,7 +100,7 @@ endif
else else
ifeq ($(os),linux) ifeq ($(os),linux)
@ -22,7 +31,7 @@ Find libpthread.so when not on the default rpath.
FLEXFLAGS_OS = -l FLEXFLAGS_OS = -l
JAVACFLAGS_OS += -I$(JDK)/include/linux JAVACFLAGS_OS += -I$(JDK)/include/linux
OPTIONALTARG = nss_mdns OPTIONALTARG = nss_mdns
@@ -388,7 +388,7 @@ CFLAGS_OS = @@ -126,7 +126,7 @@ CFLAGS_OS =
# -pthread # -pthread
# Link a user-threaded process against libc_r instead of libc. # Link a user-threaded process against libc_r instead of libc.
CFLAGS_PTHREAD = -pthread -D_THREAD_SAFE CFLAGS_PTHREAD = -pthread -D_THREAD_SAFE
@ -31,3 +40,20 @@ Find libpthread.so when not on the default rpath.
JAVACFLAGS_OS += -I$(JDK)/include/freebsd JAVACFLAGS_OS += -I$(JDK)/include/freebsd
LDCONFIG = ldconfig LDCONFIG = ldconfig
else else
@@ -141,7 +140,6 @@ ifeq ($(os),x)
# we get build failures: daemon is deprecated (declared at /usr/include/stdlib.h:283)
CFLAGS_OS = -DHAVE_IPV6 -no-cpp-precomp -Werror -Wdeclaration-after-statement \
-D__MAC_OS_X_VERSION_MIN_REQUIRED=__MAC_OS_X_VERSION_10_4 #-Wunreachable-code
-CC = @gcc-4.0
LD = $(CC) -dynamiclib
LINKOPTS = -lSystem
LDSUFFIX = dylib
@@ -205,7 +204,7 @@ endif
endif
endif
-CFLAGS = $(CFLAGS_COMMON) $(CFLAGS_OS) $(CFLAGS_DEBUG)
+CFLAGS += $(CFLAGS_COMMON) $(CFLAGS_OS) -DMDNS_DEBUGMSGS=0
#############################################################################

View file

@ -1,4 +1,4 @@
$NetBSD: patch-ab,v 1.7 2010/07/14 09:29:04 sbd Exp $ $NetBSD: patch-ab,v 1.8 2011/01/12 08:53:52 adam Exp $
1) add patch from http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/147007 1) add patch from http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/147007
@ -6,9 +6,9 @@ $NetBSD: patch-ab,v 1.7 2010/07/14 09:29:04 sbd Exp $
-fix some RFC2292 vs 3542 confusion which made the former fail -fix some RFC2292 vs 3542 confusion which made the former fail
-on NetBSD, build a HINFO record from hw.model and kern.osrelease -on NetBSD, build a HINFO record from hw.model and kern.osrelease
--- mDNSPosix/mDNSPosix.c.orig 2009-01-25 03:16:46.000000000 +0000 --- mDNSPosix/mDNSPosix.c.orig 2010-05-20 22:35:08.000000000 +0000
+++ mDNSPosix/mDNSPosix.c +++ mDNSPosix/mDNSPosix.c
@@ -581,7 +581,7 @@ mDNSexport int ParseDNSServers(mDNS *m, @@ -467,7 +467,7 @@ mDNSexport int ParseDNSServers(mDNS *m,
{ {
char line[256]; char line[256];
char nameserver[16]; char nameserver[16];
@ -17,7 +17,7 @@ $NetBSD: patch-ab,v 1.7 2010/07/14 09:29:04 sbd Exp $
int numOfServers = 0; int numOfServers = 0;
FILE *fp = fopen(filePath, "r"); FILE *fp = fopen(filePath, "r");
if (fp == NULL) return -1; if (fp == NULL) return -1;
@@ -600,6 +600,7 @@ mDNSexport int ParseDNSServers(mDNS *m, @@ -486,6 +486,7 @@ mDNSexport int ParseDNSServers(mDNS *m,
numOfServers++; numOfServers++;
} }
} }
@ -25,7 +25,7 @@ $NetBSD: patch-ab,v 1.7 2010/07/14 09:29:04 sbd Exp $
return (numOfServers > 0) ? 0 : -1; return (numOfServers > 0) ? 0 : -1;
} }
@@ -802,7 +803,13 @@ mDNSlocal int SetupSocket(struct sockadd @@ -690,7 +691,13 @@ mDNSlocal int SetupSocket(struct sockadd
{ {
struct ipv6_mreq imr6; struct ipv6_mreq imr6;
struct sockaddr_in6 bindAddr6; struct sockaddr_in6 bindAddr6;
@ -40,7 +40,7 @@ $NetBSD: patch-ab,v 1.7 2010/07/14 09:29:04 sbd Exp $
if (err == 0) if (err == 0)
{ {
err = setsockopt(*sktPtr, IPPROTO_IPV6, IPV6_PKTINFO, &kOn, sizeof(kOn)); err = setsockopt(*sktPtr, IPPROTO_IPV6, IPV6_PKTINFO, &kOn, sizeof(kOn));
@@ -811,7 +818,13 @@ mDNSlocal int SetupSocket(struct sockadd @@ -699,7 +706,13 @@ mDNSlocal int SetupSocket(struct sockadd
#else #else
#warning This platform has no way to get the destination interface information for IPv6 -- will only work for single-homed hosts #warning This platform has no way to get the destination interface information for IPv6 -- will only work for single-homed hosts
#endif #endif
@ -55,7 +55,7 @@ $NetBSD: patch-ab,v 1.7 2010/07/14 09:29:04 sbd Exp $
if (err == 0) if (err == 0)
{ {
err = setsockopt(*sktPtr, IPPROTO_IPV6, IPV6_HOPLIMIT, &kOn, sizeof(kOn)); err = setsockopt(*sktPtr, IPPROTO_IPV6, IPV6_HOPLIMIT, &kOn, sizeof(kOn));
@@ -1293,6 +1306,36 @@ mDNSlocal mDNSBool mDNSPlatformInit_CanR @@ -1181,6 +1194,36 @@ mDNSlocal mDNSBool mDNSPlatformInit_CanR
return(err == 0); return(err == 0);
} }
@ -92,7 +92,7 @@ $NetBSD: patch-ab,v 1.7 2010/07/14 09:29:04 sbd Exp $
// mDNS core calls this routine to initialise the platform-specific data. // mDNS core calls this routine to initialise the platform-specific data.
mDNSexport mStatus mDNSPlatformInit(mDNS *const m) mDNSexport mStatus mDNSPlatformInit(mDNS *const m)
{ {
@@ -1314,6 +1357,10 @@ mDNSexport mStatus mDNSPlatformInit(mDNS @@ -1202,6 +1245,10 @@ mDNSexport mStatus mDNSPlatformInit(mDNS
GetUserSpecifiedRFC1034ComputerName(&m->hostlabel); GetUserSpecifiedRFC1034ComputerName(&m->hostlabel);
if (m->hostlabel.c[0] == 0) MakeDomainLabelFromLiteralString(&m->hostlabel, "Computer"); if (m->hostlabel.c[0] == 0) MakeDomainLabelFromLiteralString(&m->hostlabel, "Computer");

View file

@ -1,4 +1,4 @@
$NetBSD: patch-ac,v 1.8 2010/12/15 22:33:42 jmcneill Exp $ $NetBSD: patch-ac,v 1.9 2011/01/12 08:53:52 adam Exp $
* Fix build on FreeBSD and DragonFly, as shown in recent bulk builds and * Fix build on FreeBSD and DragonFly, as shown in recent bulk builds and
PR 34022. PR 34022.
@ -7,7 +7,7 @@ $NetBSD: patch-ac,v 1.8 2010/12/15 22:33:42 jmcneill Exp $
--- mDNSPosix/mDNSUNP.c.orig 2009-01-13 00:31:35.000000000 -0500 --- mDNSPosix/mDNSUNP.c.orig 2009-01-13 00:31:35.000000000 -0500
+++ mDNSPosix/mDNSUNP.c 2010-12-04 19:25:49.000000000 -0500 +++ mDNSPosix/mDNSUNP.c 2010-12-04 19:25:49.000000000 -0500
@@ -188,8 +188,10 @@ First checkin @@ -54,8 +54,10 @@ First checkin
#include <net/if_dl.h> #include <net/if_dl.h>
#endif #endif
@ -19,7 +19,7 @@ $NetBSD: patch-ac,v 1.8 2010/12/15 22:33:42 jmcneill Exp $
#include <netinet/in_var.h> #include <netinet/in_var.h>
// Note: netinet/in_var.h implicitly includes netinet6/in6_var.h for us // Note: netinet/in_var.h implicitly includes netinet6/in6_var.h for us
#endif #endif
@@ -239,6 +241,8 @@ struct ifi_info *get_ifi_info_linuxv6(in @@ -105,6 +107,8 @@ struct ifi_info *get_ifi_info_linuxv6(in
addr[4],addr[5],addr[6],addr[7], addr[4],addr[5],addr[6],addr[7],
&index, &plen, &scope, &flags, ifname) != EOF) { &index, &plen, &scope, &flags, ifname) != EOF) {
@ -28,7 +28,7 @@ $NetBSD: patch-ac,v 1.8 2010/12/15 22:33:42 jmcneill Exp $
myflags = 0; myflags = 0;
if (strncmp(lastname, ifname, IFNAMSIZ) == 0) { if (strncmp(lastname, ifname, IFNAMSIZ) == 0) {
if (doaliases == 0) if (doaliases == 0)
@@ -273,7 +277,6 @@ struct ifi_info *get_ifi_info_linuxv6(in @@ -139,7 +143,6 @@ struct ifi_info *get_ifi_info_linuxv6(in
memcpy(ifi->ifi_addr, res0->ai_addr, sizeof(struct sockaddr_in6)); memcpy(ifi->ifi_addr, res0->ai_addr, sizeof(struct sockaddr_in6));
/* Add netmask of the interface */ /* Add netmask of the interface */

View file

@ -1,8 +1,8 @@
$NetBSD: patch-ad,v 1.1 2010/07/14 10:14:43 sbd Exp $ $NetBSD: patch-ad,v 1.2 2011/01/12 08:53:52 adam Exp $
--- Clients/Makefile.orig 2008-09-05 17:37:08.000000000 +0000 --- Clients/Makefile.orig 2008-09-05 17:37:08.000000000 +0000
+++ Clients/Makefile +++ Clients/Makefile
@@ -81,7 +81,7 @@ build: @@ -42,7 +42,7 @@ build:
mkdir build mkdir build
build/dns-sd: build dns-sd.c ClientCommon.c build/dns-sd: build dns-sd.c ClientCommon.c

View file

@ -1,8 +1,8 @@
$NetBSD: patch-ae,v 1.2 2010/07/19 14:14:14 tnn Exp $ $NetBSD: patch-ae,v 1.3 2011/01/12 08:53:52 adam Exp $
--- mDNSShared/CommonServices.h.orig 2009-03-30 19:51:29.000000000 +0000 --- mDNSShared/CommonServices.h.orig 2009-08-11 01:13:47.000000000 +0000
+++ mDNSShared/CommonServices.h +++ mDNSShared/CommonServices.h
@@ -102,6 +102,24 @@ Common Services and portability support @@ -64,6 +64,24 @@
#endif #endif
#endif #endif
@ -27,7 +27,7 @@ $NetBSD: patch-ae,v 1.2 2010/07/19 14:14:14 tnn Exp $
// Solaris // Solaris
#if( !defined( TARGET_OS_SOLARIS ) ) #if( !defined( TARGET_OS_SOLARIS ) )
@@ -128,7 +146,7 @@ Common Services and portability support @@ -90,7 +108,7 @@
// No predefined macro for VxWorks so just assume VxWorks if nothing else is set. // No predefined macro for VxWorks so just assume VxWorks if nothing else is set.
@ -36,7 +36,7 @@ $NetBSD: patch-ae,v 1.2 2010/07/19 14:14:14 tnn Exp $
#define TARGET_OS_VXWORKS 1 #define TARGET_OS_VXWORKS 1
#else #else
#define TARGET_OS_VXWORKS 0 #define TARGET_OS_VXWORKS 0
@@ -224,6 +242,19 @@ Common Services and portability support @@ -186,6 +204,19 @@
#include <stdint.h> #include <stdint.h>
#include <arpa/inet.h> #include <arpa/inet.h>
@ -56,7 +56,7 @@ $NetBSD: patch-ae,v 1.2 2010/07/19 14:14:14 tnn Exp $
#elif( TARGET_OS_SOLARIS ) #elif( TARGET_OS_SOLARIS )
// Solaris // Solaris
@@ -493,7 +524,7 @@ Common Services and portability support @@ -455,7 +486,7 @@
// - Windows // - Windows
#if( TARGET_LANGUAGE_C_LIKE ) #if( TARGET_LANGUAGE_C_LIKE )

View file

@ -0,0 +1,17 @@
$NetBSD: patch-af,v 1.1 2011/01/12 08:53:52 adam Exp $
mDNSPlatformSetAllowSleep only defined for Mac OS X.
--- mDNSCore/mDNS.c.orig 2010-10-08 23:05:00.000000000 +0000
+++ mDNSCore/mDNS.c
@@ -4011,8 +4011,10 @@ mDNSexport void mDNS_UpdateAllowSleep(mD
#endif /* !defined(IDLESLEEPCONTROL_DISABLED) */
}
+#if 0
// Call the platform code to enable/disable sleep
mDNSPlatformSetAllowSleep(m, allowSleep);
+#endif
}
mDNSlocal void SendSPSRegistration(mDNS *const m, NetworkInterfaceInfo *intf, const mDNSOpaque16 id)