Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  7 Sep 2003 19:19:11 +0200
From:      Clement Laforet <sheepkiller@cultdeadsheep.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Clement Laforet <sheepkiller@cultdeadsheep.org>
Subject:   ports/56565: [new port] dns/bind9-sdb-mysql: BIND 9 patch to supports zones storage in a MySQL database
Message-ID:  <20030907171916.5760243FEA@mx1.FreeBSD.org>
Resent-Message-ID: <200309071720.h87HKCun037128@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         56565
>Category:       ports
>Synopsis:       [new port] dns/bind9-sdb-mysql: BIND 9 patch to supports zones storage in a MySQL database
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 07 10:20:11 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Clement Laforet
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
cotds.org
>Environment:
System: FreeBSD lucifer.cultdeadsheep.org 5.1-CURRENT FreeBSD 5.1-CURRENT #2: Mon Sep 1 10:07:15 CEST 2003 root@lucifer.cultdeadsheep.org:/usr/obj/usr/src/sys/LUCIFER i386


	
>Description:
	bind9-sdb-mysql is provide a simple support for MySQL database in bind version 9. 
	Currently it supports only zones stored in MySQL.
	
>How-To-Repeat:
	N/A.
>Fix:

	

--- bind9-sdb-mysql.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	bind9-sdb-mysql
#	bind9-sdb-mysql/Makefile
#	bind9-sdb-mysql/distinfo
#	bind9-sdb-mysql/pkg-descr
#	bind9-sdb-mysql/pkg-message
#	bind9-sdb-mysql/pkg-plist
#
echo c - bind9-sdb-mysql
mkdir -p bind9-sdb-mysql > /dev/null 2>&1
echo x - bind9-sdb-mysql/Makefile
sed 's/^X//' >bind9-sdb-mysql/Makefile << 'END-of-bind9-sdb-mysql/Makefile'
X# New ports collection makefile for:	bind9-sdb-mysql
X# Date created:				6 Sep 2003
X# Whom:					Clement Laforet <sheepkiller@cultdeadsheep.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	bind9
XPORTVERSION=	9.2.2
XCATEGORIES=	dns ipv6
XMASTER_SITES=	${MASTER_SITE_ISC}
XMASTER_SITE_SUBDIR=	bind9/${ISCVERSION}
XPKGNAMESUFFIX=	-sdb-mysql
XDISTNAME=	bind-${ISCVERSION}
X
XPATCH_SITES=	http://gw.netbastards.org/bm/
XPATCHFILES=	bind-9.2.2-mysql.patch
X
XMAINTAINER=	sheepkiller@cultdeadsheep.org
XCOMMENT=	BIND DNS 9 server which supports a MySQL backend
X
X# ISC releases things like 9.2.2rc1, which our versioning doesn't like
XISCVERSION=	9.2.2
X
XUSE_MYSQL=	YES
XUSE_REINPLACE=	YES
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--localstatedir=/var --disable-linux-caps --disable-threads \
X		--with-randomdev=/dev/random
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} >= 400014
XUSE_OPENSSL=	yes
XCONFIGURE_ARGS+=	--with-openssl=${OPENSSLBASE}
X.endif
X
X.if defined(PORT_REPLACES_BASE_BIND9)
XPKGNAMESUFFIX=	-base
XPREFIX=		/usr
XBIND_DESTETC=	/etc/namedb
XCONFIGURE_ARGS+=	--prefix=${PREFIX} \
X			--sysconfdir=${BIND_DESTETC} \
X			--mandir=${MANPREFIX}/man
X.else
XBIND_DESTETC=	${PREFIX}/etc
X.endif
X
XPLIST_SUB=	BIND_DESTETC="${BIND_DESTETC}"
X
XMAN1=	dig.1 host.1
XMAN3=	lwres.3 lwres_addr_parse.3 lwres_buffer.3 lwres_buffer_add.3 \
X	lwres_buffer_back.3 lwres_buffer_clear.3 lwres_buffer_first.3 \
X	lwres_buffer_forward.3 lwres_buffer_getmem.3 lwres_buffer_getuint16.3 \
X	lwres_buffer_getuint32.3 lwres_buffer_getuint8.3 lwres_buffer_init.3 \
X	lwres_buffer_invalidate.3 lwres_buffer_putmem.3 \
X	lwres_buffer_putuint16.3 lwres_buffer_putuint32.3 \
X	lwres_buffer_putuint8.3 lwres_buffer_subtract.3 lwres_conf_clear.3 \
X	lwres_conf_get.3 lwres_conf_init.3 lwres_conf_parse.3 \
X	lwres_conf_print.3 lwres_config.3 lwres_context.3 \
X	lwres_context_allocmem.3 lwres_context_create.3 \
X	lwres_context_destroy.3 lwres_context_freemem.3 \
X	lwres_context_initserial.3 lwres_context_nextserial.3 \
X	lwres_context_sendrecv.3 lwres_endhostent.3 lwres_endhostent_r.3 \
X	lwres_freeaddrinfo.3 lwres_freehostent.3 lwres_gabn.3 \
X	lwres_gabnrequest_free.3 lwres_gabnrequest_parse.3 \
X	lwres_gabnrequest_render.3 lwres_gabnresponse_free.3 \
X	lwres_gabnresponse_parse.3 lwres_gabnresponse_render.3 \
X	lwres_gai_strerror.3 lwres_getaddrinfo.3 lwres_getaddrsbyname.3 \
X	lwres_gethostbyaddr.3 lwres_gethostbyaddr_r.3 lwres_gethostbyname.3 \
X	lwres_gethostbyname2.3 lwres_gethostbyname_r.3 lwres_gethostent.3 \
X	lwres_gethostent_r.3 lwres_getipnode.3 lwres_getipnodebyaddr.3 \
X	lwres_getipnodebyname.3 lwres_getnamebyaddr.3 lwres_getnameinfo.3 \
X	lwres_getrrsetbyname.3 lwres_gnba.3 lwres_gnbarequest_free.3 \
X	lwres_gnbarequest_parse.3 lwres_gnbarequest_render.3 \
X	lwres_gnbaresponse_free.3 lwres_gnbaresponse_parse.3 \
X	lwres_gnbaresponse_render.3 lwres_herror.3 lwres_hstrerror.3 \
X	lwres_inetntop.3 lwres_lwpacket_parseheader.3 \
X	lwres_lwpacket_renderheader.3 lwres_net_ntop.3 lwres_noop.3 \
X	lwres_nooprequest_free.3 lwres_nooprequest_parse.3 \
X	lwres_nooprequest_render.3 lwres_noopresponse_free.3 \
X	lwres_noopresponse_parse.3 lwres_noopresponse_render.3 \
X	lwres_packet.3 lwres_resutil.3 lwres_sethostent.3 \
X	lwres_sethostent_r.3 lwres_string_parse.3
XMAN5=	rndc.conf.5
XMAN8=	dnssec-keygen.8 dnssec-makekeyset.8 dnssec-signkey.8 dnssec-signzone.8 \
X	lwresd.8 named-checkconf.8 named-checkzone.8 named.8 nsupdate.8 \
X	rndc-confgen.8 rndc.8
X
XWRKSRC=	${WRKDIR}/bind-${ISCVERSION}
Xpost-patch:
X.for FILE in check/named-checkconf.8 named/named.8 nsupdate/nsupdate.8 \
X	rndc/rndc.8
X	@ ${MV} ${WRKSRC}/bin/${FILE} ${WRKSRC}/bin/${FILE}.Dist
X	@ ${SED} -e 's#/etc/named.conf#${BIND_DESTETC}/named.conf#g' \
X		-e 's#/etc/rndc.conf#${BIND_DESTETC}/rndc.conf#g' \
X		${WRKSRC}/bin/${FILE}.Dist > ${WRKSRC}/bin/${FILE}
X.endfor
X	${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g' ${WRKSRC}/bin/named/mysqldb.c
X
Xpost-install:
X	${INSTALL_DATA} ${WRKSRC}/bin/rndc/rndc.conf \
X		${BIND_DESTETC}/rndc.conf.sample
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}/arm ${DOCSDIR}/misc
X	${INSTALL_DATA} ${WRKSRC}/doc/arm/Bv9ARM*html ${DOCSDIR}/arm
X	${INSTALL_DATA} ${WRKSRC}/doc/misc/[a-z]* ${DOCSDIR}/misc
X	${CP} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/FAQ \
X		${WRKSRC}/README ${DOCSDIR}/
X.endif
X
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-bind9-sdb-mysql/Makefile
echo x - bind9-sdb-mysql/distinfo
sed 's/^X//' >bind9-sdb-mysql/distinfo << 'END-of-bind9-sdb-mysql/distinfo'
XMD5 (bind-9.2.2.tar.gz) = 6ea7d64a0856893ab3eb541ab7bbc725
XMD5 (bind-9.2.2-mysql.patch) = dca1f666d891ce36c77564bbf7eaeeb4
END-of-bind9-sdb-mysql/distinfo
echo x - bind9-sdb-mysql/pkg-descr
sed 's/^X//' >bind9-sdb-mysql/pkg-descr << 'END-of-bind9-sdb-mysql/pkg-descr'
Xbind9-sdb-mysql provides a MySQL Simplified Database Interface (sdb) to bind9.
XSo, zones can be stored in a MySQL database.
X
XWWW: http://gw.netbastards.org/bm/
END-of-bind9-sdb-mysql/pkg-descr
echo x - bind9-sdb-mysql/pkg-message
sed 's/^X//' >bind9-sdb-mysql/pkg-message << 'END-of-bind9-sdb-mysql/pkg-message'
X*************************************************************************
X*           _  _____ _____ _____ _   _ _____ ___ ___  _   _ 		*
X*	   / \|_   _|_   _| ____| \ | |_   _|_ _/ _ \| \ | |		*
X*	  / _ \ | |   | | |  _| |  \| | | |  | | | | |  \| |		*
X*	 / ___ \| |   | | | |___| |\  | | |  | | |_| | |\  |		*
X*	/_/   \_\_|   |_| |_____|_| \_| |_| |___\___/|_| \_|		*
X*									*
X*	BIND 9 requires a good source of randomness to operate.		*
X*	It also requires configuration of rndc, including a		*
X*	"secret" key.  If you are using FreeBSD 4.x, visit		*
X*	http://people.freebsd.org/~dougb/randomness.html for		*
X*	information on how to set up entropy gathering. Users		*
X*	of FreeBSD 5.x do not need to perform this step. If		*
X*	you are running BIND 9 in a chroot environment, make		*
X*	sure that there is a /dev/random device in the chroot.		*
X*									*
X*	The easiest, and most secure way to configure rndc is		*
X*	to run 'rndc-confgen -a' which will generate the proper		*
X*	conf file, with a new random key, and appropriate file		*
X*	permissions.							*
X*									*
X*************************************************************************
END-of-bind9-sdb-mysql/pkg-message
echo x - bind9-sdb-mysql/pkg-plist
sed 's/^X//' >bind9-sdb-mysql/pkg-plist << 'END-of-bind9-sdb-mysql/pkg-plist'
Xbin/dig
Xbin/host
Xbin/isc-config.sh
Xbin/nslookup
Xbin/nsupdate
Xinclude/dns/a6.h
Xinclude/dns/acl.h
Xinclude/dns/adb.h
Xinclude/dns/byaddr.h
Xinclude/dns/cache.h
Xinclude/dns/callbacks.h
Xinclude/dns/cert.h
Xinclude/dns/compress.h
Xinclude/dns/db.h
Xinclude/dns/dbiterator.h
Xinclude/dns/dbtable.h
Xinclude/dns/diff.h
Xinclude/dns/dispatch.h
Xinclude/dns/dnssec.h
Xinclude/dns/enumclass.h
Xinclude/dns/enumtype.h
Xinclude/dns/events.h
Xinclude/dns/fixedname.h
Xinclude/dns/journal.h
Xinclude/dns/keyflags.h
Xinclude/dns/keytable.h
Xinclude/dns/keyvalues.h
Xinclude/dns/lib.h
Xinclude/dns/log.h
Xinclude/dns/master.h
Xinclude/dns/masterdump.h
Xinclude/dns/message.h
Xinclude/dns/name.h
Xinclude/dns/ncache.h
Xinclude/dns/nxt.h
Xinclude/dns/peer.h
Xinclude/dns/rbt.h
Xinclude/dns/rcode.h
Xinclude/dns/rdata.h
Xinclude/dns/rdataclass.h
Xinclude/dns/rdatalist.h
Xinclude/dns/rdataset.h
Xinclude/dns/rdatasetiter.h
Xinclude/dns/rdataslab.h
Xinclude/dns/rdatastruct.h
Xinclude/dns/rdatatype.h
Xinclude/dns/request.h
Xinclude/dns/resolver.h
Xinclude/dns/result.h
Xinclude/dns/rootns.h
Xinclude/dns/sdb.h
Xinclude/dns/secalg.h
Xinclude/dns/secproto.h
Xinclude/dns/soa.h
Xinclude/dns/ssu.h
Xinclude/dns/tcpmsg.h
Xinclude/dns/time.h
Xinclude/dns/tkey.h
Xinclude/dns/tsig.h
Xinclude/dns/ttl.h
Xinclude/dns/types.h
Xinclude/dns/validator.h
Xinclude/dns/view.h
Xinclude/dns/xfrin.h
Xinclude/dns/zone.h
Xinclude/dns/zonekey.h
Xinclude/dns/zt.h
Xinclude/dst/dst.h
Xinclude/dst/lib.h
Xinclude/dst/result.h
Xinclude/isc/app.h
Xinclude/isc/assertions.h
Xinclude/isc/base64.h
Xinclude/isc/bitstring.h
Xinclude/isc/boolean.h
Xinclude/isc/buffer.h
Xinclude/isc/bufferlist.h
Xinclude/isc/commandline.h
Xinclude/isc/condition.h
Xinclude/isc/dir.h
Xinclude/isc/entropy.h
Xinclude/isc/error.h
Xinclude/isc/event.h
Xinclude/isc/eventclass.h
Xinclude/isc/file.h
Xinclude/isc/formatcheck.h
Xinclude/isc/fsaccess.h
Xinclude/isc/heap.h
Xinclude/isc/hex.h
Xinclude/isc/hmacmd5.h
Xinclude/isc/int.h
Xinclude/isc/interfaceiter.h
Xinclude/isc/lang.h
Xinclude/isc/lex.h
Xinclude/isc/lfsr.h
Xinclude/isc/lib.h
Xinclude/isc/list.h
Xinclude/isc/log.h
Xinclude/isc/magic.h
Xinclude/isc/md5.h
Xinclude/isc/mem.h
Xinclude/isc/msgcat.h
Xinclude/isc/msgs.h
Xinclude/isc/mutex.h
Xinclude/isc/mutexblock.h
Xinclude/isc/net.h
Xinclude/isc/netaddr.h
Xinclude/isc/netdb.h
Xinclude/isc/offset.h
Xinclude/isc/once.h
Xinclude/isc/ondestroy.h
Xinclude/isc/os.h
Xinclude/isc/platform.h
Xinclude/isc/print.h
Xinclude/isc/quota.h
Xinclude/isc/random.h
Xinclude/isc/ratelimiter.h
Xinclude/isc/refcount.h
Xinclude/isc/region.h
Xinclude/isc/resource.h
Xinclude/isc/result.h
Xinclude/isc/resultclass.h
Xinclude/isc/rwlock.h
Xinclude/isc/serial.h
Xinclude/isc/sha1.h
Xinclude/isc/sockaddr.h
Xinclude/isc/socket.h
Xinclude/isc/stdio.h
Xinclude/isc/stdtime.h
Xinclude/isc/string.h
Xinclude/isc/symtab.h
Xinclude/isc/syslog.h
Xinclude/isc/task.h
Xinclude/isc/taskpool.h
Xinclude/isc/thread.h
Xinclude/isc/time.h
Xinclude/isc/timer.h
Xinclude/isc/types.h
Xinclude/isc/util.h
Xinclude/isccc/alist.h
Xinclude/isccc/base64.h
Xinclude/isccc/cc.h
Xinclude/isccc/ccmsg.h
Xinclude/isccc/events.h
Xinclude/isccc/lib.h
Xinclude/isccc/result.h
Xinclude/isccc/sexpr.h
Xinclude/isccc/symtab.h
Xinclude/isccc/symtype.h
Xinclude/isccc/types.h
Xinclude/isccc/util.h
Xinclude/isccfg/cfg.h
Xinclude/isccfg/check.h
Xinclude/isccfg/log.h
Xinclude/lwres/context.h
Xinclude/lwres/int.h
Xinclude/lwres/ipv6.h
Xinclude/lwres/lang.h
Xinclude/lwres/list.h
Xinclude/lwres/lwbuffer.h
Xinclude/lwres/lwpacket.h
Xinclude/lwres/lwres.h
Xinclude/lwres/net.h
Xinclude/lwres/netdb.h
Xinclude/lwres/platform.h
Xinclude/lwres/result.h
Xlib/libdns.a
Xlib/libisc.a
Xlib/libisccc.a
Xlib/libisccfg.a
Xlib/liblwres.a
Xsbin/dnssec-keygen
Xsbin/dnssec-makekeyset
Xsbin/dnssec-signkey
Xsbin/dnssec-signzone
Xsbin/lwresd
Xsbin/named
Xsbin/named-checkconf
Xsbin/named-checkzone
Xsbin/rndc
Xsbin/rndc-confgen
X%%PORTDOCS%%%%DOCSDIR%%/CHANGES
X%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
X%%PORTDOCS%%%%DOCSDIR%%/FAQ
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/arm/Bv9ARM.ch01.html
X%%PORTDOCS%%%%DOCSDIR%%/arm/Bv9ARM.ch02.html
X%%PORTDOCS%%%%DOCSDIR%%/arm/Bv9ARM.ch03.html
X%%PORTDOCS%%%%DOCSDIR%%/arm/Bv9ARM.ch04.html
X%%PORTDOCS%%%%DOCSDIR%%/arm/Bv9ARM.ch05.html
X%%PORTDOCS%%%%DOCSDIR%%/arm/Bv9ARM.ch06.html
X%%PORTDOCS%%%%DOCSDIR%%/arm/Bv9ARM.ch07.html
X%%PORTDOCS%%%%DOCSDIR%%/arm/Bv9ARM.ch08.html
X%%PORTDOCS%%%%DOCSDIR%%/arm/Bv9ARM.ch09.html
X%%PORTDOCS%%%%DOCSDIR%%/arm/Bv9ARM.html
X%%PORTDOCS%%%%DOCSDIR%%/misc/dnssec
X%%PORTDOCS%%%%DOCSDIR%%/misc/format-options.pl
X%%PORTDOCS%%%%DOCSDIR%%/misc/ipv6
X%%PORTDOCS%%%%DOCSDIR%%/misc/migration
X%%PORTDOCS%%%%DOCSDIR%%/misc/migration-4to9
X%%PORTDOCS%%%%DOCSDIR%%/misc/options
X%%PORTDOCS%%%%DOCSDIR%%/misc/rfc-compliance
X%%PORTDOCS%%%%DOCSDIR%%/misc/roadmap
X%%PORTDOCS%%%%DOCSDIR%%/misc/sdb
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/arm
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/misc
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X@unexec rm -f %%BIND_DESTETC%%/rndc.conf.sample
X@dirrm include/dns
X@dirrm include/dst
X@unexec rmdir %D/include/isc 2>/dev/null || true
X@dirrm include/isccc
X@dirrm include/isccfg
X@dirrm include/lwres
END-of-bind9-sdb-mysql/pkg-plist
exit
--- bind9-sdb-mysql.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030907171916.5760243FEA>