Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/apache2/mDNSResponder Two minor tweaks:



details:   https://anonhg.NetBSD.org/src/rev/96626eed31f0
branches:  trunk
changeset: 747747:96626eed31f0
user:      tsarna <tsarna%NetBSD.org@localhost>
date:      Thu Oct 01 00:22:03 2009 +0000

description:
Two minor tweaks:

- Build with MDNS_VERSIONSTR_NODTS a'la OpenSolaris, to exclude
  __DATE__/__TIME__, for repeatable builds.

- log under "mdnsd" instead of "mDNSResponder" to reduce confusion.

diffstat:

 external/apache2/mDNSResponder/Makefile.inc                 |  5 +++--
 external/apache2/mDNSResponder/dist/mDNSShared/uds_daemon.c |  5 ++++-
 external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile      |  4 ++--
 3 files changed, 9 insertions(+), 5 deletions(-)

diffs (49 lines):

diff -r 6425394b8882 -r 96626eed31f0 external/apache2/mDNSResponder/Makefile.inc
--- a/external/apache2/mDNSResponder/Makefile.inc       Wed Sep 30 22:32:04 2009 +0000
+++ b/external/apache2/mDNSResponder/Makefile.inc       Thu Oct 01 00:22:03 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.1 2009/09/29 23:56:27 tsarna Exp $
+# $NetBSD: Makefile.inc,v 1.2 2009/10/01 00:22:03 tsarna Exp $
 
 .include <bsd.own.mk>
 
@@ -12,4 +12,5 @@
 .endif
 
 CPPFLAGS+=     -DPID_FILE=\"/var/run/mdnsd/mdnsd.pid\" \
-               -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd/mdnsd\"
+               -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd/mdnsd\" \
+               -DMDNS_VERSIONSTR_NODTS
diff -r 6425394b8882 -r 96626eed31f0 external/apache2/mDNSResponder/dist/mDNSShared/uds_daemon.c
--- a/external/apache2/mDNSResponder/dist/mDNSShared/uds_daemon.c       Wed Sep 30 22:32:04 2009 +0000
+++ b/external/apache2/mDNSResponder/dist/mDNSShared/uds_daemon.c       Thu Oct 01 00:22:03 2009 +0000
@@ -1083,7 +1083,10 @@
 
 // globals
 mDNSexport mDNS mDNSStorage;
-mDNSexport const char ProgramName[] = "mDNSResponder";
+#ifndef PROGRAM_NAME
+#define PROGRAM_NAME "mDNSResponder"
+#endif
+mDNSexport const char ProgramName[] = PROGRAM_NAME;
 
 static dnssd_sock_t listenfd = dnssd_InvalidSocket;
 static request_state *all_requests = NULL;
diff -r 6425394b8882 -r 96626eed31f0 external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile
--- a/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile    Wed Sep 30 22:32:04 2009 +0000
+++ b/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile    Thu Oct 01 00:22:03 2009 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2009/09/29 23:56:34 tsarna Exp $
+#      $NetBSD: Makefile,v 1.2 2009/10/01 00:22:03 tsarna Exp $
 
 PROG=  mdnsd
 
@@ -6,7 +6,7 @@
 
 .PATH: ${DIST}/mDNSPosix ${DIST}/mDNSCore ${DIST}/mDNSShared
 
-CPPFLAGS+=-I${DIST}/mDNSCore -I${DIST}/mDNSShared
+CPPFLAGS+=-I${DIST}/mDNSCore -I${DIST}/mDNSShared -DPROGRAM_NAME=\"mdnsd\"
 SRCS=  PosixDaemon.c mDNSPosix.c mDNSUNP.c mDNS.c DNSDigest.c uDNS.c \
        DNSCommon.c uds_daemon.c mDNSDebug.c dnssd_ipc.c GenLinkedList.c \
        PlatformCommon.c



Home | Main Index | Thread Index | Old Index