Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jun 2011 21:22:44 -0700 (PDT)
From:      Josh Carroll <josh.carroll@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        wxs@FreeBSD.org, dougb@FreeBSD.org, Hugo@meiland.nl
Subject:   ports/157752: [NEW PORT] dns/bind97-sdb: The BIND DNS suite with updated DNSSEC and threads
Message-ID:  <201106110422.p5B4MiWB084422@pflog.net>
Resent-Message-ID: <201106110430.p5B4UCgm020077@freefall.freebsd.org>

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

>Number:         157752
>Category:       ports
>Synopsis:       [NEW PORT] dns/bind97-sdb: The BIND DNS suite with updated DNSSEC and threads
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 11 04:30:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Josh Carroll
>Release:        FreeBSD 8.2-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD pflog.net 8.2-RELEASE-p2 FreeBSD 8.2-RELEASE-p2 #0: Thu Jun  9 13:39:17 PDT
>Description:
BIND version 9.7 port with support for sdb database drivers, including ldap and postgresql.

This is a re-written merge of the bind9-sdb-* ports and a BIND version bump to 9.7.

WWW: http://www.isc.org/index.pl?/sw/bind/index.php

- Josh <josh.carroll@gmail.com>


Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- bind97-sdb-9.7.3.1.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:
#
#	bind97-sdb
#	bind97-sdb/Makefile
#	bind97-sdb/files
#	bind97-sdb/files/patch-pgsql-bin__named__pgsqldb.c
#	bind97-sdb/files/patch-pgsql-bin__named__main.c
#	bind97-sdb/files/patch-pgsql-bin__named__Makefile.in
#	bind97-sdb/files/patch-ldap-bin__named__Makefile.in
#	bind97-sdb/files/patch-ldap-bin__named__main.c
#	bind97-sdb/pkg-descr
#
echo c - bind97-sdb
mkdir -p bind97-sdb > /dev/null 2>&1
echo x - bind97-sdb/Makefile
sed 's/^X//' >bind97-sdb/Makefile << '569ca19a071bc321a12df34374c02cae'
X# New ports collection makefile for:	bind97-sdb-postgresql
X# Date created:		2011-06-10
X# Whom:			Josh Carroll <josh.carroll@gmail.com>
X#
X# $FreeBSD: ports/dns/bind97-sdb-postgresql/Makefile,v 1.1 2011/06/10 11:43:03 jkcarrol Exp $
X#
X
XPORTNAME=	bind97-sdb
X
XMAINTAINER=		josh.carroll@gmail.com
X
XMASTERDIR=		${.CURDIR}/../bind97
X
XCONFLICTS=	bind9? host-*
X
X# the user may pick one and only one SDB driver. Depending on which
X#	option the user picks, the appropriate patches will be applied
X#	so bind is built with the proper driver
XOPTIONS=	PGSQL "Build with PostgreSQL SDB support" on \
X			LDAP "Build with LDAP SDB support" off \
X			DIRDB "Build with dirdb SDB support" off \
X			BDB "Build with bdb SDB support" off \
X			SQLITE "Build with sqlite SDB support" off \
X			TCL "Build with tcldb SDB support" off \
X			TIMEDB "Build with timedb SDB support" off
X
X.include <bsd.port.options.mk>
X
XOUR_PATCHDIR:=${.CURDIR}/files
X
X# check that one and ONLY one of the SDB options is set
X# the value of SDB_DRIVER should match the name of the
X#	contrib/sdb dir
Xnum_sdb_types:=SDB
X.if defined(WITH_PGSQL)
Xnum_sdb_types+=1
XUSE_PGSQL=		yes
XEXTRA_PATCHES+=${OUR_PATCHDIR}/patch-pgsql-bin__named__Makefile.in \
X				${OUR_PATCHDIR}/patch-pgsql-bin__named__main.c \
X				${OUR_PATCHDIR}/patch-pgsql-bin__named__pgsqldb.c
XSDB_DRIVER=pgsql
XSDB_DRIVER_FILES=pgsqldb.c pgsqldb.h
X.endif
X
X.if defined(WITH_LDAP)
Xnum_sdb_types+=1
XUSE_OPENLDAP=	yes
XEXTRA_PATCHES+=${OUR_PATCHDIR}/patch-ldap-bin__named__Makefile.in \
X				${OUR_PATCHDIR}/patch-ldap-bin__named__main.c
XSDB_DRIVER=ldap
XSDB_DRIVER_FILES=ldapdb.c
X.endif
X
X.if defined(WITH_DIRDB)
Xnum_sdb_types+=1
XSDB_DRIVER=dir
XSDB_DRIVER_FILES=
XIGNORE=This port does not yet support SDB DIRDB
X.endif
X
X.if defined(WITH_BDB)
Xnum_sdb_types+=1
XSDB_DRIVER=bdb
XSDB_DRIVER_FILES=
XIGNORE=This port does not yet support SDB BDB
X.endif
X
X.if defined(WITH_SQLITE)
Xnum_sdb_types+=1
XSDB_DRIVER=sqlite
XSDB_DRIVER_FILES=
XIGNORE=This port does not yet support SDB SQLITE
X.endif
X
X.if defined(WITH_TCL)
Xnum_sdb_types+=1
XSDB_DRIVER=tcldb
XSDB_DRIVER_FILES=
XIGNORE=This port does not yet support SDB TCLDB
X.endif
X
X.if defined(WITH_TIMEDB)
Xnum_sdb_types+=1
XSDB_DRIVER=timedb
XSDB_DRIVER_FILES=
XIGNORE=This port does not yet support SDB TIMEDB
X.endif
X
X# if one and only 1 of the SDB options is set
X#	then the value of ${num_sdb_types} will be "SDB 1"
X.if ${num_sdb_types} == "SDB"
XIGNORE=You must select one SDB database type : DEBUG 1: ->${num_sdb_types}<-
X.else
X.	if ${num_sdb_types} != "SDB 1"
XIGNORE=You have selected more than one SDB database type : DEBUG 2: ->${num_sdb_types}<-
X.   endif
X.endif
X
Xpre-patch:
X.for FILE in ${SDB_DRIVER_FILES}
X	@${CP} ${WRKSRC}/contrib/sdb/${SDB_DRIVER}/${FILE} ${WRKSRC}/bin/named
X.endfor
X
X.include "${MASTERDIR}/Makefile"
569ca19a071bc321a12df34374c02cae
echo c - bind97-sdb/files
mkdir -p bind97-sdb/files > /dev/null 2>&1
echo x - bind97-sdb/files/patch-pgsql-bin__named__pgsqldb.c
sed 's/^X//' >bind97-sdb/files/patch-pgsql-bin__named__pgsqldb.c << 'ff5a61cff2be760236b47c8fddabe709'
X--- bin/named/pgsqldb.c.orig	2011-06-10 12:54:44.000000000 -0700
X+++ bin/named/pgsqldb.c	2011-06-10 12:56:42.000000000 -0700
X@@ -23,7 +23,7 @@
X #include <string.h>
X #include <stdlib.h>
X 
X-#include <pgsql/libpq-fe.h>
X+#include <libpq-fe.h>
X 
X #include <isc/mem.h>
X #include <isc/print.h>
ff5a61cff2be760236b47c8fddabe709
echo x - bind97-sdb/files/patch-pgsql-bin__named__main.c
sed 's/^X//' >bind97-sdb/files/patch-pgsql-bin__named__main.c << '528b5c2f7e101d1da4e53e4946adc303'
X--- bin/named/main.c.orig	2011-06-10 10:18:35.000000000 -0700
X+++ bin/named/main.c	2011-06-10 10:03:45.000000000 -0700
X@@ -74,6 +74,7 @@
X  * Include header files for database drivers here.
X  */
X /* #include "xxdb.h" */
X+#include <pgsqldb.h>
X 
X /*
X  * Include DLZ drivers if appropriate.
X@@ -841,6 +842,7 @@
X 	 * Add calls to register sdb drivers here.
X 	 */
X 	/* xxdb_init(); */
X+	pgsqldb_init();
X 
X #ifdef DLZ
X 	/*
X@@ -867,6 +869,7 @@
X 	 * Add calls to unregister sdb drivers here.
X 	 */
X 	/* xxdb_clear(); */
X+	pgsqldb_clear();
X 
X #ifdef DLZ
X 	/*
528b5c2f7e101d1da4e53e4946adc303
echo x - bind97-sdb/files/patch-pgsql-bin__named__Makefile.in
sed 's/^X//' >bind97-sdb/files/patch-pgsql-bin__named__Makefile.in << '581179fc370dd99553c87512a74e7e9a'
X--- bin/named/Makefile.in.orig	2011-06-10 10:18:29.000000000 -0700
X+++ bin/named/Makefile.in	2011-06-10 10:01:43.000000000 -0700
X@@ -28,10 +28,10 @@
X #
X # Add database drivers here.
X #
X-DBDRIVER_OBJS =
X-DBDRIVER_SRCS =
X-DBDRIVER_INCLUDES =
X-DBDRIVER_LIBS =
X+DBDRIVER_OBJS = pgsqldb.@O@
X+DBDRIVER_SRCS = pgsqldb.c
X+DBDRIVER_INCLUDES = -I../../contrib/sdb/pgsql -I${LOCALBASE}/include
X+DBDRIVER_LIBS = -L${LOCALBASE}/lib -lpq
X 
X DLZ_DRIVER_DIR =	${top_srcdir}/contrib/dlz/drivers
X 
581179fc370dd99553c87512a74e7e9a
echo x - bind97-sdb/files/patch-ldap-bin__named__Makefile.in
sed 's/^X//' >bind97-sdb/files/patch-ldap-bin__named__Makefile.in << '5faa0c4f8eb9391fb3e38ff03b723db1'
X--- bin/named/Makefile.in.orig	2011-06-10 18:17:33.000000000 -0700
X+++ bin/named/Makefile.in	2011-06-10 18:19:54.000000000 -0700
X@@ -28,10 +28,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../../contrib/sdb/ldap -I${LOCALBASE}include
X+DBDRIVER_LIBS = -L${LOCALBASE}/lib -lldap -llber
X 
X DLZ_DRIVER_DIR =	${top_srcdir}/contrib/dlz/drivers
X 
5faa0c4f8eb9391fb3e38ff03b723db1
echo x - bind97-sdb/files/patch-ldap-bin__named__main.c
sed 's/^X//' >bind97-sdb/files/patch-ldap-bin__named__main.c << 'da92751361fa98c9608d11d8c0bb2f29'
X--- bin/named/main.c.orig	2008-10-23 18:28:08.000000000 -0700
X+++ bin/named/main.c	2011-06-10 16:47:50.000000000 -0700
X@@ -73,6 +73,7 @@
X  * Include header files for database drivers here.
X  */
X /* #include "xxdb.h" */
X+#include <ldapdb.h> 
X 
X /*
X  * Include DLZ drivers if appropriate.
X@@ -716,6 +717,7 @@
X 	 * Add calls to register sdb drivers here.
X 	 */
X 	/* xxdb_init(); */
X+	ldapdb_init();
X 
X #ifdef DLZ
X 	/*
X@@ -742,6 +744,7 @@
X 	 * Add calls to unregister sdb drivers here.
X 	 */
X 	/* xxdb_clear(); */
X+	ldapdb_clear();
X 
X #ifdef DLZ
X 	/*
da92751361fa98c9608d11d8c0bb2f29
echo x - bind97-sdb/pkg-descr
sed 's/^X//' >bind97-sdb/pkg-descr << 'ab28763df9866b893c4494dbd7ac90e5'
XBIND version 9.7 port with support for sdb database drivers, including ldap and postgresql.
X
XThis is a re-written merge of the bind9-sdb-* ports and a BIND version bump to 9.7.
X
XWWW: http://www.isc.org/index.pl?/sw/bind/index.php
X
X- Josh <josh.carroll@gmail.com>
X
ab28763df9866b893c4494dbd7ac90e5
exit
--- bind97-sdb-9.7.3.1.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?201106110422.p5B4MiWB084422>