Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/ntp support to follow NetBSD build options for



details:   https://anonhg.NetBSD.org/src/rev/0b905c6a5643
branches:  trunk
changeset: 757438:0b905c6a5643
user:      kardel <kardel%NetBSD.org@localhost>
date:      Sun Aug 29 18:55:50 2010 +0000

description:
support to follow NetBSD build options for
        MKCRYPTO
        MKMDNS
        MKINET6

diffstat:

 external/bsd/ntp/Makefile.inc      |  19 ++++++++++++++-----
 external/bsd/ntp/bin/ntpd/Makefile |   7 +------
 external/bsd/ntp/include/config.h  |  27 +++++++++++++++++----------
 3 files changed, 32 insertions(+), 21 deletions(-)

diffs (157 lines):

diff -r 70a5f172be3f -r 0b905c6a5643 external/bsd/ntp/Makefile.inc
--- a/external/bsd/ntp/Makefile.inc     Sun Aug 29 18:54:30 2010 +0000
+++ b/external/bsd/ntp/Makefile.inc     Sun Aug 29 18:55:50 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.2 2009/12/14 02:09:39 christos Exp $
+#      $NetBSD: Makefile.inc,v 1.3 2010/08/29 18:55:50 kardel Exp $
 
 .if !defined(NTP_MAKEFILE_INC)
 NTP_MAKEFILE_INC=yes
@@ -10,10 +10,6 @@
 
 .include <bsd.own.mk>
 
-.if ${MKCRYPTO} == "no"
-NTP_USE_OPENSSL?=no
-.endif
-
 IDIST=         ${NETBSDSRCDIR}/external/bsd/ntp/dist
 NTP_SRCDIR=    ${NETBSDSRCDIR}/external/bsd/ntp
 NTP_HTMLDIR=   /usr/share/doc/html/ntp
@@ -42,6 +38,11 @@
 DPADD+=                ${LIBCRYPTO} ${LIBCRYPT}
 .endif
 
+.if ("${MKMDNS}" != "no")
+CPPFLAGS+=-DHAVE_DNSREGISTRATION=1
+LDADD+=-ldns_sd
+.endif
+
 SRCS+= version.c
 
 CLEANFILES+=version.c version.o
@@ -51,6 +52,14 @@
 
 .endif # defined(PROG)
 
+.if (${MKCRYPTO} != "no")
+CPPFLAGS+=-DOPENSSL
+.endif
+
+.if ("${MKINET6}" != "no")
+CPPFLAGS+=-DWANT_IPV6 
+.endif
+
 .if exists(${.CURDIR}/../../Makefile.inc)
 .include "${.CURDIR}/../../Makefile.inc"
 .endif
diff -r 70a5f172be3f -r 0b905c6a5643 external/bsd/ntp/bin/ntpd/Makefile
--- a/external/bsd/ntp/bin/ntpd/Makefile        Sun Aug 29 18:54:30 2010 +0000
+++ b/external/bsd/ntp/bin/ntpd/Makefile        Sun Aug 29 18:55:50 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.5 2010/08/29 11:15:32 kardel Exp $
+#      $NetBSD: Makefile,v 1.6 2010/08/29 18:55:50 kardel Exp $
 
 NOGCCERROR=yes
 
@@ -83,11 +83,6 @@
 
 CPPFLAGS+=-I${IDIST}/include -I${IDIST}/libopts
 
-.if ("${MKMDNS}" != "no")
-CPPFLAGS+=-DUSE_MDNS
-LDADD+=-ldns_sd
-.endif
-
 .PATH: ${DIST}
 
 ntpd.8: ntpd.1
diff -r 70a5f172be3f -r 0b905c6a5643 external/bsd/ntp/include/config.h
--- a/external/bsd/ntp/include/config.h Sun Aug 29 18:54:30 2010 +0000
+++ b/external/bsd/ntp/include/config.h Sun Aug 29 18:55:50 2010 +0000
@@ -332,12 +332,9 @@
 /* Define to 1 if you have the <dlfcn.h> header file. */
 #define HAVE_DLFCN_H 1
 
+/* NetBSD: set by build process */
 /* Use Rendezvous/DNS-SD registration */
-#ifdef USE_MDNS
-#define HAVE_DNSREGISTRATION 1
-#else
-#undef HAVE_DNSREGISTRATION
-#endif
+/* #define HAVE_DNSREGISTRATION 1 */
 
 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
 /* #undef HAVE_DOPRNT */
@@ -1063,7 +1060,7 @@
 #define ISC_PLATFORM_HAVEIN6PKTINFO /**/
 
 /* have IPv6? */
-#define ISC_PLATFORM_HAVEIPV6 /**/
+#define ISC_PLATFORM_HAVEIPV6
 
 /* struct sockaddr has sa_len? */
 #define ISC_PLATFORM_HAVESALEN /**/
@@ -1156,7 +1153,7 @@
 /* #undef NO_PARENB_IGNPAR */
 
 /* Default location of crypto key info */
-#define NTP_KEYSDIR "/tmp/ntp-4.2.6/etc"
+#define NTP_KEYSDIR "/etc/ntp"
 
 /* Path to sign daemon rendezvous socket */
 /* #undef NTP_SIGND_PATH */
@@ -1170,8 +1167,9 @@
 /* Do we have support for SHMEM_STATUS? */
 #define ONCORE_SHMEM_STATUS 1
 
+/* NetBSD: set by build process */
 /* Use OpenSSL? */
-#define OPENSSL /**/
+/* #define OPENSSL */
 
 /* Should we open the broadcast socket? */
 #define OPEN_BCAST_SOCKET 1
@@ -1244,13 +1242,21 @@
 /* #undef SCO5_CLOCK */
 
 /* The size of `char*', as computed by sizeof. */
+#ifndef _LP64
 #define SIZEOF_CHARP 4
+#else
+#define SIZEOF_CHARP 8
+#endif
 
 /* The size of `int', as computed by sizeof. */
 #define SIZEOF_INT 4
 
 /* The size of `long', as computed by sizeof. */
+#ifndef _LP64
 #define SIZEOF_LONG 4
+#else
+#define SIZEOF_LONG 8
+#endif
 
 /* The size of `short', as computed by sizeof. */
 #define SIZEOF_SHORT 2
@@ -1277,7 +1283,7 @@
 /* #undef STEP_SLEW */
 
 /* canonical system (cpu-vendor-os) of where we should run */
-#define STR_SYSTEM "i386-unknown-netbsdelf5.99.20"
+#define STR_SYSTEM "i386-unknown-netbsdelf"
 
 /* Buggy syscall() (Solaris2.4)? */
 /* #undef SYSCALL_BUG */
@@ -1349,8 +1355,9 @@
 /* Version number of package */
 #define VERSION "4.2.6"
 
+/* NetBSD: set by build process */
 /* configure --enable-ipv6 */
-#define WANT_IPV6 /**/
+/* #define WANT_IPV6 */
 
 /* Define this if a working libregex can be found */
 #define WITH_LIBREGEX 1



Home | Main Index | Thread Index | Old Index