Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/unbound Add bould glue



details:   https://anonhg.NetBSD.org/src/rev/ccae8d8d52d9
branches:  trunk
changeset: 817438:ccae8d8d52d9
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Aug 20 11:20:31 2016 +0000

description:
Add bould glue

diffstat:

 external/bsd/unbound/Makefile                            |     5 +
 external/bsd/unbound/Makefile.inc                        |    26 +
 external/bsd/unbound/TODO                                |     9 +
 external/bsd/unbound/bin/Makefile                        |     8 +
 external/bsd/unbound/bin/Makefile.inc                    |    18 +
 external/bsd/unbound/bin/unbound-host/Makefile           |     5 +
 external/bsd/unbound/etc/Makefile                        |    13 +
 external/bsd/unbound/etc/rc.d/Makefile                   |     6 +
 external/bsd/unbound/etc/rc.d/unbound                    |    75 +
 external/bsd/unbound/include/config.h                    |  1109 ++++++++++++++
 external/bsd/unbound/include/dnstap/dnstap_config.h      |    17 +
 external/bsd/unbound/lib/Makefile                        |     5 +
 external/bsd/unbound/lib/Makefile.inc                    |     1 +
 external/bsd/unbound/lib/libunbound/Makefile             |   103 +
 external/bsd/unbound/lib/libunbound/shlib_version        |     3 +
 external/bsd/unbound/sbin/Makefile                       |    12 +
 external/bsd/unbound/sbin/Makefile.inc                   |    31 +
 external/bsd/unbound/sbin/unbound-anchor/Makefile        |     7 +
 external/bsd/unbound/sbin/unbound-checkconf/Makefile     |     5 +
 external/bsd/unbound/sbin/unbound-control-setup/Makefile |     5 +
 external/bsd/unbound/sbin/unbound-control/Makefile       |     5 +
 external/bsd/unbound/sbin/unbound/Makefile               |     5 +
 22 files changed, 1473 insertions(+), 0 deletions(-)

diffs (truncated from 1561 to 300 lines):

diff -r 6f0876fc4337 -r ccae8d8d52d9 external/bsd/unbound/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/unbound/Makefile     Sat Aug 20 11:20:31 2016 +0000
@@ -0,0 +1,5 @@
+#      $NetBSD: Makefile,v 1.1 2016/08/20 11:20:31 christos Exp $
+
+SUBDIR+= lib .WAIT sbin bin
+
+.include <bsd.subdir.mk>
diff -r 6f0876fc4337 -r ccae8d8d52d9 external/bsd/unbound/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/unbound/Makefile.inc Sat Aug 20 11:20:31 2016 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile.inc,v 1.1 2016/08/20 11:20:31 christos Exp $
+
+USE_FORT?= yes  # network client/server
+UNBOUND:=${.PARSEDIR}/dist
+
+.PATH: ${UNBOUND}/doc
+
+CPPFLAGS += -D_OPENBSD_SOURCE
+
+DPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto
+DPLIBS+= ssl ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libssl
+DPLIBS+= crypt ${NETBSDSRCDIR}/lib/libcrypt
+DPLIBS+= util ${NETBSDSRCDIR}/lib/libutil
+DPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread
+
+__subst: .USE
+       ${TOOL_SED} \
+           -e s,@ub_conf_dir@,/etc/unbound, \
+           -e s,@ub_conf_file@,/etc/unbound/unbound.conf, \
+           -e s,@UNBOUND_CHROOT_DIR@,/var/chroot/unbound, \
+           -e s,@UNBOUND_PIDFILE@,/var/run/unbound.pid, \
+           -e s,@UNBOUND_ROOTCERT_FILE@,/etc/unbound/icannbundle.pem, \
+           -e s,@UNBOUND_ROOTKEY_FILE@,/etc/unbound/root.key, \
+           -e s,@UNBOUND_RUN_DIR@,/var/chroot/unbound/etc/unbound, \
+           -e s,@UNBOUND_SHARE_DIR@,/etc/unbound, \
+           -e s,@UNBOUND_USERNAME@,_unbound, < ${.ALLSRC} > ${.TARGET}
diff -r 6f0876fc4337 -r ccae8d8d52d9 external/bsd/unbound/TODO
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/unbound/TODO Sat Aug 20 11:20:31 2016 +0000
@@ -0,0 +1,9 @@
+- consider compiling with libevent
+- convert man pages to mdoc
+- make optional features:
+       - without crypto
+       - non-pthreads
+       - without ipv6
+- consider adding:
+       - generating keys by default
+       - enabling control by default
diff -r 6f0876fc4337 -r ccae8d8d52d9 external/bsd/unbound/bin/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/unbound/bin/Makefile Sat Aug 20 11:20:31 2016 +0000
@@ -0,0 +1,8 @@
+# $NetBSD: Makefile,v 1.1 2016/08/20 11:20:31 christos Exp $
+
+.include <bsd.own.mk>
+
+SUBDIR+=\
+unbound-host
+
+.include <bsd.subdir.mk>
diff -r 6f0876fc4337 -r ccae8d8d52d9 external/bsd/unbound/bin/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/unbound/bin/Makefile.inc     Sat Aug 20 11:20:31 2016 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile.inc,v 1.1 2016/08/20 11:20:31 christos Exp $
+
+.include "../Makefile.inc"
+
+BINDIR=/usr/bin
+
+CPPFLAGS+=-I${UNBOUND} -I${UNBOUND}/../include
+
+PROGDPLIBS+= unbound ${UNBOUND}/../lib/libunbound
+PROGDPLIBS+= ${DPLIBS}
+
+.if defined(PROG)
+.PATH: ${UNBOUND}/smallapp
+SRCS+=${PROG}.c worker_cb.c
+CLEANFILES+=${PROG}.1
+MAN+=${PROG}.1
+${PROG}.1: ${PROG}.1.in __subst
+.endif
diff -r 6f0876fc4337 -r ccae8d8d52d9 external/bsd/unbound/bin/unbound-host/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/unbound/bin/unbound-host/Makefile    Sat Aug 20 11:20:31 2016 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2016/08/20 11:20:31 christos Exp $
+
+PROG=unbound-host
+
+.include <bsd.prog.mk>
diff -r 6f0876fc4337 -r ccae8d8d52d9 external/bsd/unbound/etc/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/unbound/etc/Makefile Sat Aug 20 11:20:31 2016 +0000
@@ -0,0 +1,13 @@
+#      $NetBSD: Makefile,v 1.1 2016/08/20 11:20:31 christos Exp $
+
+SUBDIR=rc.d
+
+FILESDIR=               /etc/unbound
+FILESMODE=    644
+FILES= unbound.conf
+
+unbound.conf: example.conf.in __subst
+CLEANFILES+= unbound.conf
+
+.include <bsd.files.mk>
+.include <bsd.subdir.mk>
diff -r 6f0876fc4337 -r ccae8d8d52d9 external/bsd/unbound/etc/rc.d/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/unbound/etc/rc.d/Makefile    Sat Aug 20 11:20:31 2016 +0000
@@ -0,0 +1,6 @@
+#      $NetBSD: Makefile,v 1.1 2016/08/20 11:20:31 christos Exp $
+
+SCRIPTS=unbound
+SCRIPTSDIR=/etc/rc.d
+
+.include <bsd.prog.mk>
diff -r 6f0876fc4337 -r ccae8d8d52d9 external/bsd/unbound/etc/rc.d/unbound
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/unbound/etc/rc.d/unbound     Sat Aug 20 11:20:31 2016 +0000
@@ -0,0 +1,75 @@
+#!/bin/sh
+#
+# $NetBSD: unbound,v 1.1 2016/08/20 11:20:31 christos Exp $
+#
+
+# PROVIDE: named
+# REQUIRE: NETWORKING mountcritremote syslogd
+# BEFORE:  DAEMON
+# KEYWORD: chrootdir
+
+$_rc_subr_loaded . /etc/rc.subr
+
+name="unbound"
+rcvar=$name
+command="/usr/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+required_files="/etc/${name}/${name}.conf"
+start_precmd="unbound_precmd"
+
+unbound_migrate()
+{
+       local src="$1"
+       local dst="$2$1"
+       echo "Migrating $src to $dst"
+(
+       diff=false
+       cd "$src"
+       mkdir -p "$dst"
+       for f in $(find . -type f)
+       do
+               f="${f##./}"
+               case "$f" in
+               */*)
+                       ds="$(dirname "$f")"
+                       dd="$dst/$ds"
+                       mkdir -p "$dd"
+                       chmod "$(stat -f "%p" "$ds" |
+                           sed -e 's/.*\([0-7][0-7][0-7][0-7]\)$/\1/g')" "$dd"
+                       chown "$(stat -f %u:%g "$ds")" "$dd"
+                       ;;
+               *)
+                       ;;
+               esac
+               if [ -r "$dst/$f" ]
+               then
+                       if ! cmp "$f" "$dst/$f"; then
+                               diff=true
+                       fi
+               else
+                       cp -p "$f" "$dst/$f"
+               fi
+       done
+       if $diff; then
+               echo "Cannot complete migration because files are different"
+               echo "Run 'diff -r $src $dst' resolve the differences"
+       else
+               rm -fr "$src"
+               ln -s "$dst" "$src"
+       fi
+)
+}
+
+unbound_precmd()
+{
+       if [ -z "$unbound_chrootdir" ]; then
+               return
+       fi
+
+       if [ ! -h /etc/unbound ]; then
+               unbound_migrate /etc/unbound ${unbound_chrootdir}
+       fi
+}
+
+load_rc_config $name
+run_rc_command "$1"
diff -r 6f0876fc4337 -r ccae8d8d52d9 external/bsd/unbound/include/config.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/unbound/include/config.h     Sat Aug 20 11:20:31 2016 +0000
@@ -0,0 +1,1109 @@
+/* config.h.  Generated from config.h.in by configure.  */
+/* config.h.in.  Generated from configure.ac by autoheader.  */
+
+/* Directory to chroot to */
+#define CHROOT_DIR "/var/chroot/unbound"
+
+/* Do sha512 definitions in config.h */
+/* #undef COMPAT_SHA512 */
+
+/* Pathname to the Unbound configuration file */
+#define CONFIGFILE "/etc/unbound/unbound.conf"
+
+/* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work
+   */
+/* #undef DARWIN_BROKEN_SETREUID */
+
+/* Whether daemon is deprecated */
+/* #undef DEPRECATED_DAEMON */
+
+/* default dnstap socket path */
+/* #undef DNSTAP_SOCKET_PATH */
+
+/* Define if you want to use debug lock checking (slow). */
+/* #undef ENABLE_LOCK_CHECKS */
+
+/* Define this if you enabled-allsymbols from libunbound to link binaries to
+   it for smaller install size, but the libunbound export table is polluted by
+   internal symbols */
+/* #undef EXPORT_ALL_SYMBOLS */
+
+/* Define to 1 if you have the `arc4random' function. */
+#define HAVE_ARC4RANDOM 1
+
+/* Define to 1 if you have the `arc4random_uniform' function. */
+#define HAVE_ARC4RANDOM_UNIFORM 1
+
+/* Define to 1 if you have the <arpa/inet.h> header file. */
+#define HAVE_ARPA_INET_H 1
+
+/* Whether the C compiler accepts the "format" attribute */
+#define HAVE_ATTR_FORMAT 1
+
+/* Whether the C compiler accepts the "unused" attribute */
+#define HAVE_ATTR_UNUSED 1
+
+/* Whether the C compiler accepts the "weak" attribute */
+#define HAVE_ATTR_WEAK 1
+
+/* Define to 1 if you have the `chown' function. */
+#define HAVE_CHOWN 1
+
+/* Define to 1 if you have the `chroot' function. */
+#define HAVE_CHROOT 1
+
+/* Define to 1 if you have the `ctime_r' function. */
+#define HAVE_CTIME_R 1
+
+/* Define to 1 if you have the `daemon' function. */
+#define HAVE_DAEMON 1
+
+/* Define to 1 if you have the declaration of `arc4random', and to 0 if you
+   don't. */
+/* #undef HAVE_DECL_ARC4RANDOM */
+
+/* Define to 1 if you have the declaration of `arc4random_uniform', and to 0
+   if you don't. */
+/* #undef HAVE_DECL_ARC4RANDOM_UNIFORM */
+
+/* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
+   don't. */
+#define HAVE_DECL_NID_SECP384R1 1
+
+/* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
+   if you don't. */
+#define HAVE_DECL_NID_X9_62_PRIME256V1 1
+
+/* Define to 1 if you have the declaration of `reallocarray', and to 0 if you
+   don't. */
+/* #undef HAVE_DECL_REALLOCARRAY */
+
+/* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0
+   if you don't. */
+#define HAVE_DECL_SK_SSL_COMP_POP_FREE 1
+
+/* Define to 1 if you have the declaration of
+   `SSL_COMP_get_compression_methods', and to 0 if you don't. */
+#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS 1
+
+/* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to
+   0 if you don't. */
+#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO 0
+
+/* Define to 1 if you have the declaration of `strlcat', and to 0 if you
+   don't. */
+#define HAVE_DECL_STRLCAT 1



Home | Main Index | Thread Index | Old Index