Module Name: src
Committed By: christos
Date: Tue Dec 31 20:23:12 UTC 2013
Modified Files:
src/external/bsd/bind/bin/named: Makefile
src/external/bsd/bind/include: config.h
src/external/bsd/bind/include/isc: platform.h
src/external/bsd/bind/lib/libisc: Makefile shlib_version
Added Files:
src/external/bsd/bind: binclude4netbsd bind2netbsd
Log Message:
changes for 9.9.5b1
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/bsd/bind/binclude4netbsd \
src/external/bsd/bind/bind2netbsd
cvs rdiff -u -r1.7 -r1.8 src/external/bsd/bind/bin/named/Makefile
cvs rdiff -u -r1.10 -r1.11 src/external/bsd/bind/include/config.h
cvs rdiff -u -r1.13 -r1.14 src/external/bsd/bind/include/isc/platform.h
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/bind/lib/libisc/Makefile
cvs rdiff -u -r1.12 -r1.13 src/external/bsd/bind/lib/libisc/shlib_version
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/bind/bin/named/Makefile
diff -u src/external/bsd/bind/bin/named/Makefile:1.7 src/external/bsd/bind/bin/named/Makefile:1.8
--- src/external/bsd/bind/bin/named/Makefile:1.7 Sat Jul 27 15:23:09 2013
+++ src/external/bsd/bind/bin/named/Makefile Tue Dec 31 15:23:12 2013
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2013/07/27 19:23:09 christos Exp $
+# $NetBSD: Makefile,v 1.8 2013/12/31 20:23:12 christos Exp $
.include <bsd.own.mk>
@@ -13,6 +13,7 @@ DIST=${IDIST}/bin/named
CPPFLAGS+=-I${DIST}/include -I${DIST}/unix/include -DCONFIGARGS=\"defaults\"
CPPFLAGS+=-DNO_VERSION_DATE -DPRODUCT=\"BIND\" -DSRCID=\"${SRCID}\"
CPPFLAGS+=-DDESCRIPTION=\"\(Extended\ Support\ Version\)\"
+CPPFLAGS+=-DBUILDER=\"make\" # I am tempted to say Bob
.include "${IDIST}/srcid"
Index: src/external/bsd/bind/include/config.h
diff -u src/external/bsd/bind/include/config.h:1.10 src/external/bsd/bind/include/config.h:1.11
--- src/external/bsd/bind/include/config.h:1.10 Sat Jul 27 15:23:14 2013
+++ src/external/bsd/bind/include/config.h Tue Dec 31 15:23:12 2013
@@ -17,7 +17,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* Id: acconfig.h,v 1.53 2008/12/01 23:47:44 tbox Exp */
+/* Id: acconfig.h,v 1.53 2008/12/01 23:47:44 tbox Exp */
/*! \file */
@@ -87,7 +87,8 @@
*/
/* #undef CALL_PTHREAD_SETCONCURRENCY */
-#if 0 /* We'll define this in each Makefile as necessary */
+#ifndef __NetBSD__
+/* defined by the build process */
/** define if IPv6 is not disabled */
#define WANT_IPV6 1
#endif
@@ -148,6 +149,9 @@ int sigwait(const unsigned int *set, int
/* Define if OpenSSL includes DSA support */
#define HAVE_OPENSSL_DSA 1
+/* Define if OpenSSL includes ECDSA support */
+#define HAVE_OPENSSL_ECDSA 1
+
/* Define to the length type used by the socket API (socklen_t, size_t, int). */
#define ISC_SOCKADDR_LEN_T socklen_t
@@ -263,6 +267,9 @@ int sigwait(const unsigned int *set, int
/* Define to 1 if you have the `pthread' library (-lpthread). */
#define HAVE_LIBPTHREAD 1
+/* Define to 1 if you have the `rt' library (-lrt). */
+#define HAVE_LIBRT 1
+
/* Define to 1 if you have the `scf' library (-lscf). */
/* #undef HAVE_LIBSCF */
@@ -273,11 +280,14 @@ int sigwait(const unsigned int *set, int
/* #undef HAVE_LIBTHR */
/* Define if libxml2 was found */
-/* #undef HAVE_LIBXML2 */
+/* #undef HAVE_LIBXML2 1 */
/* Define to 1 if you have the <linux/capability.h> header file. */
/* #undef HAVE_LINUX_CAPABILITY_H */
+/* Define to 1 if you have the <linux/types.h> header file. */
+/* #undef HAVE_LINUX_TYPES_H */
+
/* Define to 1 if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
@@ -290,18 +300,30 @@ int sigwait(const unsigned int *set, int
/* Define to 1 if you have the <net/if6.h> header file. */
/* #undef HAVE_NET_IF6_H */
-/* Define if OpenSSL includes ECDSA support */
+/* Define if your OpenSSL version supports ECDSA. */
#define HAVE_OPENSSL_ECDSA 1
/* Define if your OpenSSL version supports GOST. */
#define HAVE_OPENSSL_GOST 1
+/* Define to 1 if you have the `pthread_yield' function. */
+/* #undef HAVE_PTHREAD_YIELD */
+
+/* Define to 1 if you have the `pthread_yield_np' function. */
+/* #undef HAVE_PTHREAD_YIELD_NP */
+
/* Define to 1 if you have the `readline' function. */
-#define HAVE_READLINE 1
+/* #undef HAVE_READLINE */
/* Define to 1 if you have the <regex.h> header file. */
#define HAVE_REGEX_H 1
+/* Define to 1 if you have the <sched.h> header file. */
+#define HAVE_SCHED_H 1
+
+/* Define to 1 if you have the `sched_yield' function. */
+#define HAVE_SCHED_YIELD 1
+
/* Define to 1 if you have the `setegid' function. */
#define HAVE_SETEGID 1
@@ -386,6 +408,10 @@ int sigwait(const unsigned int *set, int
/* Define to allow building of objects for dlopen(). */
#define ISC_DLZ_DLOPEN 1
+/* Define to the sub-directory in which libtool stores uninstalled libraries.
+ */
+#define LT_OBJDIR ".libs/"
+
/* Defined if extern char *optarg is not declared. */
/* #undef NEED_OPTARG */
@@ -431,15 +457,16 @@ int sigwait(const unsigned int *set, int
non-blocking. */
/* #undef USE_FIONBIO_IOCTL */
+/* Enable DNS Response Rate Limiting */
+/* #undef USE_RRL */
+
/* define if idnkit support is to be included. */
/* #undef WITH_IDN */
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
-#include <sys/endian.h>
-#if _BYTE_ORDER == _BIG_ENDIAN
-#define WORDS_BIGENDIAN
-#endif
+#ifndef __NetBSD__
+/* Defined by the build process */
#if defined AC_APPLE_UNIVERSAL_BUILD
# if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
@@ -449,6 +476,12 @@ int sigwait(const unsigned int *set, int
/* # undef WORDS_BIGENDIAN */
# endif
#endif
+#else
+# include <sys/endian.h>
+# if _BYTE_ORDER == _BIG_ENDIAN
+# define WORDS_BIGENDIAN 1
+# endif
+#endif
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
Index: src/external/bsd/bind/include/isc/platform.h
diff -u src/external/bsd/bind/include/isc/platform.h:1.13 src/external/bsd/bind/include/isc/platform.h:1.14
--- src/external/bsd/bind/include/isc/platform.h:1.13 Mon Jun 4 20:43:12 2012
+++ src/external/bsd/bind/include/isc/platform.h Tue Dec 31 15:23:12 2013
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004-2010 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004-2010, 2013 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -334,6 +334,7 @@
#define LIBISCCC_EXTERNAL_DATA
#define LIBISCCFG_EXTERNAL_DATA
#define LIBBIND9_EXTERNAL_DATA
+#define LIBTESTS_EXTERNAL_DATA
#else /*! \brief ISC_PLATFORM_USEDECLSPEC */
#ifdef LIBISC_EXPORTS
#define LIBISC_EXTERNAL_DATA __declspec(dllexport)
@@ -360,6 +361,11 @@
#else
#define LIBBIND9_EXTERNAL_DATA __declspec(dllimport)
#endif
+#ifdef LIBTESTS_EXPORTS
+#define LIBTESTS_EXTERNAL_DATA __declspec(dllexport)
+#else
+#define LIBTESTS_EXTERNAL_DATA __declspec(dllimport)
+#endif
#endif /*! \brief ISC_PLATFORM_USEDECLSPEC */
/*
Index: src/external/bsd/bind/lib/libisc/Makefile
diff -u src/external/bsd/bind/lib/libisc/Makefile:1.4 src/external/bsd/bind/lib/libisc/Makefile:1.5
--- src/external/bsd/bind/lib/libisc/Makefile:1.4 Sat Jul 27 15:23:14 2013
+++ src/external/bsd/bind/lib/libisc/Makefile Tue Dec 31 15:23:12 2013
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2013/07/27 19:23:14 christos Exp $
+# $NetBSD: Makefile,v 1.5 2013/12/31 20:23:12 christos Exp $
LIB=isc
#USE_SHLIBDIR= yes
@@ -31,9 +31,10 @@ SRCS= assertions.c base32.c base64.c bi
mutexblock.c netaddr.c netscope.c ondestroy.c parseint.c \
pool.c portset.c quota.c radix.c random.c ratelimiter.c \
refcount.c regex.c \
- region.c result.c rwlock.c serial.c sha1.c sha2.c sockaddr.c \
- stats.c string.c strtoul.c symtab.c task.c taskpool.c timer.c \
- version.c ${UNIX_SRCS} ${NLS_SRCS} ${PTHREAD_SRCS} ${API_SRCS}
+ region.c result.c rwlock.c safe.c serial.c sha1.c sha2.c \
+ sockaddr.c stats.c string.c strtoul.c symtab.c task.c \
+ taskpool.c timer.c version.c \
+ ${UNIX_SRCS} ${NLS_SRCS} ${PTHREAD_SRCS} ${API_SRCS}
.if (${USE_INET6} == "no")
Index: src/external/bsd/bind/lib/libisc/shlib_version
diff -u src/external/bsd/bind/lib/libisc/shlib_version:1.12 src/external/bsd/bind/lib/libisc/shlib_version:1.13
--- src/external/bsd/bind/lib/libisc/shlib_version:1.12 Sat Jul 27 15:23:14 2013
+++ src/external/bsd/bind/lib/libisc/shlib_version Tue Dec 31 15:23:12 2013
@@ -1,5 +1,5 @@
-# $NetBSD: shlib_version,v 1.12 2013/07/27 19:23:14 christos Exp $
+# $NetBSD: shlib_version,v 1.13 2013/12/31 20:23:12 christos Exp $
# Remember to update distrib/sets/lists/base/shl.* when changing
#
major=7
-minor=0
+minor=1
Added files:
Index: src/external/bsd/bind/binclude4netbsd
diff -u /dev/null src/external/bsd/bind/binclude4netbsd:1.1
--- /dev/null Tue Dec 31 15:23:12 2013
+++ src/external/bsd/bind/binclude4netbsd Tue Dec 31 15:23:12 2013
@@ -0,0 +1,49 @@
+#!/bin/sh
+#
+# Use this script to update the bind include files used in the nameserver,
+# after you've imported and built the latest bind code. After you run this,
+# cvs import the resulting directory
+#
+# $ cd bind-X.Y.Z
+# $ configure
+# $ make
+# $ ./binclude4netbsd . /tmp/include
+# Fix manually the config.h file to disable things controlled by the Makefiles
+# $ cd /tmp/include
+# $ cvs -d cvs.netbsd.org:/cvsroot import src/external/bsd/bind/include -m "Include files for bind-X-Y-Z" ISC bind-X-Y-Z
+#
+
+PROG=$(basename $0)
+if [ \( -z "$1" \) -o \( -z "$2" \) ]
+then
+ echo "Usage: $PROG <bind-src> <include-dest>" 1>&2
+ exit 1
+fi
+
+BIND=$1
+INCLUDE=$2
+
+mkdir -p $INCLUDE
+cp $BIND/config.h $INCLUDE
+
+mkdir -p $INCLUDE/dns
+
+cp $BIND/lib/dns/code.h $INCLUDE/dns
+
+for i in enumclass.h enumtype.h rdatastruct.h
+do
+ cp $BIND/lib/dns/include/dns/$i $INCLUDE/dns
+done
+
+mkdir -p $INCLUDE/isc
+
+cp $BIND/lib/isc/include/isc/platform.h $INCLUDE/isc
+
+mkdir -p $INCLUDE/lwres
+
+for i in netdb.h platform.h
+do
+ cp $BIND/lib/lwres/include/lwres/$i $INCLUDE/lwres
+done
+
+cleantags $INCLUDE
Index: src/external/bsd/bind/bind2netbsd
diff -u /dev/null src/external/bsd/bind/bind2netbsd:1.1
--- /dev/null Tue Dec 31 15:23:12 2013
+++ src/external/bsd/bind/bind2netbsd Tue Dec 31 15:23:12 2013
@@ -0,0 +1,129 @@
+#! /bin/sh
+#
+# $NetBSD: bind2netbsd,v 1.1 2013/12/31 20:23:12 christos Exp $
+#
+# Copyright (c) 2000 The NetBSD Foundation, Inc.
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+#
+# bind2netbsd: convert a bind tree into a
+# netbsd bind source tree, under src/external/bsd/bind/dist,
+# based on bind2netbsd by Bernd Ernesti and changes by Simon Burge
+#
+# Rough instructions for importing new bind release:
+#
+# $ cd /some/where/temporary
+# $ tar xpfz /new/bind/release/tar/file
+# $ sh /usr/src/external/bsd/bind/dist/bind2netbsd bind-9.x.y `pwd`
+# $ cd src/external/bsd/bind/dist
+# $ cvs -d cvs.netbsd.org:/cvsroot import -m "Import bind 9.x.y" src/external/bsd/bind/dist ISC bind-9-x-y
+# $ cd ../../../../../bind-9.x.y
+# $ run ./configure
+# $ run make
+# - use the binclude4netbsd to create and import the new headers in
+# /usr/src/external/bsd/bind/include
+# - check makefiles to see if any extra sources have been added.
+# - update distrib/sets if necessary.
+#
+# Note that properly the import message should include a short summary
+# of changes since the previous import rather than just "Import bind 9.x.y".
+#
+
+if [ $# -ne 2 ]; then echo "bind2netbsd src dest"; exit 1; fi
+
+r=$1
+d=$2/src/external/bsd/bind/dist
+
+case "$d" in
+ /*)
+ ;;
+ *)
+ d=`/bin/pwd`/$d
+ ;;
+esac
+
+case "$r" in
+ /*)
+ ;;
+ *)
+ r=`/bin/pwd`/$r
+ ;;
+esac
+
+echo preparing directory $d
+rm -rf $d
+mkdir -p $d
+
+### Copy the files and directories
+echo copying $r to $d
+cd $r
+pax -rw * $d
+
+### Remove the $'s around RCS tags
+cleantags $d
+
+### Add our NetBSD RCS Id
+find $d -type f -name '*.[chly]' -print | while read c; do
+ sed 1q < $c | grep -q '\$NetBSD' || (
+echo "/* \$NetBSD\$ */" >/tmp/bind3n$$
+echo "" >>/tmp/bind3n$$
+cat $c >> /tmp/bind3n$$
+mv /tmp/bind3n$$ $c && echo added NetBSD RCS tag to $c
+ )
+done
+
+find $d -type f -name '*.[0-9]' -print | while read m; do
+ sed 1q < $m | grep -q '\$NetBSD' || (
+echo ".\\\" \$NetBSD\$" >/tmp/bind2m$$
+echo ".\\\"" >>/tmp/bind2m$$
+cat $m >> /tmp/bind2m$$
+mv /tmp/bind2m$$ $m && echo added NetBSD RCS tag to $m
+ )
+done
+
+find $d -type f -name '*.texi' -print | while read t; do
+ sed "2 s/^/@c \$NetBSD\$\\
+/" < $t > /tmp/bind4t$$
+ mv /tmp/bind4t$$ $t && echo added NetBSD RCS tag to $t
+done
+
+echo done
+
+### Clean up any CVS directories that might be around.
+echo "cleaning up CVS residue."
+(
+ cd $d
+ find . -type d -name "CVS" -print | xargs rm -r
+)
+echo done
+
+### Fixing file and directory permissions.
+echo "Fixing file/directory permissions."
+(
+ cd $d
+ find . -type f -print | xargs chmod u+rw,go+r
+ find . -type d -print | xargs chmod u+rwx,go+rx
+)
+echo done
+
+exit 0