Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Oct 2002 01:51:01 +0900 (JST)
From:      zin <zin@the.ne.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/44269: New port: net/bind9-sdb-ldap: 
Message-ID:  <20021019165101.CF7B0FCA2@chamomile.the.ne.jp>

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

>Number:         44269
>Category:       ports
>Synopsis:       New port: www/apache13-modsnmp: apache-1.3 and mod_snmp patch to apache-1.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 19 10:00:03 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     endou
>Release:        FreeBSD 4.6.2-RELEASE i386
>Organization:
the.ne.jp
>Environment:
System: FreeBSD basil.the.ne.jp 4.7-RELEASE #0: Fri Oct 18 06:02:11 JST 2002 endou@basil.the.ne.jp:/usr/obj/usr/src/sys/FKS i386
>Description:
        sdb is BIND 9 Simplified Database Interface.
        bind-sdb-ldap-0.9 is one of sdb implementation to store
        zone informtion to LDAP.
        BIND-9.2.1 bundle bind-sdb-ldap-0.4 but this port use bind-sdb-ldap-0.9.
>How-To-Repeat:
>Fix:
# 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-ldap
#	bind9-sdb-ldap/Makefile
#	bind9-sdb-ldap/distinfo
#	bind9-sdb-ldap/pkg-comment
#	bind9-sdb-ldap/pkg-descr
#	bind9-sdb-ldap/pkg-plist
#	bind9-sdb-ldap/files
#	bind9-sdb-ldap/files/patch-aa
#	bind9-sdb-ldap/files/patch-ab
#
echo c - bind9-sdb-ldap
mkdir -p bind9-sdb-ldap > /dev/null 2>&1
echo x - bind9-sdb-ldap/Makefile
sed 's/^X//' >bind9-sdb-ldap/Makefile << 'END-of-bind9-sdb-ldap/Makefile'
X# New ports collection makefile for:	bind-sdb-ldap
X# Date created:				19 October 2002
X# Whom:					zin
X#
X# $FreeBSD$
X#
X
XPORTNAME=	bind9-sdb-ldap
XPORTVERSION=	9.2.1
XCATEGORIES=	net ipv6
XMASTER_SITES=	${MASTER_SITE_ISC} \
X		http://www.venaas.priv.no/ldap/bind-sdb/ \
X		${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/bind9/${ISCVERSION}/,}
XMASTER_SITE_SUBDIR=	bind9/${ISCVERSION}
X
XDISTFILES= bind-9.2.1.tar.gz \
X	bind-sdb-ldap-0.9.tar.gz
X
XMAINTAINER=	zin@the.ne.jp
X
XLIB_DEPENDS=	ldap.2:${PORTSDIR}/net/openldap2 \
X		lber.2:${PORTSDIR}/net/openldap2
X
XISCVERSION=	9.2.1
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--localstatedir=/var --disable-linux-caps
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 ${OSVERSION} > 500030
XCONFIGURE_ARGS+=	--enable-threads
X.else
XCONFIGURE_ARGS+=	--disable-threads
X.endif
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}
XDIR=	${WRKSRC}/bin/
X
Xpost-extract:
X	${MV} ${WRKDIR}/bind-sdb-ldap-0.9/ldapdb.c ${WRKSRC}/bin/named/
X	${MV} ${WRKDIR}/bind-sdb-ldap-0.9/ldapdb.h ${WRKSRC}/bin/named/include/
X
Xpost-patch:
X.for FILE in check/named-checkconf.8 named/named.8 nsupdate/nsupdate.8 \
X	rndc/rndc.8
X	@ ${MV} ${DIR}/${FILE} ${DIR}/${FILE}.Dist
X	@ ${SED} -e 's#/etc/named.conf#${PREFIX}/etc/named.conf#g' \
X		-e 's#/etc/rndc.conf#${PREFIX}/etc/rndc.conf#g' \
X		${DIR}/${FILE}.Dist > ${DIR}/${FILE}
X.endfor
X
Xpost-install:
X	${INSTALL_DATA} ${WRKSRC}/bin/rndc/rndc.conf \
X		${PREFIX}/etc/rndc.conf.sample
X
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/doc/bind9/arm
X	${INSTALL_DATA} ${WRKSRC}/doc/arm/Bv9ARM*html \
X		${PREFIX}/share/doc/bind9/arm
X	${MKDIR} ${PREFIX}/share/doc/bind9/misc
X	${INSTALL_DATA} ${WRKSRC}/doc/misc/[a-z]* \
X		${PREFIX}/share/doc/bind9/misc
X	${CP} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/FAQ \
X		${WRKSRC}/README ${PREFIX}/share/doc/bind9/
X.endif
X
X.include <bsd.port.post.mk>
END-of-bind9-sdb-ldap/Makefile
echo x - bind9-sdb-ldap/distinfo
sed 's/^X//' >bind9-sdb-ldap/distinfo << 'END-of-bind9-sdb-ldap/distinfo'
XMD5 (bind-9.2.1.tar.gz) = 692cff6f44e006ce6984b2c286949dd1
XMD5 (bind-sdb-ldap-0.9.tar.gz) = 42e9b1f8c8a12743e4352a4e6b8bd006
END-of-bind9-sdb-ldap/distinfo
echo x - bind9-sdb-ldap/pkg-comment
sed 's/^X//' >bind9-sdb-ldap/pkg-comment << 'END-of-bind9-sdb-ldap/pkg-comment'
XThe BIND9 enabling sdb with ldap
END-of-bind9-sdb-ldap/pkg-comment
echo x - bind9-sdb-ldap/pkg-descr
sed 's/^X//' >bind9-sdb-ldap/pkg-descr << 'END-of-bind9-sdb-ldap/pkg-descr'
XBIND9 with sdb ldap is BIND9 enabling sdb interface with openldap 2.x
X
XBIND-9.2.1 bundled bind-sdb-ldap-0.4
Xbut this ports use bind-sdb-ldap-0.9
X
Xldapdb ldap dnszone schema
Xhttp://www.alternic.org/drafts/drafts-m-n/draft-miller-dns-ldap-schema-00.txt
X
XWWW: http://www.isc.org/products/BIND/bind9.html
XWWW: http://www.venaas.no/ldap/bind-sdb/
X
X-zin
Xzin@the.ne.jp
END-of-bind9-sdb-ldap/pkg-descr
echo x - bind9-sdb-ldap/pkg-plist
sed 's/^X//' >bind9-sdb-ldap/pkg-plist << 'END-of-bind9-sdb-ldap/pkg-plist'
Xbin/dig
Xbin/host
Xbin/nslookup
Xbin/nsupdate
Xbin/isc-config.sh
Xetc/rndc.conf.sample
Xinclude/getopt.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/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/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/mutexblock.h
Xinclude/isc/netaddr.h
Xinclude/isc/ondestroy.h
Xinclude/isc/os.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/string.h
Xinclude/isc/symtab.h
Xinclude/isc/task.h
Xinclude/isc/taskpool.h
Xinclude/isc/timer.h
Xinclude/isc/types.h
Xinclude/isc/util.h
Xinclude/isc/platform.h
Xinclude/isc/dir.h
Xinclude/isc/int.h
Xinclude/isc/net.h
Xinclude/isc/netdb.h
Xinclude/isc/offset.h
Xinclude/isc/stdtime.h
Xinclude/isc/syslog.h
Xinclude/isc/time.h
Xinclude/isc/condition.h
Xinclude/isc/mutex.h
Xinclude/isc/once.h
Xinclude/isc/thread.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/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/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/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/view.h
Xinclude/dns/validator.h
Xinclude/dns/xfrin.h
Xinclude/dns/zone.h
Xinclude/dns/zonekey.h
Xinclude/dns/zt.h
Xinclude/dns/enumclass.h
Xinclude/dns/enumtype.h
Xinclude/dns/rdatastruct.h
Xinclude/dst/dst.h
Xinclude/dst/lib.h
Xinclude/dst/result.h
Xinclude/isccfg/cfg.h
Xinclude/isccfg/check.h
Xinclude/isccfg/log.h
Xinclude/lwres/context.h
Xinclude/lwres/lwbuffer.h
Xinclude/lwres/lwpacket.h
Xinclude/lwres/lwres.h
Xinclude/lwres/result.h
Xinclude/lwres/int.h
Xinclude/lwres/lang.h
Xinclude/lwres/list.h
Xinclude/lwres/ipv6.h
Xinclude/lwres/netdb.h
Xinclude/lwres/platform.h
Xinclude/lwres/net.h
Xlib/libgnugetopt.a
Xlib/libgnugetopt.so.1
Xlib/libgnugetopt.so
Xlib/libisc.a
Xlib/libisccc.a
Xlib/libdns.a
Xlib/libisccfg.a
Xlib/liblwres.a
Xsbin/named
Xsbin/lwresd
Xsbin/rndc
Xsbin/rndc-confgen
Xsbin/dnssec-keygen
Xsbin/dnssec-makekeyset
Xsbin/dnssec-signkey
Xsbin/dnssec-signzone
Xsbin/named-checkconf
Xsbin/named-checkzone
Xshare/doc/bind9/arm/Bv9ARM.ch01.html
Xshare/doc/bind9/arm/Bv9ARM.ch02.html
Xshare/doc/bind9/arm/Bv9ARM.ch03.html
Xshare/doc/bind9/arm/Bv9ARM.ch04.html
Xshare/doc/bind9/arm/Bv9ARM.ch05.html
Xshare/doc/bind9/arm/Bv9ARM.ch06.html
Xshare/doc/bind9/arm/Bv9ARM.ch07.html
Xshare/doc/bind9/arm/Bv9ARM.ch08.html
Xshare/doc/bind9/arm/Bv9ARM.ch09.html
Xshare/doc/bind9/arm/Bv9ARM.html
Xshare/doc/bind9/misc/dnssec
Xshare/doc/bind9/misc/format-options.pl
Xshare/doc/bind9/misc/ipv6
Xshare/doc/bind9/misc/migration
Xshare/doc/bind9/misc/migration-4to9
Xshare/doc/bind9/misc/options
Xshare/doc/bind9/misc/rfc-compliance
Xshare/doc/bind9/misc/roadmap
Xshare/doc/bind9/misc/sdb
Xshare/doc/bind9/README
Xshare/doc/bind9/FAQ
Xshare/doc/bind9/COPYRIGHT
Xshare/doc/bind9/CHANGES
X@dirrm include/isc
X@dirrm include/isccc
X@dirrm include/dns
X@dirrm include/dst
X@dirrm include/isccfg
X@dirrm include/lwres
X@dirrm share/doc/bind9
X@dirrm share/doc/bind9/arm
X@dirrm share/doc/bind9/misc
END-of-bind9-sdb-ldap/pkg-plist
echo c - bind9-sdb-ldap/files
mkdir -p bind9-sdb-ldap/files > /dev/null 2>&1
echo x - bind9-sdb-ldap/files/patch-aa
sed 's/^X//' >bind9-sdb-ldap/files/patch-aa << 'END-of-bind9-sdb-ldap/files/patch-aa'
Xdiff -urN bind9.2.0/files/patch-aa bind9.2.0-sdb-ldap-0.9/files/patch-aa
X--- /usr/ports/net/bind9.2.0/files/patch-aa Thu Jan 1 09:00:00 1970
X+++ bind9/files/patch-aa Fri Apr 19 14:06:54 2002
X@@ -0,0 +1,26 @@
X+--- bin/named/main.c.orig Sun Nov 25 10:48:08 2001
X++++ bin/named/main.c Fri Apr 19 14:01:31 2002
X+@@ -62,6 +62,7 @@
X+ * Include header files for database drivers here.
X+ */
X+ /* #include "xxdb.h" */
X++#include <ldapdb.h>
X+
X+ static isc_boolean_t want_stats = ISC_FALSE;
X+ static char program_name[ISC_DIR_NAMEMAX] = "named";
X+@@ -509,6 +510,7 @@
X+ * Add calls to register sdb drivers here.
X+ */
X+ /* xxdb_init(); */
X++ ldapdb_init();
X+
X+ ns_server_create(ns_g_mctx, &ns_g_server);
X+ }
X+@@ -523,6 +525,7 @@
X+ * Add calls to unregister sdb drivers here.
X+ */
X+ /* xxdb_clear(); */
X++ ldapdb_clear();
X+
X+ isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
X+ ISC_LOG_NOTICE, "exiting");
END-of-bind9-sdb-ldap/files/patch-aa
echo x - bind9-sdb-ldap/files/patch-ab
sed 's/^X//' >bind9-sdb-ldap/files/patch-ab << 'END-of-bind9-sdb-ldap/files/patch-ab'
Xdiff -urN bind9.2.0/files/patch-ab bind9.2.0-sdb-ldap-0.9/files/patch-ab
X--- /usr/ports/net/bind9.2.0/files/patch-ab Thu Jan 1 09:00:00 1970
X+++ bind9/files/patch-ab Fri Apr 19 17:04:02 2002
X@@ -0,0 +1,17 @@
X+--- bin/named/Makefile.in.orig Fri Apr 19 17:01:44 2002
X++++ bin/named/Makefile.in Fri Apr 19 17:03:08 2002
X+@@ -26,10 +26,10 @@
X+ #
X+ # Add database drivers here.
X+ #
X+-DBDRIVER_OBJS =
X+-DBDRIVER_SRCS =
X+-DBDRIVER_INCLUDES =
X+-DBDRIVER_LIBS =
X++DBDRIVER_OBJS = ldapdb.@O@
X++DBDRIVER_SRCS = ldapdb.c
X++DBDRIVER_INCLUDES = -I/usr/local/include
X++DBDRIVER_LIBS = -L/usr/local/lib -lldap -llber -lresolv
X+
X+ CINCLUDES = -I${srcdir}/include -I${srcdir}/unix/include \
X+ ${LWRES_INCLUDES} ${DNS_INCLUDES} \
X
END-of-bind9-sdb-ldap/files/patch-ab
exit

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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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