diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/ldap2dns/Makefile | 45 | ||||
-rw-r--r-- | net/ldap2dns/distinfo | 1 | ||||
-rw-r--r-- | net/ldap2dns/files/patch-Makefile | 15 | ||||
-rw-r--r-- | net/ldap2dns/pkg-descr | 11 | ||||
-rw-r--r-- | net/ldap2dns/pkg-plist | 8 |
6 files changed, 81 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index d4561fb7de4d..92f8dee46756 100644 --- a/net/Makefile +++ b/net/Makefile @@ -253,6 +253,7 @@ SUBDIR += l2tpd SUBDIR += lam SUBDIR += lambdamoo + SUBDIR += ldap2dns SUBDIR += ldapdiff SUBDIR += ldapsdk SUBDIR += lft diff --git a/net/ldap2dns/Makefile b/net/ldap2dns/Makefile new file mode 100644 index 000000000000..464b82a8a47d --- /dev/null +++ b/net/ldap2dns/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: ldap2dns +# Date created: 29 September 2003 +# Whom: Bruce M Simpson <bms@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= ldap2dns +PORTVERSION= 0.3.1 +CATEGORIES= net +MASTER_SITES= http://ldap2dns.tiscover.com/ + +MAINTAINER= bms@FreeBSD.org +COMMENT= Maintain DNS zones using an LDAP directory + +WITH_OPENLDAP_VER?= 12 +.if ${WITH_OPENLDAP_VER} == "21" +LIB_DEPENDS= ldap.2:${PORTSDIR}/net/openldap21-client +.elif ${WITH_OPENLDAP_VER} == "20" +LIB_DEPENDS= ldap.2:${PORTSDIR}/net/openldap20-client +.elif ${WITH_OPENLDAP_VER} == "12" +LIB_DEPENDS= ldap.1:${PORTSDIR}/net/openldap12 +.endif + +RUN_DEPENDS= ${SITE_PERL}/Net/DNS/Header.pm:${PORTSDIR}/dns/p5-Net-DNS \ + ${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap + +USE_GMAKE=yes +USE_PERL5=yes + +MAKE_ENV+=PREFIX=$(PREFIX) +MAKE_ENV+=INC=-I$(PREFIX)/include +MAKE_ENV+=LIB=-L$(PREFIX)/lib + +do-install: + ${MKDIR} ${DATADIR} + ${INSTALL_SCRIPT} ${WRKSRC}/ldap2dns ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/ldap2dnsd ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/dns.schema ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/example.ldif ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/README.html ${DATADIR} + ${INSTALL_SCRIPT} ${WRKSRC}/ldap2tinydns-conf ${DATADIR} + ${INSTALL_SCRIPT} ${WRKSRC}/import.pl ${DATADIR} + +.include <bsd.port.mk> diff --git a/net/ldap2dns/distinfo b/net/ldap2dns/distinfo new file mode 100644 index 000000000000..79776b049676 --- /dev/null +++ b/net/ldap2dns/distinfo @@ -0,0 +1 @@ +MD5 (ldap2dns-0.3.1.tar.gz) = 3f661468159633a8fdd843db2af97721 diff --git a/net/ldap2dns/files/patch-Makefile b/net/ldap2dns/files/patch-Makefile new file mode 100644 index 000000000000..3cceb7e203d8 --- /dev/null +++ b/net/ldap2dns/files/patch-Makefile @@ -0,0 +1,15 @@ +--- Makefile.orig Tue Aug 13 15:58:27 2002 ++++ Makefile Mon Sep 29 01:33:57 2003 +@@ -6,9 +6,9 @@ + CFLAGS=$(INC) -DVERSION='"$(VERSION)"' + LIBS=-lldap -llber + LD=gcc +-LDFLAGS= +-INSTALL_PREFIX= +-PREFIXDIR=$(INSTALL_PREFIX)/usr ++LDFLAGS= $(LIB) ++INSTALL_PREFIX=$(PREFIX) ++PREFIXDIR=$(INSTALL_PREFIX) + LDAPCONFDIR=$(INSTALL_PREFIX)/etc/openldap + TARFILE=/usr/src/redhat/SOURCES/ldap2dns-$(VERSION).tar.gz + SPECFILE=ldap2dns.spec diff --git a/net/ldap2dns/pkg-descr b/net/ldap2dns/pkg-descr new file mode 100644 index 000000000000..fceec3759216 --- /dev/null +++ b/net/ldap2dns/pkg-descr @@ -0,0 +1,11 @@ +From the website: + +ldap2dns is a program to create DNS (Domain Name Service) records directly +from a LDAP directory. ldap2dns is designed to write ASCII data files used +by tinydns from the djbdns package, but also may be used to write .db-files +used by named as found in the BIND package. + +WWW: http://ldap2dns.tiscover.com/ + +Bruce +bms@spc.org diff --git a/net/ldap2dns/pkg-plist b/net/ldap2dns/pkg-plist new file mode 100644 index 000000000000..19f6f487bde0 --- /dev/null +++ b/net/ldap2dns/pkg-plist @@ -0,0 +1,8 @@ +bin/ldap2dns +bin/ldap2dnsd +share/ldap2dns/README.html +share/ldap2dns/dns.schema +share/ldap2dns/example.ldif +share/ldap2dns/import.pl +share/ldap2dns/ldap2tinydns-conf +@dirrm share/ldap2dns |