summaryrefslogtreecommitdiff
path: root/net/bind910
diff options
context:
space:
mode:
authorjnemeth <jnemeth@pkgsrc.org>2014-07-02 02:42:57 +0000
committerjnemeth <jnemeth@pkgsrc.org>2014-07-02 02:42:57 +0000
commit1404e2a1a555e0701c40d4683002d05f7e173504 (patch)
tree3d6e261dc5cffb2dbc0fe11443699c7d5faa9734 /net/bind910
parent449746d0f376d3d229f595958062b6baffa38d65 (diff)
downloadpkgsrc-1404e2a1a555e0701c40d4683002d05f7e173504.tar.gz
Initial import of BIND 9.10.
Diffstat (limited to 'net/bind910')
-rw-r--r--net/bind910/DESCR15
-rw-r--r--net/bind910/MESSAGE10
-rw-r--r--net/bind910/Makefile80
-rw-r--r--net/bind910/PLIST439
-rw-r--r--net/bind910/buildlink3.mk12
-rw-r--r--net/bind910/builtin.mk92
-rw-r--r--net/bind910/distinfo19
-rw-r--r--net/bind910/files/lwresd.sh25
-rw-r--r--net/bind910/files/named9.sh74
-rw-r--r--net/bind910/files/smf/manifest.xml141
-rw-r--r--net/bind910/files/smf/named.sh117
-rw-r--r--net/bind910/options.mk107
-rw-r--r--net/bind910/patches/patch-bin_dig_dighost.c128
-rw-r--r--net/bind910/patches/patch-bin_tests_system_Makefile.in15
-rw-r--r--net/bind910/patches/patch-config.threads.in15
-rw-r--r--net/bind910/patches/patch-configure35
-rw-r--r--net/bind910/patches/patch-contrib_dlz_config.dlz.in15
-rw-r--r--net/bind910/patches/patch-lib_bind9_Makefile.in15
-rw-r--r--net/bind910/patches/patch-lib_dns_Makefile.in15
-rw-r--r--net/bind910/patches/patch-lib_dns_rbt.c17
-rw-r--r--net/bind910/patches/patch-lib_isc_Makefile.in15
-rw-r--r--net/bind910/patches/patch-lib_isccc_Makefile.in15
-rw-r--r--net/bind910/patches/patch-lib_isccfg_Makefile.in15
-rw-r--r--net/bind910/patches/patch-lib_lwres_Makefile.in15
-rw-r--r--net/bind910/patches/patch-lib_lwres_getaddrinfo.c41
-rw-r--r--net/bind910/patches/patch-lib_lwres_getnameinfo.c34
26 files changed, 1521 insertions, 0 deletions
diff --git a/net/bind910/DESCR b/net/bind910/DESCR
new file mode 100644
index 00000000000..5cc99b19b7a
--- /dev/null
+++ b/net/bind910/DESCR
@@ -0,0 +1,15 @@
+BIND, the Berkeley Internet Name Daemon, version 9 is a major rewrite
+of nearly all aspects of the underlying BIND architecture. Some
+of the important features of BIND-9 are:
+
+ - DNS Security
+ - IP version 6
+ - DNS Protocol Enhancements
+ - Views
+ - Multiprocessor Support
+ - Improved Portability Architecture
+ - Full NSEC3 support
+ - Automatic zone re-signing
+ - New update-policy methods tcp-self and 6to4-self
+
+This package contains the BIND 9.10 release.
diff --git a/net/bind910/MESSAGE b/net/bind910/MESSAGE
new file mode 100644
index 00000000000..c4f9973e690
--- /dev/null
+++ b/net/bind910/MESSAGE
@@ -0,0 +1,10 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2014/07/02 02:42:57 jnemeth Exp $
+
+Please consider running BIND under the pseudo user account "${BIND_USER}"
+in a chroot environment for security reasons.
+
+To achieve this, set the variable "named_chrootdir" in /etc/rc.conf to
+the directory with the chroot environment e.g. "${BIND_DIR}".
+
+===========================================================================
diff --git a/net/bind910/Makefile b/net/bind910/Makefile
new file mode 100644
index 00000000000..5f68fd08aad
--- /dev/null
+++ b/net/bind910/Makefile
@@ -0,0 +1,80 @@
+# $NetBSD: Makefile,v 1.1.1.1 2014/07/02 02:42:57 jnemeth Exp $
+
+DISTNAME= bind-${BIND_VERSION}
+PKGNAME= ${DISTNAME:S/-P/pl/}
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.isc.org/isc/bind9/${BIND_VERSION}/ \
+ http://ftp.belnet.be/pub/mirror/ftp.isc.org/isc/bind9/${BIND_VERSION}/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.isc.org/software/bind/
+COMMENT= Berkeley Internet Name Daemon implementation of DNS, version 9.10
+
+CONFLICTS+= host-[0-9]*
+
+MAKE_JOBS_SAFE= no
+
+BIND_VERSION= 9.10.0-P2
+
+.include "../../mk/bsd.prefs.mk"
+
+BUILD_DEFS+= BIND_DIR VARBASE
+
+.include "options.mk"
+
+USE_TOOLS+= pax perl
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+#CONFIG_SHELL= sh -x
+
+CONFIGURE_ARGS+= --with-libtool
+CONFIGURE_ARGS+= --sysconfdir=/etc
+CONFIGURE_ARGS+= --localstatedir=${VARBASE}
+CONFIGURE_ARGS+= --disable-openssl-version-check
+CONFIGURE_ARGS+= --with-openssl=${SSLBASE:Q}
+CONFIGURE_ARGS+= --with-python=no
+.if ${MACHINE_PLATFORM:MNetBSD-*-mipsel} != ""
+CONFIGURE_ARGS+= --disable-atomic
+.endif
+.if ${MACHINE_PLATFORM:MNetBSD-*-powerpc} != ""
+CONFIGURE_ARGS+= --disable-threads
+.endif
+.if ${OPSYS} == "DragonFly"
+CONFIGURE_ARGS+= --disable-kqueue
+.endif
+
+PKG_GROUPS_VARS+= BIND_GROUP
+PKG_USERS_VARS= BIND_USER
+
+PKG_GROUPS= ${BIND_GROUP}
+PKG_USERS= ${BIND_USER}:${BIND_GROUP}
+
+PKG_GECOS.${BIND_USER}= Named pseudo-user
+PKG_HOME.${BIND_USER}= ${BIND_DIR}
+
+DOCS= CHANGES FAQ README
+
+FILES_SUBST+= BIND_GROUP=${BIND_GROUP} \
+ BIND_USER=${BIND_USER} PAX=${PAX:Q}
+MESSAGE_SUBST+= BIND_DIR=${BIND_DIR} BIND_USER=${BIND_USER}
+DOCDIR= ${DESTDIR}${PREFIX}/share/doc/bind9
+
+# include/isc/ipv6.h is installed on non-ipv6 platforms
+PLIST_VARS+= inet6
+.if !empty(MISSING_FEATURES:Minet6)
+PLIST.inet6= yes
+.endif
+
+RCD_SCRIPTS= lwresd named9
+SMF_METHODS= named
+
+INSTALLATION_DIRS+= ${DOCDIR} share/doc/bind9/arm
+
+post-install:
+.for f in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCDIR}
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/doc/arm/*.html ${DOCDIR}/arm
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/bind910/PLIST b/net/bind910/PLIST
new file mode 100644
index 00000000000..f9652e89b18
--- /dev/null
+++ b/net/bind910/PLIST
@@ -0,0 +1,439 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+bin/bind9-config
+bin/delv
+bin/dig
+bin/host
+bin/isc-config.sh
+bin/nslookup
+bin/nsupdate
+${PLIST.inet6}include/isc/ipv6.h
+include/bind9/check.h
+include/bind9/getaddresses.h
+include/bind9/version.h
+include/dns/acache.h
+include/dns/acl.h
+include/dns/adb.h
+include/dns/bit.h
+include/dns/byaddr.h
+include/dns/cache.h
+include/dns/callbacks.h
+include/dns/cert.h
+include/dns/client.h
+include/dns/clientinfo.h
+include/dns/compress.h
+include/dns/db.h
+include/dns/dbiterator.h
+include/dns/dbtable.h
+include/dns/diff.h
+include/dns/dispatch.h
+include/dns/dlz.h
+include/dns/dlz_dlopen.h
+include/dns/dns64.h
+include/dns/dnssec.h
+include/dns/ds.h
+include/dns/dsdigest.h
+include/dns/ecdb.h
+include/dns/enumclass.h
+include/dns/enumtype.h
+include/dns/events.h
+include/dns/fixedname.h
+include/dns/forward.h
+include/dns/geoip.h
+include/dns/iptable.h
+include/dns/journal.h
+include/dns/keydata.h
+include/dns/keyflags.h
+include/dns/keytable.h
+include/dns/keyvalues.h
+include/dns/lib.h
+include/dns/log.h
+include/dns/lookup.h
+include/dns/master.h
+include/dns/masterdump.h
+include/dns/message.h
+include/dns/name.h
+include/dns/ncache.h
+include/dns/nsec.h
+include/dns/nsec3.h
+include/dns/opcode.h
+include/dns/order.h
+include/dns/peer.h
+include/dns/portlist.h
+include/dns/private.h
+include/dns/rbt.h
+include/dns/rcode.h
+include/dns/rdata.h
+include/dns/rdataclass.h
+include/dns/rdatalist.h
+include/dns/rdataset.h
+include/dns/rdatasetiter.h
+include/dns/rdataslab.h
+include/dns/rdatastruct.h
+include/dns/rdatatype.h
+include/dns/request.h
+include/dns/resolver.h
+include/dns/result.h
+include/dns/rootns.h
+include/dns/rpz.h
+include/dns/rriterator.h
+include/dns/rrl.h
+include/dns/sdb.h
+include/dns/sdlz.h
+include/dns/secalg.h
+include/dns/secproto.h
+include/dns/soa.h
+include/dns/ssu.h
+include/dns/stats.h
+include/dns/tcpmsg.h
+include/dns/time.h
+include/dns/timer.h
+include/dns/tkey.h
+include/dns/tsec.h
+include/dns/tsig.h
+include/dns/ttl.h
+include/dns/types.h
+include/dns/update.h
+include/dns/validator.h
+include/dns/version.h
+include/dns/view.h
+include/dns/xfrin.h
+include/dns/zone.h
+include/dns/zonekey.h
+include/dns/zt.h
+include/dst/dst.h
+include/dst/gssapi.h
+include/dst/lib.h
+include/dst/result.h
+include/irs/context.h
+include/irs/dnsconf.h
+include/irs/netdb.h
+include/irs/platform.h
+include/irs/resconf.h
+include/irs/types.h
+include/irs/version.h
+include/isc/aes.h
+include/isc/app.h
+include/isc/assertions.h
+include/isc/atomic.h
+include/isc/backtrace.h
+include/isc/base32.h
+include/isc/base64.h
+include/isc/bind9.h
+include/isc/boolean.h
+include/isc/buffer.h
+include/isc/bufferlist.h
+include/isc/commandline.h
+include/isc/condition.h
+include/isc/crc64.h
+include/isc/dir.h
+include/isc/entropy.h
+include/isc/error.h
+include/isc/event.h
+include/isc/eventclass.h
+include/isc/file.h
+include/isc/formatcheck.h
+include/isc/fsaccess.h
+include/isc/hash.h
+include/isc/heap.h
+include/isc/hex.h
+include/isc/hmacmd5.h
+include/isc/hmacsha.h
+include/isc/httpd.h
+include/isc/int.h
+include/isc/interfaceiter.h
+include/isc/iterated_hash.h
+include/isc/json.h
+include/isc/keyboard.h
+include/isc/lang.h
+include/isc/lex.h
+include/isc/lfsr.h
+include/isc/lib.h
+include/isc/list.h
+include/isc/log.h
+include/isc/magic.h
+include/isc/md5.h
+include/isc/mem.h
+include/isc/msgcat.h
+include/isc/msgs.h
+include/isc/mutex.h
+include/isc/mutexblock.h
+include/isc/net.h
+include/isc/netaddr.h
+include/isc/netdb.h
+include/isc/netscope.h
+include/isc/offset.h
+include/isc/once.h
+include/isc/ondestroy.h
+include/isc/os.h
+include/isc/parseint.h
+include/isc/platform.h
+include/isc/pool.h
+include/isc/portset.h
+include/isc/print.h
+include/isc/queue.h
+include/isc/quota.h
+include/isc/radix.h
+include/isc/random.h
+include/isc/ratelimiter.h
+include/isc/refcount.h
+include/isc/regex.h
+include/isc/region.h
+include/isc/resource.h
+include/isc/result.h
+include/isc/resultclass.h
+include/isc/rwlock.h
+include/isc/safe.h
+include/isc/serial.h
+include/isc/sha1.h
+include/isc/sha2.h
+include/isc/sockaddr.h
+include/isc/socket.h
+include/isc/stat.h
+include/isc/stats.h
+include/isc/stdio.h
+include/isc/stdlib.h
+include/isc/stdtime.h
+include/isc/strerror.h
+include/isc/string.h
+include/isc/symtab.h
+include/isc/syslog.h
+include/isc/task.h
+include/isc/taskpool.h
+include/isc/thread.h
+include/isc/time.h
+include/isc/timer.h
+include/isc/tm.h
+include/isc/types.h
+include/isc/util.h
+include/isc/version.h
+include/isc/xml.h
+include/isccc/alist.h
+include/isccc/base64.h
+include/isccc/cc.h
+include/isccc/ccmsg.h
+include/isccc/events.h
+include/isccc/lib.h
+include/isccc/result.h
+include/isccc/sexpr.h
+include/isccc/symtab.h
+include/isccc/symtype.h
+include/isccc/types.h
+include/isccc/util.h
+include/isccc/version.h
+include/isccfg/aclconf.h
+include/isccfg/cfg.h
+include/isccfg/dnsconf.h
+include/isccfg/grammar.h
+include/isccfg/log.h
+include/isccfg/namedconf.h
+include/isccfg/version.h
+include/lwres/context.h
+include/lwres/int.h
+include/lwres/ipv6.h
+include/lwres/lang.h
+include/lwres/list.h
+include/lwres/lwbuffer.h
+include/lwres/lwpacket.h
+include/lwres/lwres.h
+include/lwres/net.h
+include/lwres/netdb.h
+include/lwres/platform.h
+include/lwres/result.h
+include/lwres/stdlib.h
+include/lwres/version.h
+include/pk11/constants.h
+include/pk11/internal.h
+include/pk11/pk11.h
+include/pk11/result.h
+include/pkcs11/cryptoki.h
+include/pkcs11/pkcs11.h
+include/pkcs11/pkcs11f.h
+include/pkcs11/pkcs11t.h
+lib/libbind9.la
+lib/libdns.la
+lib/libirs.la
+lib/libisc.la
+lib/libisccc.la
+lib/libisccfg.la
+lib/liblwres.la
+man/man1/arpaname.1
+man/man1/bind9-config.1
+man/man1/delv.1
+man/man1/dig.1
+man/man1/host.1
+man/man1/isc-config.sh.1
+man/man1/named-rrchecker.1
+man/man1/nslookup.1
+man/man1/nsupdate.1
+man/man3/lwres.3
+man/man3/lwres_addr_parse.3
+man/man3/lwres_buffer.3
+man/man3/lwres_buffer_add.3
+man/man3/lwres_buffer_back.3
+man/man3/lwres_buffer_clear.3
+man/man3/lwres_buffer_first.3
+man/man3/lwres_buffer_forward.3
+man/man3/lwres_buffer_getmem.3
+man/man3/lwres_buffer_getuint16.3
+man/man3/lwres_buffer_getuint32.3
+man/man3/lwres_buffer_getuint8.3
+man/man3/lwres_buffer_init.3
+man/man3/lwres_buffer_invalidate.3
+man/man3/lwres_buffer_putmem.3
+man/man3/lwres_buffer_putuint16.3
+man/man3/lwres_buffer_putuint32.3
+man/man3/lwres_buffer_putuint8.3
+man/man3/lwres_buffer_subtract.3
+man/man3/lwres_conf_clear.3
+man/man3/lwres_conf_get.3
+man/man3/lwres_conf_init.3
+man/man3/lwres_conf_parse.3
+man/man3/lwres_conf_print.3
+man/man3/lwres_config.3
+man/man3/lwres_context.3
+man/man3/lwres_context_allocmem.3
+man/man3/lwres_context_create.3
+man/man3/lwres_context_destroy.3
+man/man3/lwres_context_freemem.3
+man/man3/lwres_context_initserial.3
+man/man3/lwres_context_nextserial.3
+man/man3/lwres_context_sendrecv.3
+man/man3/lwres_endhostent.3
+man/man3/lwres_endhostent_r.3
+man/man3/lwres_freeaddrinfo.3
+man/man3/lwres_freehostent.3
+man/man3/lwres_gabn.3
+man/man3/lwres_gabnrequest_free.3
+man/man3/lwres_gabnrequest_parse.3
+man/man3/lwres_gabnrequest_render.3
+man/man3/lwres_gabnresponse_free.3
+man/man3/lwres_gabnresponse_parse.3
+man/man3/lwres_gabnresponse_render.3
+man/man3/lwres_gai_strerror.3
+man/man3/lwres_getaddrinfo.3
+man/man3/lwres_getaddrsbyname.3
+man/man3/lwres_gethostbyaddr.3
+man/man3/lwres_gethostbyaddr_r.3
+man/man3/lwres_gethostbyname.3
+man/man3/lwres_gethostbyname2.3
+man/man3/lwres_gethostbyname_r.3
+man/man3/lwres_gethostent.3
+man/man3/lwres_gethostent_r.3
+man/man3/lwres_getipnode.3
+man/man3/lwres_getipnodebyaddr.3
+man/man3/lwres_getipnodebyname.3
+man/man3/lwres_getnamebyaddr.3
+man/man3/lwres_getnameinfo.3
+man/man3/lwres_getrrsetbyname.3
+man/man3/lwres_gnba.3
+man/man3/lwres_gnbarequest_free.3
+man/man3/lwres_gnbarequest_parse.3
+man/man3/lwres_gnbarequest_render.3
+man/man3/lwres_gnbaresponse_free.3
+man/man3/lwres_gnbaresponse_parse.3
+man/man3/lwres_gnbaresponse_render.3
+man/man3/lwres_herror.3
+man/man3/lwres_hstrerror.3
+man/man3/lwres_inetntop.3
+man/man3/lwres_lwpacket_parseheader.3
+man/man3/lwres_lwpacket_renderheader.3
+man/man3/lwres_net_ntop.3
+man/man3/lwres_noop.3
+man/man3/lwres_nooprequest_free.3
+man/man3/lwres_nooprequest_parse.3
+man/man3/lwres_nooprequest_render.3
+man/man3/lwres_noopresponse_free.3
+man/man3/lwres_noopresponse_parse.3
+man/man3/lwres_noopresponse_render.3
+man/man3/lwres_packet.3
+man/man3/lwres_resutil.3
+man/man3/lwres_sethostent.3
+man/man3/lwres_sethostent_r.3
+man/man3/lwres_string_parse.3
+man/man5/named.conf.5
+man/man5/rndc.conf.5
+man/man8/ddns-confgen.8
+man/man8/dnssec-dsfromkey.8
+man/man8/dnssec-importkey.8
+man/man8/dnssec-keyfromlabel.8
+man/man8/dnssec-keygen.8
+man/man8/dnssec-revoke.8
+man/man8/dnssec-settime.8
+man/man8/dnssec-signzone.8
+man/man8/dnssec-verify.8
+man/man8/genrandom.8
+man/man8/isc-hmac-fixup.8
+man/man8/lwresd.8
+man/man8/named-checkconf.8
+man/man8/named-checkzone.8
+man/man8/named-compilezone.8
+man/man8/named-journalprint.8
+man/man8/named.8
+man/man8/nsec3hash.8
+man/man8/rndc-confgen.8
+man/man8/rndc.8
+man/man8/tsig-keygen.8
+sbin/arpaname
+sbin/ddns-confgen
+sbin/dnssec-dsfromkey
+sbin/dnssec-importkey
+sbin/dnssec-keyfromlabel
+sbin/dnssec-keygen
+sbin/dnssec-revoke
+sbin/dnssec-settime
+sbin/dnssec-signzone
+sbin/dnssec-verify
+sbin/genrandom
+sbin/isc-hmac-fixup
+sbin/lwresd
+sbin/named
+sbin/named-checkconf
+sbin/named-checkzone
+sbin/named-compilezone
+sbin/named-journalprint
+sbin/named-rrchecker
+sbin/nsec3hash
+sbin/rndc
+sbin/rndc-confgen
+sbin/tsig-keygen
+share/doc/bind9/CHANGES
+share/doc/bind9/FAQ
+share/doc/bind9/README
+share/doc/bind9/arm/Bv9ARM.ch01.html
+share/doc/bind9/arm/Bv9ARM.ch02.html
+share/doc/bind9/arm/Bv9ARM.ch03.html
+share/doc/bind9/arm/Bv9ARM.ch04.html
+share/doc/bind9/arm/Bv9ARM.ch05.html
+share/doc/bind9/arm/Bv9ARM.ch06.html
+share/doc/bind9/arm/Bv9ARM.ch07.html
+share/doc/bind9/arm/Bv9ARM.ch08.html
+share/doc/bind9/arm/Bv9ARM.ch09.html
+share/doc/bind9/arm/Bv9ARM.ch10.html
+share/doc/bind9/arm/Bv9ARM.html
+share/doc/bind9/arm/man.arpaname.html
+share/doc/bind9/arm/man.ddns-confgen.html
+share/doc/bind9/arm/man.delv.html
+share/doc/bind9/arm/man.dig.html
+share/doc/bind9/arm/man.dnssec-checkds.html
+share/doc/bind9/arm/man.dnssec-coverage.html
+share/doc/bind9/arm/man.dnssec-dsfromkey.html
+share/doc/bind9/arm/man.dnssec-importkey.html
+share/doc/bind9/arm/man.dnssec-keyfromlabel.html
+share/doc/bind9/arm/man.dnssec-keygen.html
+share/doc/bind9/arm/man.dnssec-revoke.html
+share/doc/bind9/arm/man.dnssec-settime.html
+share/doc/bind9/arm/man.dnssec-signzone.html
+share/doc/bind9/arm/man.dnssec-verify.html
+share/doc/bind9/arm/man.genrandom.html
+share/doc/bind9/arm/man.host.html
+share/doc/bind9/arm/man.isc-hmac-fixup.html
+share/doc/bind9/arm/man.named-checkconf.html
+share/doc/bind9/arm/man.named-checkzone.html
+share/doc/bind9/arm/man.named-journalprint.html
+share/doc/bind9/arm/man.named-rrchecker.html
+share/doc/bind9/arm/man.named.html
+share/doc/bind9/arm/man.nsec3hash.html
+share/doc/bind9/arm/man.nsupdate.html
+share/doc/bind9/arm/man.rndc-confgen.html
+share/doc/bind9/arm/man.rndc.conf.html
+share/doc/bind9/arm/man.rndc.html
diff --git a/net/bind910/buildlink3.mk b/net/bind910/buildlink3.mk
new file mode 100644
index 00000000000..7afff8facd2
--- /dev/null
+++ b/net/bind910/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+BUILDLINK_TREE+= bind
+
+.if !defined(BIND_BUILDLINK3_MK)
+BIND_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.bind+= bind>=9.10.0
+BUILDLINK_PKGSRCDIR.bind?= ../../net/bind910
+.endif # BIND_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -bind
diff --git a/net/bind910/builtin.mk b/net/bind910/builtin.mk
new file mode 100644
index 00000000000..d778703f715
--- /dev/null
+++ b/net/bind910/builtin.mk
@@ -0,0 +1,92 @@
+# $NetBSD: builtin.mk,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+BUILTIN_PKG:= bind
+
+BUILTIN_FIND_FILES_VAR:= EXE_NAMED
+BUILTIN_FIND_FILES.EXE_NAMED= /usr/sbin/named
+BUILTIN_FIND_LIBS:= bind
+
+.include "../../mk/buildlink3/bsd.builtin.mk"
+
+###
+### Figure out the version of BIND if an ISC BIND named exists on the
+### system.
+###
+.if !defined(BUILTIN_VERSION.bind) && \
+ empty(EXE_NAMED:M__nonexistent__) && \
+ empty(EXE_NAMED:M${LOCALBASE}/*)
+BUILTIN_VERSION.bind!= \
+ ${EXE_NAMED} -v 2>/dev/null | ${HEAD} -1 | \
+ ${AWK} 'BEGIN { v = "4.9.11"; } \
+ /^BIND / { v = $$2; sub("-.*", "", v); } \
+ /^named / { v = $$2; sub("-.*", "", v); } \
+ END { print v; }'
+.endif
+MAKEVARS+= BUILTIN_VERSION.bind
+
+###
+### Determine if there is a built-in implementation of the package and
+### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
+###
+.if !defined(IS_BUILTIN.bind)
+IS_BUILTIN.bind= no
+. if defined(BUILTIN_VERSION.bind)
+IS_BUILTIN.bind= yes
+. endif
+.endif
+MAKEVARS+= IS_BUILTIN.bind
+
+###
+### If there is a built-in implementation, then set BUILTIN_PKG.<pkg> to
+### a package name to represent the built-in package.
+###
+.if !defined(BUILTIN_PKG.bind) && \
+ !empty(IS_BUILTIN.bind:M[yY][eE][sS]) && \
+ defined(BUILTIN_VERSION.bind)
+BUILTIN_PKG.bind= bind-${BUILTIN_VERSION.bind}
+.endif
+MAKEVARS+= BUILTIN_PKG.bind
+
+###
+### Determine whether we should use the built-in implementation if it
+### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
+###
+.if !defined(USE_BUILTIN.bind)
+. if ${PREFER.bind} == "pkgsrc"
+USE_BUILTIN.bind= no
+. else
+USE_BUILTIN.bind= ${IS_BUILTIN.bind}
+. if defined(BUILTIN_PKG.bind) && \
+ !empty(IS_BUILTIN.bind:M[yY][eE][sS])
+USE_BUILTIN.bind= yes
+. for dep in ${BUILDLINK_API_DEPENDS.bind}
+. if !empty(USE_BUILTIN.bind:M[yY][eE][sS])
+USE_BUILTIN.bind!= \
+ if ${PKG_ADMIN} pmatch ${dep:Q} ${BUILTIN_PKG.bind:Q}; then \
+ ${ECHO} yes; \
+ else \
+ ${ECHO} no; \
+ fi
+. endif
+. endfor
+. endif
+. endif # PREFER.bind
+.endif
+MAKEVARS+= USE_BUILTIN.bind
+
+###
+### The section below only applies if we are not including this file
+### solely to determine whether a built-in implementation exists.
+###
+CHECK_BUILTIN.bind?= no
+.if !empty(CHECK_BUILTIN.bind:M[nN][oO])
+
+. if !empty(USE_BUILTIN.bind:M[yY][eE][sS])
+. if !empty(BUILTIN_LIB_FOUND.bind:M[yY][eE][sS])
+BUILDLINK_LDADD.bind?= -lbind
+. endif
+. elif !empty(USE_BUILTIN.bind:M[nN][oO])
+BUILDLINK_LDADD.bind?= -lbind
+. endif
+
+.endif # CHECK_BUILTIN.bind
diff --git a/net/bind910/distinfo b/net/bind910/distinfo
new file mode 100644
index 00000000000..0dff8f83eab
--- /dev/null
+++ b/net/bind910/distinfo
@@ -0,0 +1,19 @@
+$NetBSD: distinfo,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+SHA1 (bind-9.10.0-P2.tar.gz) = c57b5825e36933119e9fd6f43e3f52262e7ff4ed
+RMD160 (bind-9.10.0-P2.tar.gz) = e1292a28f6b2cd03ba498a0412fd7b0911f172bd
+Size (bind-9.10.0-P2.tar.gz) = 8335644 bytes
+SHA1 (patch-bin_dig_dighost.c) = 72cb7676cdf9cd4b44bc62c72bcf29127d9fbffe
+SHA1 (patch-bin_tests_system_Makefile.in) = e3a41cbc3b603a4318f3909488a6fb3b0d1a4b12
+SHA1 (patch-config.threads.in) = 227b83efe9cb3e301aaac9b97cf42f1fb8ad06b2
+SHA1 (patch-configure) = c94a5c1c9dd55ff245c1adbb7c4ddb4a8e16a171
+SHA1 (patch-contrib_dlz_config.dlz.in) = f18bec63fbfce7cb2cd72929058ce3770fce458f
+SHA1 (patch-lib_bind9_Makefile.in) = 4d6c592646015c37a8c47dda8056fa01c9636dcd
+SHA1 (patch-lib_dns_Makefile.in) = eab413fb2708b275ea944c6309bd3448e9ddec26
+SHA1 (patch-lib_dns_rbt.c) = baa1745799d7fd0951717fa1581e893f1653dfc5
+SHA1 (patch-lib_isc_Makefile.in) = bd1d80457fb97d496306b84d4205296fd2577824
+SHA1 (patch-lib_isccc_Makefile.in) = a31831872b7724cb84f663ed70a82335d812f95f
+SHA1 (patch-lib_isccfg_Makefile.in) = 0de690dd4f46c42e4152f1d64d8edaecb69c6844
+SHA1 (patch-lib_lwres_Makefile.in) = 40fd0ed1d699cb2f6258f33888a9495899373767
+SHA1 (patch-lib_lwres_getaddrinfo.c) = ccc00e446867785e401eb92e63e05505dfd01087
+SHA1 (patch-lib_lwres_getnameinfo.c) = 418ad349cf52925c9e8051b5c71d9d51ea8d2fb1
diff --git a/net/bind910/files/lwresd.sh b/net/bind910/files/lwresd.sh
new file mode 100644
index 00000000000..1f5b2f56b99
--- /dev/null
+++ b/net/bind910/files/lwresd.sh
@@ -0,0 +1,25 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: lwresd.sh,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+#
+# PROVIDE: lwresd
+# REQUIRE: SERVERS
+
+. /etc/rc.subr
+
+name="lwresd"
+rcvar=${name}
+command="@PREFIX@/sbin/${name}"
+pidfile="@VARBASE@/run/lwresd/${name}.pid"
+extra_commands="reload"
+start_precmd="lwresd_precmd"
+
+lwresd_precmd()
+{
+ if [ ! -d @VARBASE@/run/lwresd ]; then
+ @MKDIR@ @VARBASE@/run/lwresd
+ fi
+}
+
+load_rc_config ${name} # check /etc/rc.conf.d/named9
+run_rc_command "$1"
diff --git a/net/bind910/files/named9.sh b/net/bind910/files/named9.sh
new file mode 100644
index 00000000000..a353f2e1437
--- /dev/null
+++ b/net/bind910/files/named9.sh
@@ -0,0 +1,74 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: named9.sh,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+#
+
+# PROVIDE: named
+# REQUIRE: NETWORKING mountcritremote syslogd
+# BEFORE: DAEMON
+# KEYWORD: chrootdir
+
+. /etc/rc.subr
+
+name="named"
+rcvar="${name}9"
+command="@PREFIX@/sbin/${name}"
+pidfile="@VARBASE@/run/named/${name}.pid"
+start_precmd="named_precmd"
+extra_commands="reload"
+required_dirs="$named_chrootdir" # if it is set, it must exist
+
+named_precmd()
+{
+ # Die if $named is also set (i.e. the system's named is not disabled
+ if checkyesno named ; then
+ warn \
+ "disable 'named' when setting 'named9'!"
+ return 1
+ fi
+
+ if [ ! -d @VARBASE@/run/named ]; then
+ @MKDIR@ @VARBASE@/run/named
+ fi
+
+ if [ -z "$named_chrootdir" ]; then
+ return 0;
+ fi
+
+ for i in null random
+ do
+ if [ ! -c "${named_chrootdir}/dev/$i" ]; then
+ @RM@ -f "${named_chrootdir}/dev/$i"
+ (cd /dev &&
+ @PAX@ -rw -pe "$i" "${named_chrootdir}/dev")
+ fi
+ done
+
+ if [ -f /etc/localtime ]; then
+ @CMP@ -s /etc/localtime "${named_chrootdir}/etc/localtime" || \
+ @CP@ -p /etc/localtime "${named_chrootdir}/etc/localtime"
+ fi
+
+ if [ -f /usr/lib/engines/libgost.so ]; then
+ if [ ! -d ${named_chrootdir}/usr/lib/engines ]; then
+ @MKDIR@ ${named_chrootdir}/usr/lib/engines
+ fi
+ @CMP@ -s /usr/lib/engines/libgost.so "${named_chrootdir}/usr/lib/engines/libgost.so" || \
+ @CP@ -p /usr/lib/engines/libgost.so "${named_chrootdir}/usr/lib/engines/libgost.so"
+ fi
+
+ if [ ! -d ${named_chrootdir}@VARBASE@/run/named ]; then
+ @MKDIR@ ${named_chrootdir}@VARBASE@/run/named
+ @CHOWN@ @BIND_USER@ ${named_chrootdir}@VARBASE@/run/named
+ fi
+
+ @RM@ -f ${pidfile}
+ @LN@ -s "${named_chrootdir}${pidfile}" ${pidfile}
+
+ # Change run_rc_commands()'s internal copy of $named_flags
+ #
+ rc_flags="-u @BIND_USER@ -t ${named_chrootdir} $rc_flags"
+}
+
+load_rc_config "$rcvar"
+run_rc_command "$1"
diff --git a/net/bind910/files/smf/manifest.xml b/net/bind910/files/smf/manifest.xml
new file mode 100644
index 00000000000..6e35cf26498
--- /dev/null
+++ b/net/bind910/files/smf/manifest.xml
@@ -0,0 +1,141 @@
+<?xml version="1.0"?>
+<!--
+CDDL HEADER START
+
+The contents of this file are subject to the terms of the
+Common Development and Distribution License (the "License").
+You may not use this file except in compliance with the License.
+
+You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+or http://www.opensolaris.org/os/licensing.
+See the License for the specific language governing permissions
+and limitations under the License.
+
+When distributing Covered Code, include this CDDL HEADER in each
+file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+If applicable, add the following below this CDDL HEADER, with the
+fields enclosed by brackets "[]" replaced with your own identifying
+information: Portions Copyright [yyyy] [name of copyright owner]
+
+CDDL HEADER END
+-->
+<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
+<!--
+ Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ Use is subject to license terms.
+
+ ident "@(#)server.xml 1.8 07/06/19 SMI"
+-->
+<!-- Portions Copyright 2007 Vedran Bender -->
+<service_bundle type='manifest' name='@SMF_NAME@'>
+ <service name='@SMF_PREFIX@/@SMF_NAME@' type='service' version='1'>
+ <dependency name='filesystem_minimal' grouping='require_all' restart_on='none' type='service'>
+ <service_fmri value='svc:/system/filesystem/local' />
+ </dependency>
+ <dependency name='loopback' grouping='require_any' restart_on='error' type='service'>
+ <service_fmri value='svc:/network/loopback' />
+ </dependency>
+ <dependency name='network' grouping='optional_all' restart_on='error' type='service'>
+ <service_fmri value='svc:/milestone/network' />
+ </dependency>
+ <dependency name='config-files' grouping='require_any' restart_on='refresh' type='path'>
+ <service_fmri value='file://localhost@PKG_SYSCONFDIR@/named.conf' />
+ </dependency>
+ <exec_method type='method' name='stop' exec=':kill' timeout_seconds='60' />
+ <!--
+ In order to run multiple named(1M) processes with their own
+ configuration file or properties each must have a unique
+ instance.
+ -->
+ <instance name='default' enabled='false'>
+ <exec_method type='method' name='start' exec='@PREFIX@/@SMF_METHOD_FILE.named@ %m %i' timeout_seconds='60'>
+ <method_context>
+ <!--
+ privileges: (see privileges(5) and /etc/security/priv_names)
+ file_dac_read, file_dac_search:
+ Necessary for reading the configuration file
+ even it is restricted by the file permission.
+ net_privaddr:
+ Bind to a privileged port number.
+ sys_resource:
+ Permit the setting of resource limits (eg. stack
+ size).
+ proc_chroot:
+ Permit use of chroot(2).
+ -->
+ <method_credential user='root' group='root' privileges='basic,!proc_session,!proc_info,!file_link_any,net_privaddr,file_dac_read,file_dac_search,sys_resource,proc_chroot' />
+ </method_context>
+ </exec_method>
+ <!--
+ SIGHUP causes named to reread its configuration file, but not any
+ of the properties below.
+ -->
+ <exec_method type='method' name='refresh' exec=':kill -HUP' timeout_seconds='60'>
+ <method_context />
+ </exec_method>
+ <property_group name='general' type='framework'>
+ <!-- manage DNS server state -->
+ <propval name='action_authorization' type='astring' value='solaris.smf.manage.bind' />
+ <propval name='value_authorization' type='astring' value='solaris.smf.manage.bind' />
+ </property_group>
+ <!-- Default property settings for named(1M) instance. -->
+ <property_group name='options' type='application'>
+ <!--
+ server: specifies an alternative server command. If
+ not specified the default /usr/sbin/named is used.
+ -->
+ <propval name='server' type='astring' value='' />
+ <!--
+ configuration_file: specifies an alternative
+ configuration file to be used. The property is similar
+ to named(1M) command line option '-c'
+ -->
+ <propval name='configuration_file' type='astring' value='' />
+ <!--
+ ip_interfaces: specifies which IP transport BIND will
+ transmit on. Possible values are 'IPv4' or 'IPv6'. Any
+ other setting assumes 'all', the default.
+ Equivalent command line option '-4' or '-6'.
+ -->
+ <propval name='ip_interfaces' type='astring' value='all' />
+ <!--
+ listen_on_port: Specifies the default UDP and TCP port
+ which will be used to listen for DNS requests.
+ Equivalent command line option '-p <integer>'.
+ -->
+ <propval name='listen_on_port' type='integer' value='0' />
+ <!--
+ debug_level: Specifies the default debug level. The
+ default is 0; no debugging. The Higher the number the
+ more verbose debug information becomes.
+ Equivalent command line option '-d <integer>'.
+ -->
+ <propval name='debug_level' type='integer' value='0' />
+ <!--
+ threads: Specifies the number of cpu worker threads to
+ create. The default of 0 causes named to try and
+ determine the number of CPUs present and create one
+ thread per CPU.
+ Equivalent command line option '-n <integer>'.
+ -->
+ <propval name='threads' type='integer' value='0' />
+ <!--
+ chroot_dir: Change the root directory using chroot(2)
+ to directory after processing the command line
+ arguments, but before reading the configuration file.
+ Equivalent command line option '-t <pathname>'.
+ -->
+ <propval name='chroot_dir' type='astring' value='' />
+ </property_group>
+ </instance>
+ <stability value='Unstable' />
+ <template>
+ <common_name>
+ <loctext xml:lang='C'>BIND DNS server</loctext>
+ </common_name>
+ <documentation>
+ <manpage title='named' section='1M' manpath='@PREFIX@/@PKGMANDIR@' />
+ </documentation>
+ </template>
+ </service>
+</service_bundle>
diff --git a/net/bind910/files/smf/named.sh b/net/bind910/files/smf/named.sh
new file mode 100644
index 00000000000..49a2da36913
--- /dev/null
+++ b/net/bind910/files/smf/named.sh
@@ -0,0 +1,117 @@
+#!@SMF_METHOD_SHELL@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#pragma ident "@(#)dns-server.sh 1.1 07/03/26 SMI"
+
+# smf_method(5) start/stop script required for server DNS
+
+. /lib/svc/share/smf_include.sh
+
+result=${SMF_EXIT_OK}
+
+# Read command line arguments
+method="$1" # %m
+instance="$2" # %i
+
+# Set defaults; SMF_FMRI should have been set, but just in case.
+if [ -z "$SMF_FMRI" ]; then
+ SMF_FMRI="svc:/@SMF_PREFIX@/@SMF_NAME@:${instance}"
+fi
+server="@PREFIX@/sbin/named"
+I=`/usr/bin/basename $0`
+
+case "$method" in
+'start')
+ cmdopts=""
+ properties="debug_level ip_interfaces listen_on_port
+ threads chroot_dir configuration_file server"
+
+ for prop in $properties
+ do
+ value=`/usr/bin/svcprop -p options/${prop} ${SMF_FMRI}`
+ if [ -z "${value}" -o "${value}" = '""' ]; then
+ continue;
+ fi
+
+ case $prop in
+ 'debug_level')
+ if [ ${value} -gt 0 ]; then
+ cmdopts="${cmdopts} -d ${value}"
+ fi
+ ;;
+ 'ip_interfaces')
+ case ${value} in
+ 'IPv4')
+ cmdopts="${cmdopts} -4";;
+ 'IPv6')
+ cmdopts="${cmdopts} -6";;
+ 'all')
+ : # Default is all, therefore ignore.
+ ;;
+ *)
+ echo "$I: Unrecognised value in service instance property" >&2
+ echo "$I: options/${prop} : ${value}" >&2
+ ;;
+ esac
+ ;;
+ 'listen_on_port')
+ if [ ${value} -gt 0 ]; then
+ cmdopts="${cmdopts} -p ${value}"
+ fi
+ ;;
+ 'threads')
+ if [ ${value} -gt 0 ]; then
+ cmdopts="${cmdopts} -n ${value}"
+ fi
+ ;;
+ 'chroot_dir')
+ cmdopts="${cmdopts} -t ${value}"
+ ;;
+ 'configuration_file')
+ cmdopts="${cmdopts} -c ${value}"
+ ;;
+ 'server')
+ set -- `echo ${value} | /usr/bin/sed -e 's/\\\\//g'`
+ server=$@
+ ;;
+ esac
+ done
+
+ if [ ${result} = ${SMF_EXIT_OK} ]; then
+ echo "$I: Executing: ${server} ${cmdopts}"
+ # Execute named(1M) with relevant command line options.
+ ${server} ${cmdopts}
+ result=$?
+ fi
+ ;;
+'stop')
+ smf_kill_contract ${contract} TERM 1
+ [ $? -ne 0 ] && exit 1
+ ;;
+*)
+ echo "Usage: $I [stop|start] <instance>" >&2
+ exit 1
+ ;;
+esac
+exit ${result}
diff --git a/net/bind910/options.mk b/net/bind910/options.mk
new file mode 100644
index 00000000000..4db9eb9bbee
--- /dev/null
+++ b/net/bind910/options.mk
@@ -0,0 +1,107 @@
+# $NetBSD: options.mk,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.bind910
+PKG_SUPPORTED_OPTIONS= bind-dig-sigchase bind-xml-statistics-server
+PKG_SUPPORTED_OPTIONS+= inet6 threads readline mysql pgsql ldap dlz-filesystem
+PKG_SUPPORTED_OPTIONS+= rrl
+PKG_SUGGESTED_OPTIONS+= readline
+
+PTHREAD_OPTS+= native
+.include "../../mk/pthread.buildlink3.mk"
+
+.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none") || \
+ !empty(MACHINE_PLATFORM:MNetBSD-*-vax) || \
+ !empty(MACHINE_PLATFORM:MNetBSD-*-sparc) || \
+ !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64) || \
+ !empty(MACHINE_PLATFORM:MNetBSD-*-m68k)
+# don't touch PKG_SUGGESTED_OPTIONS
+.else
+PKG_SUGGESTED_OPTIONS+= threads
+.endif
+
+.if empty(MISSING_FEATURES:Minet6)
+PKG_SUGGESTED_OPTIONS+= inet6
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+###
+### The mysql pgsql ldap dlz-filesystem options are all for BIND
+### DLZ (Dynamically Loadable Zones) functionality
+###
+### NOTE: bdb is excluded on purpose as pkgsrc does not contain
+### a bdb v4.1 or 4.2 package which is what BIND needs.
+### The majority of these are compile tested only
+###
+
+.if !empty(PKG_OPTIONS:Mmysql)
+.include "../../mk/mysql.buildlink3.mk"
+CONFIGURE_ARGS+= --with-dlz-mysql=${BUILDLINK_PREFIX.mysql-client}
+.endif
+
+.if !empty(PKG_OPTIONS:Mpgsql)
+.include "../../mk/pgsql.buildlink3.mk"
+CONFIGURE_ARGS+= --with-dlz-postgres=${BUILDLINK_PREFIX.${PGSQL_TYPE}}
+CONFIGURE_ENV+= ac_cv_path_PG_CONFIG=${PREFIX}/bin/pg_config
+.endif
+
+.if !empty(PKG_OPTIONS:Mldap)
+.include "../../databases/openldap-client/buildlink3.mk"
+CONFIGURE_ARGS+= --with-dlz-ldap=${BUILDLINK_PREFIX.openldap-client}
+.endif
+
+.if !empty(PKG_OPTIONS:Mdlz-filesystem)
+CONFIGURE_ARGS+= --with-dlz-filesystem
+.endif
+
+.if !empty(PKG_OPTIONS:Mrrl)
+CONFIGURE_ARGS+= --enable-rrl
+.endif
+
+###
+### The statistics server in bind99 and later needs libxml2
+###
+.if !empty(PKG_OPTIONS:Mbind-xml-statistics-server)
+.include "../../textproc/libxml2/buildlink3.mk"
+CONFIGURE_ARGS+= --with-libxml2
+.else
+CONFIGURE_ARGS+= --without-libxml2
+.endif
+
+###
+### IPv6 support
+###
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
+
+###
+### pthreads support (also see magic above)
+###
+.if !empty(PKG_OPTIONS:Mthreads)
+PTHREAD_AUTO_VARS= yes
+CONFIGURE_ARGS+= --enable-threads
+.else
+CONFIGURE_ARGS+= --disable-threads
+.endif
+
+###
+### readline support in dig(1) and nsupdate(1).
+###
+.if !empty(PKG_OPTIONS:Mreadline)
+.include "../../mk/readline.buildlink3.mk"
+CONFIGURE_ARGS+= --with-readline
+.else
+CONFIGURE_ARGS+= --without-readline
+.endif
+
+###
+### dig(1) option +sigchase for DNSSEC signature chasing
+###
+.if !empty(PKG_OPTIONS:Mbind-dig-sigchase)
+# If anything else needs to add entries to STD_CDEFINES, this will need
+# to be changed so that the two can cooperate.
+CONFIGURE_ENV+= STD_CDEFINES=-DDIG_SIGCHASE=1
+.endif
diff --git a/net/bind910/patches/patch-bin_dig_dighost.c b/net/bind910/patches/patch-bin_dig_dighost.c
new file mode 100644
index 00000000000..dfa443b8b23
--- /dev/null
+++ b/net/bind910/patches/patch-bin_dig_dighost.c
@@ -0,0 +1,128 @@
+$NetBSD: patch-bin_dig_dighost.c,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+* Avoid to use true as variable name.
+
+--- bin/dig/dighost.c.orig 2014-01-27 18:58:24.000000000 +0000
++++ bin/dig/dighost.c
+@@ -4397,7 +4397,7 @@ prepare_lookup(dns_name_t *name)
+ isc_result_t result;
+ isc_region_t r;
+ dns_rdataset_t *rdataset = NULL;
+- isc_boolean_t true = ISC_TRUE;
++ isc_boolean_t isc_true = ISC_TRUE;
+ #endif
+
+ memset(namestr, 0, DNS_NAME_FORMATSIZE);
+@@ -4411,7 +4411,7 @@ prepare_lookup(dns_name_t *name)
+
+ result = advanced_rrsearch(&rdataset, &ns.name,
+ dns_rdatatype_aaaa,
+- dns_rdatatype_any, &true);
++ dns_rdatatype_any, &isc_true);
+ if (result == ISC_R_SUCCESS) {
+ for (result = dns_rdataset_first(rdataset);
+ result == ISC_R_SUCCESS;
+@@ -4440,7 +4440,7 @@ prepare_lookup(dns_name_t *name)
+
+ rdataset = NULL;
+ result = advanced_rrsearch(&rdataset, &ns.name, dns_rdatatype_a,
+- dns_rdatatype_any, &true);
++ dns_rdatatype_any, &isc_true);
+ if (result == ISC_R_SUCCESS) {
+ for (result = dns_rdataset_first(rdataset);
+ result == ISC_R_SUCCESS;
+@@ -4559,11 +4559,11 @@ isc_result_t
+ initialization(dns_name_t *name)
+ {
+ isc_result_t result;
+- isc_boolean_t true = ISC_TRUE;
++ isc_boolean_t isc_true = ISC_TRUE;
+
+ chase_nsrdataset = NULL;
+ result = advanced_rrsearch(&chase_nsrdataset, name, dns_rdatatype_ns,
+- dns_rdatatype_any, &true);
++ dns_rdatatype_any, &isc_true);
+ if (result != ISC_R_SUCCESS) {
+ printf("\n;; NS RRset is missing to continue validation:"
+ " FAILED\n\n");
+@@ -4911,7 +4911,7 @@ sigchase_td(dns_message_t *msg)
+ isc_result_t result;
+ dns_name_t *name = NULL;
+ isc_boolean_t have_answer = ISC_FALSE;
+- isc_boolean_t true = ISC_TRUE;
++ isc_boolean_t isc_true = ISC_TRUE;
+
+ if ((result = dns_message_firstname(msg, DNS_SECTION_ANSWER))
+ == ISC_R_SUCCESS) {
+@@ -4920,7 +4920,7 @@ sigchase_td(dns_message_t *msg)
+ initialization(name);
+ return;
+ }
+- have_answer = true;
++ have_answer = isc_true;
+ } else {
+ if (!current_lookup->trace_root_sigchase) {
+ result = dns_message_firstname(msg,
+@@ -5038,7 +5038,7 @@ sigchase_td(dns_message_t *msg)
+ dns_rdatatype_rrsig,
+ current_lookup
+ ->rdtype_sigchase,
+- &true);
++ &isc_true);
+ if (result == ISC_R_FAILURE) {
+ printf("\n;; RRset is missing to continue"
+ " validation SHOULD NOT APPEND:"
+@@ -5051,7 +5051,7 @@ sigchase_td(dns_message_t *msg)
+ &chase_authority_name,
+ dns_rdatatype_rrsig,
+ dns_rdatatype_any,
+- &true);
++ &isc_true);
+ if (result == ISC_R_FAILURE) {
+ printf("\n;; RRSIG is missing to continue"
+ " validation SHOULD NOT APPEND:"
+@@ -5127,7 +5127,7 @@ sigchase_td(dns_message_t *msg)
+ &chase_authority_name,
+ dns_rdatatype_rrsig,
+ dns_rdatatype_ds,
+- &true);
++ &isc_true);
+ if (result != ISC_R_SUCCESS) {
+ printf("\n;; DSset is missing to continue validation:"
+ " FAILED\n\n");
+@@ -5215,7 +5215,7 @@ sigchase_td(dns_message_t *msg)
+ result = advanced_rrsearch(&chase_rdataset, &chase_name,
+ current_lookup->rdtype_sigchase,
+ dns_rdatatype_any ,
+- &true);
++ &isc_true);
+ if (result == ISC_R_FAILURE) {
+ printf("\n;; RRsig of RRset is missing to continue validation"
+ " SHOULD NOT APPEND: FAILED\n\n");
+@@ -5258,7 +5258,7 @@ getneededrr(dns_message_t *msg)
+ dns_name_t *name = NULL;
+ dns_rdata_t sigrdata = DNS_RDATA_INIT;
+ dns_rdata_sig_t siginfo;
+- isc_boolean_t true = ISC_TRUE;
++ isc_boolean_t isc_true = ISC_TRUE;
+
+ if ((result = dns_message_firstname(msg, DNS_SECTION_ANSWER))
+ != ISC_R_SUCCESS) {
+@@ -5274,7 +5274,7 @@ getneededrr(dns_message_t *msg)
+ if (chase_rdataset == NULL) {
+ result = advanced_rrsearch(&chase_rdataset, name,
+ dns_rdatatype_any,
+- dns_rdatatype_any, &true);
++ dns_rdatatype_any, &isc_true);
+ if (result != ISC_R_SUCCESS) {
+ printf("\n;; No Answers: Validation FAILED\n\n");
+ return (ISC_R_NOTFOUND);
+@@ -5394,7 +5394,7 @@ getneededrr(dns_message_t *msg)
+ result = advanced_rrsearch(&chase_sigdsrdataset,
+ &chase_signame,
+ dns_rdatatype_rrsig,
+- dns_rdatatype_ds, &true);
++ dns_rdatatype_ds, &isc_true);
+ if (result == ISC_R_FAILURE) {
+ printf(";; WARNING : NO RRSIG DS : RRSIG DS"
+ " should come with DS\n");
diff --git a/net/bind910/patches/patch-bin_tests_system_Makefile.in b/net/bind910/patches/patch-bin_tests_system_Makefile.in
new file mode 100644
index 00000000000..9d625e4f1c3
--- /dev/null
+++ b/net/bind910/patches/patch-bin_tests_system_Makefile.in
@@ -0,0 +1,15 @@
+$NetBSD: patch-bin_tests_system_Makefile.in,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+Build fix for DragonFly while linking of driver.so.
+
+--- bin/tests/system/Makefile.in.orig 2014-05-27 04:45:53.000000000 +0000
++++ bin/tests/system/Makefile.in
+@@ -21,7 +21,7 @@ top_srcdir = @top_srcdir@
+
+ @BIND9_MAKE_INCLUDES@
+
+-SUBDIRS = dlzexternal filter-aaaa geoip lwresd rpz rsabigexponent tkey tsiggss
++SUBDIRS = filter-aaaa geoip lwresd rpz rsabigexponent tkey tsiggss
+ TARGETS =
+
+ @BIND9_MAKE_RULES@
diff --git a/net/bind910/patches/patch-config.threads.in b/net/bind910/patches/patch-config.threads.in
new file mode 100644
index 00000000000..c5cb3d56776
--- /dev/null
+++ b/net/bind910/patches/patch-config.threads.in
@@ -0,0 +1,15 @@
+$NetBSD: patch-config.threads.in,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+* Add DragonFly support.
+
+--- config.threads.in.orig 2012-01-30 07:08:34.000000000 +0000
++++ config.threads.in
+@@ -50,6 +50,8 @@ case $host in
+ use_threads=false ;;
+ *-freebsd*)
+ use_threads=true ;;
++*-dragonfly*)
++ use_threads=false ;;
+ [*-bsdi[234]*])
+ # Thread signals do not work reliably on some versions of BSD/OS.
+ use_threads=false ;;
diff --git a/net/bind910/patches/patch-configure b/net/bind910/patches/patch-configure
new file mode 100644
index 00000000000..5fecf01e05e
--- /dev/null
+++ b/net/bind910/patches/patch-configure
@@ -0,0 +1,35 @@
+$NetBSD: patch-configure,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+* Add DragonFly support.
+* Link proper postgresql library.
+* Avoid using "==" for argument of test(1).
+
+--- configure.orig 2014-01-27 18:58:24.000000000 +0000
++++ configure
+@@ -11685,7 +11685,7 @@ done
+
+ ;;
+ esac
+- if test "X$PYTHON" == "X"
++ if test "X$PYTHON" = "X"
+ then
+ case "$use_python" in
+ unspec)
+@@ -14410,6 +14410,8 @@ case $host in
+ use_threads=false ;;
+ *-freebsd*)
+ use_threads=true ;;
++*-dragonfly*)
++ use_threads=false ;;
+ *-bsdi[234]*)
+ # Thread signals do not work reliably on some versions of BSD/OS.
+ use_threads=false ;;
+@@ -19538,7 +19540,7 @@ $as_echo "no" >&6; }
+ fi
+ if test -n "-L$use_dlz_postgres_lib -lpq"
+ then
+- DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
++ DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${PREFIX}/lib -lpq"
+ fi
+
+
diff --git a/net/bind910/patches/patch-contrib_dlz_config.dlz.in b/net/bind910/patches/patch-contrib_dlz_config.dlz.in
new file mode 100644
index 00000000000..dd6f1e6fb7c
--- /dev/null
+++ b/net/bind910/patches/patch-contrib_dlz_config.dlz.in
@@ -0,0 +1,15 @@
+$NetBSD: patch-contrib_dlz_config.dlz.in,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+* Link proper postgresql library.
+
+--- contrib/dlz/config.dlz.in.orig 2012-06-01 15:29:52.000000000 +0000
++++ contrib/dlz/config.dlz.in
+@@ -105,7 +105,7 @@ case "$use_dlz_postgres" in
+ *)
+ DLZ_ADD_DRIVER(POSTGRES, dlz_postgres_driver,
+ [-I$use_dlz_postgres],
+- [-L$use_dlz_postgres_lib -lpq])
++ [-L${PREFIX}/lib -lpq])
+
+ AC_MSG_RESULT(
+ [using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres])
diff --git a/net/bind910/patches/patch-lib_bind9_Makefile.in b/net/bind910/patches/patch-lib_bind9_Makefile.in
new file mode 100644
index 00000000000..8cf647908c6
--- /dev/null
+++ b/net/bind910/patches/patch-lib_bind9_Makefile.in
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_bind9_Makefile.in,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+* XXX: Install with proper permission.
+
+--- lib/bind9/Makefile.in.orig 2013-09-05 05:09:08.000000000 +0000
++++ lib/bind9/Makefile.in
+@@ -79,7 +79,7 @@ installdirs:
+ $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
+
+ install:: timestamp installdirs
+- ${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libbind9.@A@ ${DESTDIR}${libdir}
++ ${LIBTOOL_MODE_INSTALL} ${INSTALL_SCRIPT} libbind9.@A@ ${DESTDIR}${libdir}
+
+ clean distclean::
+ rm -f libbind9.@A@ timestamp
diff --git a/net/bind910/patches/patch-lib_dns_Makefile.in b/net/bind910/patches/patch-lib_dns_Makefile.in
new file mode 100644
index 00000000000..7f98fa83338
--- /dev/null
+++ b/net/bind910/patches/patch-lib_dns_Makefile.in
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_dns_Makefile.in,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+* XXX: Install with proper permission.
+
+--- lib/dns/Makefile.in.orig 2013-09-05 05:09:08.000000000 +0000
++++ lib/dns/Makefile.in
+@@ -142,7 +142,7 @@ installdirs:
+ $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
+
+ install:: timestamp installdirs
+- ${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libdns.@A@ ${DESTDIR}${libdir}
++ ${LIBTOOL_MODE_INSTALL} ${INSTALL_SCRIPT} libdns.@A@ ${DESTDIR}${libdir}
+
+ clean distclean::
+ rm -f libdns.@A@ timestamp
diff --git a/net/bind910/patches/patch-lib_dns_rbt.c b/net/bind910/patches/patch-lib_dns_rbt.c
new file mode 100644
index 00000000000..af59ad22a72
--- /dev/null
+++ b/net/bind910/patches/patch-lib_dns_rbt.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-lib_dns_rbt.c,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+* Disable inline on powerpc.
+
+--- lib/dns/rbt.c.orig 2014-05-27 04:45:53.000000000 +0000
++++ lib/dns/rbt.c
+@@ -328,6 +328,10 @@ hexdump(const char *desc, unsigned char
+ }
+ #endif
+
++#if !defined(inline) && defined(__powerpc__)
++#define inline /**/
++#endif
++
+ static inline dns_rbtnode_t *
+ find_up(dns_rbtnode_t *node) {
+ dns_rbtnode_t *root;
diff --git a/net/bind910/patches/patch-lib_isc_Makefile.in b/net/bind910/patches/patch-lib_isc_Makefile.in
new file mode 100644
index 00000000000..ea47a99fe60
--- /dev/null
+++ b/net/bind910/patches/patch-lib_isc_Makefile.in
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_isc_Makefile.in,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+* XXX: Install with proper permission.
+
+--- lib/isc/Makefile.in.orig 2014-01-27 18:58:24.000000000 +0000
++++ lib/isc/Makefile.in
+@@ -134,7 +134,7 @@ installdirs:
+ $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
+
+ install:: timestamp installdirs
+- ${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libisc.@A@ ${DESTDIR}${libdir}
++ ${LIBTOOL_MODE_INSTALL} ${INSTALL_SCRIPT} libisc.@A@ ${DESTDIR}${libdir}
+
+ clean distclean::
+ rm -f libisc.@A@ libisc-nosymtbl.@A@ libisc.la \
diff --git a/net/bind910/patches/patch-lib_isccc_Makefile.in b/net/bind910/patches/patch-lib_isccc_Makefile.in
new file mode 100644
index 00000000000..4c3a342b827
--- /dev/null
+++ b/net/bind910/patches/patch-lib_isccc_Makefile.in
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_isccc_Makefile.in,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+* XXX: Install with proper permission.
+
+--- lib/isccc/Makefile.in.orig 2011-02-19 23:47:38.000000000 +0000
++++ lib/isccc/Makefile.in
+@@ -80,7 +80,7 @@ installdirs:
+ $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
+
+ install:: timestamp installdirs
+- ${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libisccc.@A@ ${DESTDIR}${libdir}
++ ${LIBTOOL_MODE_INSTALL} ${INSTALL_SCRIPT} libisccc.@A@ ${DESTDIR}${libdir}
+
+ clean distclean::
+ rm -f libisccc.@A@ timestamp
diff --git a/net/bind910/patches/patch-lib_isccfg_Makefile.in b/net/bind910/patches/patch-lib_isccfg_Makefile.in
new file mode 100644
index 00000000000..250233c2317
--- /dev/null
+++ b/net/bind910/patches/patch-lib_isccfg_Makefile.in
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_isccfg_Makefile.in,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+* XXX: Install with proper permission.
+
+--- lib/isccfg/Makefile.in.orig 2013-09-05 05:09:08.000000000 +0000
++++ lib/isccfg/Makefile.in
+@@ -78,7 +78,7 @@ installdirs:
+ $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
+
+ install:: timestamp installdirs
+- ${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libisccfg.@A@ ${DESTDIR}${libdir}
++ ${LIBTOOL_MODE_INSTALL} ${INSTALL_SCRIPT} libisccfg.@A@ ${DESTDIR}${libdir}
+
+ clean distclean::
+ rm -f libisccfg.@A@ timestamp
diff --git a/net/bind910/patches/patch-lib_lwres_Makefile.in b/net/bind910/patches/patch-lib_lwres_Makefile.in
new file mode 100644
index 00000000000..9a2a5ff012e
--- /dev/null
+++ b/net/bind910/patches/patch-lib_lwres_Makefile.in
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_lwres_Makefile.in,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+* XXX: Install with proper permission.
+
+--- lib/lwres/Makefile.in.orig 2007-06-19 23:47:22.000000000 +0000
++++ lib/lwres/Makefile.in
+@@ -78,7 +78,7 @@ installdirs:
+ $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
+
+ install:: timestamp installdirs
+- ${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} liblwres.@A@ ${DESTDIR}${libdir}
++ ${LIBTOOL_MODE_INSTALL} ${INSTALL_SCRIPT} liblwres.@A@ ${DESTDIR}${libdir}
+
+ clean distclean::
+ rm -f liblwres.@A@ liblwres.la timestamp
diff --git a/net/bind910/patches/patch-lib_lwres_getaddrinfo.c b/net/bind910/patches/patch-lib_lwres_getaddrinfo.c
new file mode 100644
index 00000000000..4c1e458a0db
--- /dev/null
+++ b/net/bind910/patches/patch-lib_lwres_getaddrinfo.c
@@ -0,0 +1,41 @@
+$NetBSD: patch-lib_lwres_getaddrinfo.c,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+* Add fix for KAME based implementation.
+
+--- lib/lwres/getaddrinfo.c.orig 2008-11-25 23:47:23.000000000 +0000
++++ lib/lwres/getaddrinfo.c
+@@ -142,6 +142,10 @@
+ #include <lwres/netdb.h>
+ #include <lwres/stdlib.h>
+
++#ifdef __KAME__
++#include <net/if.h>
++#endif
++
+ #define SA(addr) ((struct sockaddr *)(addr))
+ #define SIN(addr) ((struct sockaddr_in *)(addr))
+ #define SIN6(addr) ((struct sockaddr_in6 *)(addr))
+@@ -366,14 +370,22 @@ lwres_getaddrinfo(const char *hostname,
+ p = strchr(ntmp, '%');
+ ep = NULL;
+
++#ifdef __KAME__
++ if (p != NULL) {
++ scopeid = if_nametoindex(p + 1);
++ if (scopeid)
++ p = NULL;
++ }
++#endif
+ /*
+ * Vendors may want to support non-numeric
+ * scopeid around here.
+ */
+
+- if (p != NULL)
++ if (p != NULL) {
+ scopeid = (lwres_uint32_t)strtoul(p + 1,
+ &ep, 10);
++ }
+ if (p != NULL && ep != NULL && ep[0] == '\0')
+ *p = '\0';
+ else {
diff --git a/net/bind910/patches/patch-lib_lwres_getnameinfo.c b/net/bind910/patches/patch-lib_lwres_getnameinfo.c
new file mode 100644
index 00000000000..58643a76f49
--- /dev/null
+++ b/net/bind910/patches/patch-lib_lwres_getnameinfo.c
@@ -0,0 +1,34 @@
+$NetBSD: patch-lib_lwres_getnameinfo.c,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
+
+* Add fix for KAME based implementation.
+
+--- lib/lwres/getnameinfo.c.orig 2011-08-30 23:46:53.000000000 +0000
++++ lib/lwres/getnameinfo.c
+@@ -121,6 +121,10 @@
+ #include <lwres/netdb.h>
+ #include "print_p.h"
+
++#ifdef __KAME__
++#include <net/if.h>
++#endif
++
+ #include "assert_p.h"
+
+ #define SUCCESS 0
+@@ -272,13 +276,9 @@ lwres_getnameinfo(const struct sockaddr
+ ((const struct sockaddr_in6 *)sa)->sin6_scope_id) {
+ char *p = numaddr + strlen(numaddr);
+ const char *stringscope = NULL;
+-#if 0
+- if ((flags & NI_NUMERICSCOPE) == 0) {
+- /*
+- * Vendors may want to add support for
+- * non-numeric scope identifier.
+- */
+- stringscope = foo;
++#ifdef __KAME__
++ stringscope = if_indextoname(
++ ((const struct sockaddr_in6 *)sa)->sin6_scope_id);
+ }
+ #endif
+ if (stringscope == NULL) {