aboutsummaryrefslogtreecommitdiffstats
path: root/dns/bind9-dlz
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2002-08-30 23:53:30 +0800
committerdinoex <dinoex@FreeBSD.org>2002-08-30 23:53:30 +0800
commitd2ea07e04de5ddb2595a9560c65f55466c436777 (patch)
tree8c5936bbbe047a453e73f3313fb0fdfe08f63c57 /dns/bind9-dlz
parentabb9001474ef2c3fed845f5da861e083d6b1ed5a (diff)
downloadfreebsd-ports-gnome-d2ea07e04de5ddb2595a9560c65f55466c436777.tar.gz
freebsd-ports-gnome-d2ea07e04de5ddb2595a9560c65f55466c436777.tar.zst
freebsd-ports-gnome-d2ea07e04de5ddb2595a9560c65f55466c436777.zip
BIND version 9 Nameserver, with DLZ extensions
Add capabilities to Bind 9 that will allow Bind backend databases to support adding and removing zones without interrupting normal server operation. WWW: http://bind-dlz.sourceforge.net/
Diffstat (limited to 'dns/bind9-dlz')
-rw-r--r--dns/bind9-dlz/Makefile139
-rw-r--r--dns/bind9-dlz/distinfo2
-rw-r--r--dns/bind9-dlz/files/dlz_postgres_driver.c.diff21
-rw-r--r--dns/bind9-dlz/pkg-comment1
-rw-r--r--dns/bind9-dlz/pkg-descr6
-rw-r--r--dns/bind9-dlz/pkg-plist214
6 files changed, 383 insertions, 0 deletions
diff --git a/dns/bind9-dlz/Makefile b/dns/bind9-dlz/Makefile
new file mode 100644
index 000000000000..ff5b3331e75a
--- /dev/null
+++ b/dns/bind9-dlz/Makefile
@@ -0,0 +1,139 @@
+# New ports collection makefile for: bind-dlz
+# Date Created: 08 Jun 2002
+# Whom: dirk.meyer@dinoex.sub.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= bind9
+PORTVERSION= ${VERSION_BIND}+${DLZVERSION}
+CATEGORIES= net ipv6
+MASTER_SITES= ftp://ftp.isc.org/isc/bind9/${ISCVERSION}/ \
+ ftp://ftp.nominum.com/pub/isc/bind9/${ISCVERSION}/ \
+ ftp://ftp.nerdc.ufl.edu/pub/mirrors/ftp.isc.org/isc/bind9/${ISCVERSION}/ \
+ ftp://ftp.sunet.se/pub/network/isc/bind9/${ISCVERSION}/ \
+ ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/bind9/${ISCVERSION}/,}
+MASTER_SITES+= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= bind-dlz
+PKGNAMESUFFIX= -dlz
+DISTFILES= bind-9.2.1.tar.gz
+DISTFILES+= DLZ-${DLZVERSION}${EXTRACT_SUFX}
+
+MAINTAINER= dinoex@FreeBSD.org
+
+LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql7
+
+ISCVERSION= 9.2.1
+VERSION_BIND= 9.2.1
+EXTRA_PATCHES= ${WRKDIR}/dlz.patch
+EXTRA_PATCHES+= ${.CURDIR}/files/dlz_postgres_driver.c.diff
+PLIST= ${WRKDIR}/.PLIST.more
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --localstatedir=/var --disable-linux-caps
+WRKSRC= ${WRKDIR}/bind-${ISCVERSION}
+
+DIR= ${WRKSRC}/bin/
+DLZVERSION= 0.2.1
+EXTRA_DOCSDIR= share/doc/bind9-dlz
+DOCS= README.txt bind_dlz.txt changelog.txt dlz_interface.txt \
+ dlz_postgres_driver.txt dlz_stub_driver.txt \
+ sdlz_helper.txt sdlz_interface.txt
+
+MAN1= dig.1 host.1
+MAN3= lwres.3 lwres_addr_parse.3 lwres_buffer.3 lwres_buffer_add.3 \
+ lwres_buffer_back.3 lwres_buffer_clear.3 lwres_buffer_first.3 \
+ lwres_buffer_forward.3 lwres_buffer_getmem.3 lwres_buffer_getuint16.3 \
+ lwres_buffer_getuint32.3 lwres_buffer_getuint8.3 lwres_buffer_init.3 \
+ lwres_buffer_invalidate.3 lwres_buffer_putmem.3 \
+ lwres_buffer_putuint16.3 lwres_buffer_putuint32.3 \
+ lwres_buffer_putuint8.3 lwres_buffer_subtract.3 lwres_conf_clear.3 \
+ lwres_conf_get.3 lwres_conf_init.3 lwres_conf_parse.3 \
+ lwres_conf_print.3 lwres_config.3 lwres_context.3 \
+ lwres_context_allocmem.3 lwres_context_create.3 \
+ lwres_context_destroy.3 lwres_context_freemem.3 \
+ lwres_context_initserial.3 lwres_context_nextserial.3 \
+ lwres_context_sendrecv.3 lwres_endhostent.3 lwres_endhostent_r.3 \
+ lwres_freeaddrinfo.3 lwres_freehostent.3 lwres_gabn.3 \
+ lwres_gabnrequest_free.3 lwres_gabnrequest_parse.3 \
+ lwres_gabnrequest_render.3 lwres_gabnresponse_free.3 \
+ lwres_gabnresponse_parse.3 lwres_gabnresponse_render.3 \
+ lwres_gai_strerror.3 lwres_getaddrinfo.3 lwres_getaddrsbyname.3 \
+ lwres_gethostbyaddr.3 lwres_gethostbyaddr_r.3 lwres_gethostbyname.3 \
+ lwres_gethostbyname2.3 lwres_gethostbyname_r.3 lwres_gethostent.3 \
+ lwres_gethostent_r.3 lwres_getipnode.3 lwres_getipnodebyaddr.3 \
+ lwres_getipnodebyname.3 lwres_getnamebyaddr.3 lwres_getnameinfo.3 \
+ lwres_getrrsetbyname.3 lwres_gnba.3 lwres_gnbarequest_free.3 \
+ lwres_gnbarequest_parse.3 lwres_gnbarequest_render.3 \
+ lwres_gnbaresponse_free.3 lwres_gnbaresponse_parse.3 \
+ lwres_gnbaresponse_render.3 lwres_herror.3 lwres_hstrerror.3 \
+ lwres_inetntop.3 lwres_lwpacket_parseheader.3 \
+ lwres_lwpacket_renderheader.3 lwres_net_ntop.3 lwres_noop.3 \
+ lwres_nooprequest_free.3 lwres_nooprequest_parse.3 \
+ lwres_nooprequest_render.3 lwres_noopresponse_free.3 \
+ lwres_noopresponse_parse.3 lwres_noopresponse_render.3 \
+ lwres_packet.3 lwres_resutil.3 lwres_sethostent.3 \
+ lwres_sethostent_r.3 lwres_string_parse.3
+MAN5= rndc.conf.5
+MAN8= dnssec-keygen.8 dnssec-makekeyset.8 dnssec-signkey.8 dnssec-signzone.8 \
+ lwresd.8 named-checkconf.8 named-checkzone.8 named.8 nsupdate.8 \
+ rndc-confgen.8 rndc.8
+
+pre-patch:
+ ${PERL} -pi -e "s=bind-9.2.1/==" ${EXTRA_PATCHES}
+
+post-patch:
+ ${PERL} -pi -e "s=/usr/local/pgsql/include=${LOCALBASE}/include=" \
+ ${WRKSRC}/bin/named/Makefile.in
+ ${PERL} -pi -e "s=/usr/local/pgsql/lib=${LOCALBASE}/lib=" \
+ ${WRKSRC}/bin/named/Makefile.in
+.for FILE in check/named-checkconf.8 named/named.8 nsupdate/nsupdate.8 \
+ rndc/rndc.8
+ @ ${MV} ${DIR}/${FILE} ${DIR}/${FILE}.Dist
+ @ ${SED} -e 's#/etc/named.conf#${PREFIX}/etc/named.conf#g' \
+ -e 's#/etc/rndc.conf#${PREFIX}/etc/rndc.conf#g' \
+ ${DIR}/${FILE}.Dist > ${DIR}/${FILE}
+.endfor
+
+pre-configure:
+ @${ECHO_CMD} "configure: ${CONFIGURE_ARGS}"
+
+pre-install:
+ ${CAT} ${.CURDIR}/pkg-plist >${PLIST}
+.if !defined(NOPORTDOCS)
+.for i in ${DOCS}
+ @${ECHO_CMD} `${BASENAME} ${i}` | \
+ ${AWK} '{print "${EXTRA_DOCSDIR}/" $$1}' >>${PLIST}
+.endfor
+ @${ECHO_CMD} "@dirrm ${EXTRA_DOCSDIR}" >>${PLIST}
+.endif
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/bin/rndc/rndc.conf \
+ ${PREFIX}/etc/rndc.conf.sample
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/bind9/arm
+ ${INSTALL_DATA} ${WRKSRC}/doc/arm/Bv9ARM*html \
+ ${PREFIX}/share/doc/bind9/arm
+ ${MKDIR} ${PREFIX}/share/doc/bind9/misc
+ ${INSTALL_DATA} ${WRKSRC}/doc/misc/[a-z]* \
+ ${PREFIX}/share/doc/bind9/misc
+ ${CP} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/FAQ \
+ ${WRKSRC}/README ${PREFIX}/share/doc/bind9/
+ ${MKDIR} ${PREFIX}/${EXTRA_DOCSDIR}
+ @cd ${WRKDIR} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/${EXTRA_DOCSDIR}/
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 400014
+USE_OPENSSL= yes
+CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
+.endif
+
+.if ${OSVERSION} > 500030
+CONFIGURE_ARGS+= --enable-threads
+.else
+CONFIGURE_ARGS+= --disable-threads
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/dns/bind9-dlz/distinfo b/dns/bind9-dlz/distinfo
new file mode 100644
index 000000000000..8b10546b1cf9
--- /dev/null
+++ b/dns/bind9-dlz/distinfo
@@ -0,0 +1,2 @@
+MD5 (bind-9.2.1.tar.gz) = 692cff6f44e006ce6984b2c286949dd1
+MD5 (DLZ-0.2.1.tar.gz) = 5deddec13e818a2e1196035c63525854
diff --git a/dns/bind9-dlz/files/dlz_postgres_driver.c.diff b/dns/bind9-dlz/files/dlz_postgres_driver.c.diff
new file mode 100644
index 000000000000..d7813efbe260
--- /dev/null
+++ b/dns/bind9-dlz/files/dlz_postgres_driver.c.diff
@@ -0,0 +1,21 @@
+--- bin/named/dlz_postgres_driver.c.orig Mon Jun 10 05:59:08 2002
++++ bin/named/dlz_postgres_driver.c Mon Jun 10 05:59:45 2002
+@@ -510,15 +510,15 @@
+
+ // free dbi->zone string
+ if(dbi->zone != NULL)
+- isc_mem_free(ns_g_mctx, (char *) dbi->zone);
++ isc_mem_free(ns_g_mctx, dbi->zone);
+
+ // free dbi->record string
+ if(dbi->record != NULL)
+- isc_mem_free(ns_g_mctx, (char *) dbi->record);
++ isc_mem_free(ns_g_mctx, dbi->record);
+
+ // free dbi->client string
+ if(dbi->client != NULL)
+- isc_mem_free(ns_g_mctx, (char *) dbi->client);
++ isc_mem_free(ns_g_mctx, dbi->client);
+
+ #ifdef ISC_PLATFORM_USETHREADS
+
diff --git a/dns/bind9-dlz/pkg-comment b/dns/bind9-dlz/pkg-comment
new file mode 100644
index 000000000000..e8cf63d3014f
--- /dev/null
+++ b/dns/bind9-dlz/pkg-comment
@@ -0,0 +1 @@
+The Berkeley Internet Name Daemon, with DLZ extensions
diff --git a/dns/bind9-dlz/pkg-descr b/dns/bind9-dlz/pkg-descr
new file mode 100644
index 000000000000..d1d1a8c28436
--- /dev/null
+++ b/dns/bind9-dlz/pkg-descr
@@ -0,0 +1,6 @@
+BIND version 9 Nameserver, with DLZ extensions
+
+Add capabilities to Bind 9 that will allow Bind backend databases to support
+adding and removing zones without interrupting normal server operation.
+
+WWW: http://bind-dlz.sourceforge.net/
diff --git a/dns/bind9-dlz/pkg-plist b/dns/bind9-dlz/pkg-plist
new file mode 100644
index 000000000000..1ef1ebb36905
--- /dev/null
+++ b/dns/bind9-dlz/pkg-plist
@@ -0,0 +1,214 @@
+bin/dig
+bin/host
+bin/isc-config.sh
+bin/nslookup
+bin/nsupdate
+etc/rndc.conf.sample
+include/dns/a6.h
+include/dns/acl.h
+include/dns/adb.h
+include/dns/byaddr.h
+include/dns/cache.h
+include/dns/callbacks.h
+include/dns/cert.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/dnssec.h
+include/dns/enumclass.h
+include/dns/enumtype.h
+include/dns/events.h
+include/dns/fixedname.h
+include/dns/journal.h
+include/dns/keyflags.h
+include/dns/keytable.h
+include/dns/keyvalues.h
+include/dns/lib.h
+include/dns/log.h
+include/dns/master.h
+include/dns/masterdump.h
+include/dns/message.h
+include/dns/name.h
+include/dns/ncache.h
+include/dns/nxt.h
+include/dns/peer.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/sdb.h
+include/dns/secalg.h
+include/dns/secproto.h
+include/dns/soa.h
+include/dns/ssu.h
+include/dns/tcpmsg.h
+include/dns/time.h
+include/dns/tkey.h
+include/dns/tsig.h
+include/dns/ttl.h
+include/dns/types.h
+include/dns/validator.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/lib.h
+include/dst/result.h
+include/isc/app.h
+include/isc/assertions.h
+include/isc/base64.h
+include/isc/bitstring.h
+include/isc/boolean.h
+include/isc/buffer.h
+include/isc/bufferlist.h
+include/isc/commandline.h
+include/isc/condition.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/heap.h
+include/isc/hex.h
+include/isc/hmacmd5.h
+include/isc/int.h
+include/isc/interfaceiter.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/offset.h
+include/isc/once.h
+include/isc/ondestroy.h
+include/isc/os.h
+include/isc/platform.h
+include/isc/print.h
+include/isc/quota.h
+include/isc/random.h
+include/isc/ratelimiter.h
+include/isc/refcount.h
+include/isc/region.h
+include/isc/resource.h
+include/isc/result.h
+include/isc/resultclass.h
+include/isc/rwlock.h
+include/isc/serial.h
+include/isc/sha1.h
+include/isc/sockaddr.h
+include/isc/socket.h
+include/isc/stdio.h
+include/isc/stdtime.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/types.h
+include/isc/util.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/isccfg/cfg.h
+include/isccfg/check.h
+include/isccfg/log.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
+lib/libdns.a
+lib/libisc.a
+lib/libisccc.a
+lib/libisccfg.a
+lib/liblwres.a
+sbin/dnssec-keygen
+sbin/dnssec-makekeyset
+sbin/dnssec-signkey
+sbin/dnssec-signzone
+sbin/lwresd
+sbin/named
+sbin/named-checkconf
+sbin/named-checkzone
+sbin/rndc
+sbin/rndc-confgen
+%%PORTDOCS%%share/doc/bind9/CHANGES
+%%PORTDOCS%%share/doc/bind9/COPYRIGHT
+%%PORTDOCS%%share/doc/bind9/FAQ
+%%PORTDOCS%%share/doc/bind9/README
+%%PORTDOCS%%share/doc/bind9/arm/Bv9ARM.ch01.html
+%%PORTDOCS%%share/doc/bind9/arm/Bv9ARM.ch02.html
+%%PORTDOCS%%share/doc/bind9/arm/Bv9ARM.ch03.html
+%%PORTDOCS%%share/doc/bind9/arm/Bv9ARM.ch04.html
+%%PORTDOCS%%share/doc/bind9/arm/Bv9ARM.ch05.html
+%%PORTDOCS%%share/doc/bind9/arm/Bv9ARM.ch06.html
+%%PORTDOCS%%share/doc/bind9/arm/Bv9ARM.ch07.html
+%%PORTDOCS%%share/doc/bind9/arm/Bv9ARM.ch08.html
+%%PORTDOCS%%share/doc/bind9/arm/Bv9ARM.ch09.html
+%%PORTDOCS%%share/doc/bind9/arm/Bv9ARM.html
+%%PORTDOCS%%share/doc/bind9/misc/dnssec
+%%PORTDOCS%%share/doc/bind9/misc/format-options.pl
+%%PORTDOCS%%share/doc/bind9/misc/ipv6
+%%PORTDOCS%%share/doc/bind9/misc/migration
+%%PORTDOCS%%share/doc/bind9/misc/migration-4to9
+%%PORTDOCS%%share/doc/bind9/misc/options
+%%PORTDOCS%%share/doc/bind9/misc/rfc-compliance
+%%PORTDOCS%%share/doc/bind9/misc/roadmap
+%%PORTDOCS%%share/doc/bind9/misc/sdb
+%%PORTDOCS%%@dirrm share/doc/bind9/arm
+%%PORTDOCS%%@dirrm share/doc/bind9/misc
+%%PORTDOCS%%@dirrm share/doc/bind9
+@dirrm include/dns
+@dirrm include/dst
+@dirrm include/isc
+@dirrm include/isccc
+@dirrm include/isccfg
+@dirrm include/lwres