changes for 9.9.5b1

This commit is contained in:
christos 2013-12-31 20:23:12 +00:00
parent f9a251e72a
commit c1c9a8d904
7 changed files with 236 additions and 17 deletions

View File

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

49
external/bsd/bind/binclude4netbsd vendored Executable file
View File

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

129
external/bsd/bind/bind2netbsd vendored Executable file
View File

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

View File

@ -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 *sig);
/* 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 *sig);
/* 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 *sig);
/* #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 *sig);
/* 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 *sig);
/* 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 *sig);
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 *sig);
/* # 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 */

View File

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

View File

@ -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 bitstring.c buffer.c \
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")

View File

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