Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 2003 04:45:35 +0100 (BST)
From:      Bruce M Simpson <bms@spc.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/50767: New port: ldap2dns - maintain DNS zones in LDAP directories
Message-ID:  <20030410034535.51DC949D@saboteur.dollah.com>
Resent-Message-ID: <200304100350.h3A3o746093090@freefall.freebsd.org>

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

>Number:         50767
>Category:       ports
>Synopsis:       New port: ldap2dns - maintain DNS zones in LDAP directories
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 09 20:50:07 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Bruce M Simpson
>Release:        FreeBSD 5.0-RELEASE-p6 i386
>Organization:
>Environment:
System: FreeBSD saboteur.dollah.com 5.0-RELEASE-p6 FreeBSD 5.0-RELEASE-p6 #0: Fri Mar 28 09:51:11 GMT 2003 root@saboteur.dollah.com:/usr/src/sys/i386/compile/SABOTEUR_GEOM i386


	
>Description:
	ldap2dns facilitates easier management of DNS zones by enabling them
	to be stored in LDAP directories, which allows you to use whatever
	LDAP browser/editor you want for maintaining them.

	Run it in a cron job to regularly update tinydns or BIND 8 DNS
	zone files.
>How-To-Repeat:
	
>Fix:

	

--- ldap2dns.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:
#
#	ldap2dns
#	ldap2dns/Makefile
#	ldap2dns/pkg-descr
#	ldap2dns/pkg-comment
#	ldap2dns/pkg-plist
#	ldap2dns/distinfo
#	ldap2dns/files
#	ldap2dns/files/patch-Makefile
#
echo c - ldap2dns
mkdir -p ldap2dns > /dev/null 2>&1
echo x - ldap2dns/Makefile
sed 's/^X//' >ldap2dns/Makefile << 'END-of-ldap2dns/Makefile'
X# New ports collection makefile for:    ldap2dns
X# Date created:         04 March 2002
X# Whom:                 Bruce M Simpson <bms@spc.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=       ldap2dns
XPORTVERSION=    0.2.6
XCATEGORIES=     net
XMASTER_SITES=   http://ldap2dns.tiscover.com/
X
XMAINTAINER=     bms@spc.org
XCOMMENT=	"Maintain DNS zones using an LDAP directory"
X
X.if defined(WITH_OPENLDAP21)
XLIB_DEPENDS=	ldap.2:${PORTSDIR}/net/openldap21
X.elif defined(WITH_OPENLDAP20)
XLIB_DEPENDS=	ldap.2:${PORTSDIR}/net/openldap20
X.else
XLIB_DEPENDS=	ldap.1:${PORTSDIR}/net/openldap12
X.endif
XRUN_DEPENDS=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/DNS/Header.pm:${PORTSDIR}/net/p5-Net-DNS \
X		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap
X
XUSE_GMAKE=	defined
XUSE_PERL5=	defined
X
XMAKE_ENV  = "INC=-I$(PREFIX)/include"
XMAKE_ENV += "LIB=-L$(PREFIX)/lib"
X
Xdo-install:
X	${MKDIR} ${DATADIR}
X	${INSTALL_SCRIPT} ${WRKSRC}/ldap2dns ${PREFIX}/bin
X	${INSTALL_SCRIPT} ${WRKSRC}/ldap2dnsd ${PREFIX}/bin
X	${INSTALL_DATA} ${WRKSRC}/dns.at.conf ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/dns.oc.conf ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/dns.schema ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/example.ldif ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/README.html ${DATADIR}
X	${INSTALL_SCRIPT} ${WRKSRC}/ldap2tinydns-conf ${DATADIR}
X	${INSTALL_SCRIPT} ${WRKSRC}/import.pl ${DATADIR}
X
X.include <bsd.port.mk>
END-of-ldap2dns/Makefile
echo x - ldap2dns/pkg-descr
sed 's/^X//' >ldap2dns/pkg-descr << 'END-of-ldap2dns/pkg-descr'
XFrom the website:
X
Xldap2dns is a program to create DNS (Domain Name Service) records directly
Xfrom a LDAP directory. ldap2dns is designed to write ASCII data files used
Xby tinydns from the djbdns package, but also may be used to write .db-files
Xused by named as found in the BIND package.
X
XWWW: http://ldap2dns.tiscover.com/
X
XBruce
Xbms@spc.org
END-of-ldap2dns/pkg-descr
echo x - ldap2dns/pkg-comment
sed 's/^X//' >ldap2dns/pkg-comment << 'END-of-ldap2dns/pkg-comment'
XMaintain DNS zones using an LDAP directory
END-of-ldap2dns/pkg-comment
echo x - ldap2dns/pkg-plist
sed 's/^X//' >ldap2dns/pkg-plist << 'END-of-ldap2dns/pkg-plist'
Xbin/ldap2dns
Xbin/ldap2dnsd
Xshare/ldap2dns/README.html
Xshare/ldap2dns/dns.at.conf
Xshare/ldap2dns/dns.oc.conf
Xshare/ldap2dns/dns.schema
Xshare/ldap2dns/example.ldif
Xshare/ldap2dns/import.pl
Xshare/ldap2dns/ldap2tinydns-conf
X@dirrm share/ldap2dns
END-of-ldap2dns/pkg-plist
echo x - ldap2dns/distinfo
sed 's/^X//' >ldap2dns/distinfo << 'END-of-ldap2dns/distinfo'
XMD5 (ldap2dns-0.2.6.tar.gz) = 398b1ea7dfafa43617315886ed0ea6f0
END-of-ldap2dns/distinfo
echo c - ldap2dns/files
mkdir -p ldap2dns/files > /dev/null 2>&1
echo x - ldap2dns/files/patch-Makefile
sed 's/^X//' >ldap2dns/files/patch-Makefile << 'END-of-ldap2dns/files/patch-Makefile'
X--- Makefile.orig	Tue Mar  4 09:01:09 2003
X+++ Makefile	Tue Mar  4 09:07:18 2003
X@@ -6,7 +6,7 @@
X OBJS=ldap2dns.o 
X LIBS=-lldap -llber
X LD=gcc 
X-LDFLAGS=
X+LDFLAGS= $(LIB)
X INSTALL_PREFIX=
X PREFIXDIR=$(INSTALL_PREFIX)/usr
X LDAPCONFDIR=$(INSTALL_PREFIX)/etc/openldap
END-of-ldap2dns/files/patch-Makefile
exit
--- ldap2dns.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?20030410034535.51DC949D>