aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2003-09-29 08:46:56 +0800
committerbms <bms@FreeBSD.org>2003-09-29 08:46:56 +0800
commit1840351b519686e2cdda31f3a3f38a415a99657f (patch)
tree765bf13a1cf9e23f384e537c4f191eb6cb409cc9 /net
parent7980d51465b34ef44097342839bc9e64c1661d37 (diff)
downloadfreebsd-ports-gnome-1840351b519686e2cdda31f3a3f38a415a99657f.tar.gz
freebsd-ports-gnome-1840351b519686e2cdda31f3a3f38a415a99657f.tar.zst
freebsd-ports-gnome-1840351b519686e2cdda31f3a3f38a415a99657f.zip
New port: net/ldap2dns
PR: ports/50767
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/ldap2dns/Makefile45
-rw-r--r--net/ldap2dns/distinfo1
-rw-r--r--net/ldap2dns/files/patch-Makefile15
-rw-r--r--net/ldap2dns/pkg-descr11
-rw-r--r--net/ldap2dns/pkg-plist8
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