aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/openldap/Makefile39
-rw-r--r--net/openldap/distinfo1
-rw-r--r--net/openldap/files/manpages164
-rw-r--r--net/openldap/files/patch-aa25
-rw-r--r--net/openldap/files/patch-ab19
-rw-r--r--net/openldap/files/patch-ac19
-rw-r--r--net/openldap/pkg-comment1
-rw-r--r--net/openldap/pkg-descr12
-rw-r--r--net/openldap/pkg-plist42
-rw-r--r--net/openldap12/Makefile39
-rw-r--r--net/openldap12/distinfo1
-rw-r--r--net/openldap12/files/manpages164
-rw-r--r--net/openldap12/files/patch-aa25
-rw-r--r--net/openldap12/files/patch-ab19
-rw-r--r--net/openldap12/files/patch-ac19
-rw-r--r--net/openldap12/pkg-comment1
-rw-r--r--net/openldap12/pkg-descr12
-rw-r--r--net/openldap12/pkg-plist42
-rw-r--r--net/openldap2/Makefile39
-rw-r--r--net/openldap2/distinfo1
-rw-r--r--net/openldap2/files/manpages164
-rw-r--r--net/openldap2/pkg-comment1
-rw-r--r--net/openldap2/pkg-descr12
-rw-r--r--net/openldap2/pkg-plist42
-rw-r--r--net/openldap20-server/Makefile39
-rw-r--r--net/openldap20-server/distinfo1
-rw-r--r--net/openldap20-server/files/manpages164
-rw-r--r--net/openldap20-server/pkg-comment1
-rw-r--r--net/openldap20-server/pkg-descr12
-rw-r--r--net/openldap20-server/pkg-plist42
-rw-r--r--net/openldap20/Makefile39
-rw-r--r--net/openldap20/distinfo1
-rw-r--r--net/openldap20/files/manpages164
-rw-r--r--net/openldap20/pkg-comment1
-rw-r--r--net/openldap20/pkg-descr12
-rw-r--r--net/openldap20/pkg-plist42
-rw-r--r--net/openldap21-server/Makefile39
-rw-r--r--net/openldap21-server/distinfo1
-rw-r--r--net/openldap21-server/files/manpages164
-rw-r--r--net/openldap21-server/pkg-comment1
-rw-r--r--net/openldap21-server/pkg-descr12
-rw-r--r--net/openldap21-server/pkg-plist42
-rw-r--r--net/openldap21/Makefile39
-rw-r--r--net/openldap21/distinfo1
-rw-r--r--net/openldap21/files/manpages164
-rw-r--r--net/openldap21/pkg-comment1
-rw-r--r--net/openldap21/pkg-descr12
-rw-r--r--net/openldap21/pkg-plist42
-rw-r--r--net/openldap22-server/Makefile39
-rw-r--r--net/openldap22-server/distinfo1
-rw-r--r--net/openldap22-server/files/manpages164
-rw-r--r--net/openldap22-server/pkg-comment1
-rw-r--r--net/openldap22-server/pkg-descr12
-rw-r--r--net/openldap22-server/pkg-plist42
-rw-r--r--net/openldap22/Makefile39
-rw-r--r--net/openldap22/distinfo1
-rw-r--r--net/openldap22/files/manpages164
-rw-r--r--net/openldap22/pkg-comment1
-rw-r--r--net/openldap22/pkg-descr12
-rw-r--r--net/openldap22/pkg-plist42
-rw-r--r--net/openldap23-server/Makefile39
-rw-r--r--net/openldap23-server/distinfo1
-rw-r--r--net/openldap23-server/files/manpages164
-rw-r--r--net/openldap23-server/pkg-comment1
-rw-r--r--net/openldap23-server/pkg-descr12
-rw-r--r--net/openldap23-server/pkg-plist42
-rw-r--r--net/openldap24-server/Makefile39
-rw-r--r--net/openldap24-server/distinfo1
-rw-r--r--net/openldap24-server/files/manpages164
-rw-r--r--net/openldap24-server/pkg-comment1
-rw-r--r--net/openldap24-server/pkg-descr12
-rw-r--r--net/openldap24-server/pkg-plist42
72 files changed, 2975 insertions, 0 deletions
diff --git a/net/openldap/Makefile b/net/openldap/Makefile
new file mode 100644
index 000000000000..5a3db43bf9ef
--- /dev/null
+++ b/net/openldap/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: openldap
+# Version required: 1.0.1
+# Date created: 20 Sep 1998
+# Whom: Lachlan O'Dea
+#
+# $Id$
+#
+
+DISTNAME= openldap-1.0.1
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ulmo@earthling.net
+
+WRKSRC= ${WRKDIR}/ldap
+MANCOMPRESSED= yes
+
+.include "files/manpages"
+
+MAKE_ENV= LDAP_PREFIX=${PREFIX} \
+ EXTRACFLAGS="${CFLAGS}"
+
+pre-patch:
+ ${CP} ${WRKSRC}/Make-common.dist ${WRKSRC}/Make-common
+
+post-install:
+ strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
+ ${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
+ ${PREFIX}/libexec/fax500 ${PREFIX}/libexec/go500 \
+ ${PREFIX}/libexec/go500gw ${PREFIX}/libexec/in.xfingerd \
+ ${PREFIX}/libexec/mail500 ${PREFIX}/libexec/rcpt500 \
+ ${PREFIX}/libexec/rp500 ${PREFIX}/libexec/slapd \
+ ${PREFIX}/libexec/slurpd ${PREFIX}/sbin/centipede \
+ ${PREFIX}/sbin/ldbmcat ${PREFIX}/sbin/ldbmtest ${PREFIX}/sbin/ldif \
+ ${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
+ ${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm
+
+.include <bsd.port.mk>
diff --git a/net/openldap/distinfo b/net/openldap/distinfo
new file mode 100644
index 000000000000..9357252deebc
--- /dev/null
+++ b/net/openldap/distinfo
@@ -0,0 +1 @@
+MD5 (openldap-1.0.1.tgz) = 26ea15718640bd76a41598ce413c8e24
diff --git a/net/openldap/files/manpages b/net/openldap/files/manpages
new file mode 100644
index 000000000000..5cf07a5e7a8d
--- /dev/null
+++ b/net/openldap/files/manpages
@@ -0,0 +1,164 @@
+MAN1+= ldapdelete.1
+MAN1+= ldapmodify.1
+MAN1+= ldapmodrdn.1
+MAN1+= ldapsearch.1
+MAN1+= ud.1
+MAN3+= cldap_close.3
+MAN3+= cldap_open.3
+MAN3+= cldap_search_s.3
+MAN3+= cldap_setretryinfo.3
+MAN3+= lber-decode.3
+MAN3+= lber-encode.3
+MAN3+= ldap.3
+MAN3+= ldap_abandon.3
+MAN3+= ldap_add.3
+MAN3+= ldap_bind.3
+MAN3+= ldap_cache.3
+MAN3+= ldap_charset.3
+MAN3+= ldap_compare.3
+MAN3+= ldap_delete.3
+MAN3+= ldap_disptmpl.3
+MAN3+= ldap_entry2text.3
+MAN3+= ldap_error.3
+MAN3+= ldap_first_attribute.3
+MAN3+= ldap_first_entry.3
+MAN3+= ldap_friendly.3
+MAN3+= ldap_get_dn.3
+MAN3+= ldap_get_values.3
+MAN3+= ldap_getfilter.3
+MAN3+= ldap_modify.3
+MAN3+= ldap_modrdn.3
+MAN3+= ldap_open.3
+MAN3+= ldap_result.3
+MAN3+= ldap_search.3
+MAN3+= ldap_searchprefs.3
+MAN3+= ldap_sort.3
+MAN3+= ldap_ufn.3
+MAN3+= ldap_url.3
+MAN3+= regex.3
+MAN5+= ldapfilter.conf.5
+MAN5+= ldapfriendly.5
+MAN5+= ldapsearchprefs.conf.5
+MAN5+= ldaptemplates.conf.5
+MAN5+= ldif.5
+MAN5+= slapd.conf.5
+MAN5+= slapd.replog.5
+MAN5+= ud.conf.5
+MAN8+= centipede.8
+MAN8+= chlog2replog.8
+MAN8+= edb2ldif.8
+MAN8+= go500.8
+MAN8+= go500gw.8
+MAN8+= in.xfingerd.8
+MAN8+= ldapd.8
+MAN8+= ldbmcat.8
+MAN8+= ldif.8
+MAN8+= ldif2ldbm.8
+MAN8+= mail500.8
+MAN8+= rcpt500.8
+MAN8+= slapd.8
+MAN8+= slurpd.8
+MLINKS+= ldap.3 cldap.3
+MLINKS+= ldap_add.3 ldap_add_s.3
+MLINKS+= ldap_bind.3 ldap_bind_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind_s.3
+MLINKS+= ldap_bind.3 ldap_set_rebind_proc.3
+MLINKS+= ldap_bind.3 ldap_simple_bind.3
+MLINKS+= ldap_bind.3 ldap_simple_bind_s.3
+MLINKS+= ldap_bind.3 ldap_unbind.3
+MLINKS+= ldap_bind.3 ldap_unbind_s.3
+MLINKS+= ldap_cache.3 ldap_destroy_cache.3
+MLINKS+= ldap_cache.3 ldap_disable_cache.3
+MLINKS+= ldap_cache.3 ldap_enable_cache.3
+MLINKS+= ldap_cache.3 ldap_flush_cache.3
+MLINKS+= ldap_cache.3 ldap_set_cache_options.3
+MLINKS+= ldap_cache.3 ldap_uncache_entry.3
+MLINKS+= ldap_cache.3 ldap_uncache_request.3
+MLINKS+= ldap_charset.3 ldap_8859_to_t61.3
+MLINKS+= ldap_charset.3 ldap_enable_translation.3
+MLINKS+= ldap_charset.3 ldap_set_string_translators.3
+MLINKS+= ldap_charset.3 ldap_t61_to_8859.3
+MLINKS+= ldap_charset.3 ldap_translate_from_t61.3
+MLINKS+= ldap_charset.3 ldap_translate_to_t61.3
+MLINKS+= ldap_compare.3 ldap_compare_s.3
+MLINKS+= ldap_delete.3 ldap_delete_s.3
+MLINKS+= ldap_disptmpl.3 ldap_first_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_free_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates_buf.3
+MLINKS+= ldap_disptmpl.3 ldap_next_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_oc2template.3
+MLINKS+= ldap_disptmpl.3 ldap_tmplattrs.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html_search.3
+MLINKS+= ldap_entry2text.3 ldap_entry2text_search.3
+MLINKS+= ldap_entry2text.3 ldap_vals2html.3
+MLINKS+= ldap_entry2text.3 ldap_vals2text.3
+MLINKS+= ldap_error.3 ld_errno.3
+MLINKS+= ldap_error.3 ldap_err2string.3
+MLINKS+= ldap_error.3 ldap_errlist.3
+MLINKS+= ldap_error.3 ldap_perror.3
+MLINKS+= ldap_error.3 ldap_result2error.3
+MLINKS+= ldap_first_attribute.3 ldap_next_attribute.3
+MLINKS+= ldap_first_entry.3 ldap_count_entries.3
+MLINKS+= ldap_first_entry.3 ldap_next_entry.3
+MLINKS+= ldap_friendly.3 ldap_free_friendlymap.3
+MLINKS+= ldap_friendly.3 ldap_friendly_name.3
+MLINKS+= ldap_get_dn.3 ldap_dn2ufn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dns.3
+MLINKS+= ldap_get_dn.3 ldap_is_dns_dn.3
+MLINKS+= ldap_get_values.3 ldap_count_values.3
+MLINKS+= ldap_get_values.3 ldap_count_values_len.3
+MLINKS+= ldap_get_values.3 ldap_get_values_len.3
+MLINKS+= ldap_get_values.3 ldap_value_free.3
+MLINKS+= ldap_get_values.3 ldap_value_free_len.3
+MLINKS+= ldap_getfilter.3 ldap_build_filter.3
+MLINKS+= ldap_getfilter.3 ldap_getfilter_free.3
+MLINKS+= ldap_getfilter.3 ldap_getfirstfilter.3
+MLINKS+= ldap_getfilter.3 ldap_getnextfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter_buf.3
+MLINKS+= ldap_getfilter.3 ldap_setfilteraffixes.3
+MLINKS+= ldap_modify.3 ldap_modify_s.3
+MLINKS+= ldap_modify.3 ldap_mods_free.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2_s.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn_s.3
+MLINKS+= ldap_open.3 ldap_init.3
+MLINKS+= ldap_result.3 ldap_msgfree.3
+MLINKS+= ldap_search.3 ldap_search_s.3
+MLINKS+= ldap_search.3 ldap_search_st.3
+MLINKS+= ldap_searchprefs.3 ldap_first_searchobj.3
+MLINKS+= ldap_searchprefs.3 ldap_free_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs_buf.3
+MLINKS+= ldap_searchprefs.3 ldap_next_searchobj.3
+MLINKS+= ldap_sort.3 ldap_sort_entries.3
+MLINKS+= ldap_sort.3 ldap_sort_strcasecmp.3
+MLINKS+= ldap_sort.3 ldap_sort_values.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_c.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_ct.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_s.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setfilter.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setprefix.3
+MLINKS+= ldap_ufn.3 ldap_ufn_timeout.3
+MLINKS+= ldap_url.3 ldap_free_urldesc.3
+MLINKS+= ldap_url.3 ldap_is_ldap_url.3
+MLINKS+= ldap_url.3 ldap_url_parse.3
+MLINKS+= ldap_url.3 ldap_url_search.3
+MLINKS+= ldap_url.3 ldap_url_search_s.3
+MLINKS+= ldap_url.3 ldap_url_search_st.3
+MLINKS+= ldapmodify.1 ldapadd.1
+MLINKS+= ldif2ldbm.8 ldif2id2children.8
+MLINKS+= ldif2ldbm.8 ldif2id2entry.8
+MLINKS+= ldif2ldbm.8 ldif2index.8
+MLINKS+= mail500.8 fax500.8
diff --git a/net/openldap/files/patch-aa b/net/openldap/files/patch-aa
new file mode 100644
index 000000000000..bfa9c66bc95a
--- /dev/null
+++ b/net/openldap/files/patch-aa
@@ -0,0 +1,25 @@
+*** Make-common.orig Fri Sep 4 13:28:19 1998
+--- Make-common Mon Sep 21 14:35:10 1998
+***************
+*** 261,270 ****
+ # LDAP_ACLGROUP=-DACLGROUP
+
+ # uncomment these lines to enable support for CRYPT passwords in LDBM.
+! # LDAP_CRYPT=-DLDAP_CRYPT
+ # LDAP_CRYPT_LIB?=
+ # and comment this line out
+! LDAP_CRYPT_LIB=
+
+ # uncomment these lines to enable support fro tcp_wrappers in servers.
+ # Requires tcp_wrappers.
+--- 261,270 ----
+ # LDAP_ACLGROUP=-DACLGROUP
+
+ # uncomment these lines to enable support for CRYPT passwords in LDBM.
+! LDAP_CRYPT=-DLDAP_CRYPT
+ # LDAP_CRYPT_LIB?=
+ # and comment this line out
+! # LDAP_CRYPT_LIB=
+
+ # uncomment these lines to enable support fro tcp_wrappers in servers.
+ # Requires tcp_wrappers.
diff --git a/net/openldap/files/patch-ab b/net/openldap/files/patch-ab
new file mode 100644
index 000000000000..6fff54cd4064
--- /dev/null
+++ b/net/openldap/files/patch-ab
@@ -0,0 +1,19 @@
+*** build/platforms/freebsd2-gcc/Make-platform.orig Mon Sep 21 14:44:56 1998
+--- build/platforms/freebsd2-gcc/Make-platform Mon Sep 21 14:53:32 1998
+***************
+*** 6,12 ****
+ #
+ # add any platform-specific overrides below here
+ #
+! EXTRACFLAGS=-O -g
+ LDBMBACKEND=-DLDBM_USE_DBBTREE
+ LDBMINCLUDE=-I/usr/include
+
+--- 6,12 ----
+ #
+ # add any platform-specific overrides below here
+ #
+! EXTRACFLAGS?=-O -g
+ LDBMBACKEND=-DLDBM_USE_DBBTREE
+ LDBMINCLUDE=-I/usr/include
+
diff --git a/net/openldap/files/patch-ac b/net/openldap/files/patch-ac
new file mode 100644
index 000000000000..2f33c00ad1f1
--- /dev/null
+++ b/net/openldap/files/patch-ac
@@ -0,0 +1,19 @@
+*** build/platforms/freebsd3-gcc/Make-platform.orig Mon Sep 21 14:45:53 1998
+--- build/platforms/freebsd3-gcc/Make-platform Mon Sep 21 14:53:44 1998
+***************
+*** 6,12 ****
+ #
+ # add any platform-specific overrides below here
+ #
+! EXTRACFLAGS=-O -g
+ LDBMBACKEND=-DLDBM_USE_DBBTREE
+ LDBMINCLUDE=-I/usr/include
+
+--- 6,12 ----
+ #
+ # add any platform-specific overrides below here
+ #
+! EXTRACFLAGS?=-O -g
+ LDBMBACKEND=-DLDBM_USE_DBBTREE
+ LDBMINCLUDE=-I/usr/include
+
diff --git a/net/openldap/pkg-comment b/net/openldap/pkg-comment
new file mode 100644
index 000000000000..50adddf59d8a
--- /dev/null
+++ b/net/openldap/pkg-comment
@@ -0,0 +1 @@
+Open source LDAP client and server software.
diff --git a/net/openldap/pkg-descr b/net/openldap/pkg-descr
new file mode 100644
index 000000000000..5fddbe209201
--- /dev/null
+++ b/net/openldap/pkg-descr
@@ -0,0 +1,12 @@
+OpenLDAP is a suite of Lightweight Directory Access Protocol (LDAP) servers,
+clients, utilities and development tools. LDAP is an Internet standard
+directory service protocol that can be used stand-alone, or as a front end
+to an X.500 directory. LDAP is defined by RFCs 1777 through 1779.
+
+OpenLDAP is derived from the University of Michigan LDAP release 3.3 and is
+distributed under a Perl-style "Artistic License".
+
+http://www.openldap.org/
+
+Lachlan O'Dea
+ulmo@earthling.net
diff --git a/net/openldap/pkg-plist b/net/openldap/pkg-plist
new file mode 100644
index 000000000000..c62b9f0c8ca3
--- /dev/null
+++ b/net/openldap/pkg-plist
@@ -0,0 +1,42 @@
+bin/ldapadd
+bin/ldapdelete
+bin/ldapmodify
+bin/ldapmodrdn
+bin/ldapsearch
+bin/ud
+bin/xrpcomp
+etc/ldap/go500gw.help
+etc/ldap/ldapfilter.conf
+etc/ldap/ldapfriendly
+etc/ldap/ldapsearchprefs.conf
+etc/ldap/ldaptemplates.conf
+etc/ldap/rcpt500.help
+etc/ldap/slapd.at.conf
+etc/ldap/slapd.conf
+etc/ldap/slapd.oc.conf
+include/disptmpl.h
+include/lber.h
+include/ldap.h
+include/proto-lber.h
+include/proto-ldap.h
+include/srchpref.h
+lib/liblber.a
+lib/libldap.a
+libexec/fax500
+libexec/go500
+libexec/go500gw
+libexec/in.xfingerd
+libexec/mail500
+libexec/rcpt500
+libexec/rp500
+libexec/slapd
+libexec/slurpd
+sbin/centipede
+sbin/ldbmcat
+sbin/ldbmtest
+sbin/ldif
+sbin/ldif2id2children
+sbin/ldif2id2entry
+sbin/ldif2index
+sbin/ldif2ldbm
+@dirrm etc/ldap
diff --git a/net/openldap12/Makefile b/net/openldap12/Makefile
new file mode 100644
index 000000000000..5a3db43bf9ef
--- /dev/null
+++ b/net/openldap12/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: openldap
+# Version required: 1.0.1
+# Date created: 20 Sep 1998
+# Whom: Lachlan O'Dea
+#
+# $Id$
+#
+
+DISTNAME= openldap-1.0.1
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ulmo@earthling.net
+
+WRKSRC= ${WRKDIR}/ldap
+MANCOMPRESSED= yes
+
+.include "files/manpages"
+
+MAKE_ENV= LDAP_PREFIX=${PREFIX} \
+ EXTRACFLAGS="${CFLAGS}"
+
+pre-patch:
+ ${CP} ${WRKSRC}/Make-common.dist ${WRKSRC}/Make-common
+
+post-install:
+ strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
+ ${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
+ ${PREFIX}/libexec/fax500 ${PREFIX}/libexec/go500 \
+ ${PREFIX}/libexec/go500gw ${PREFIX}/libexec/in.xfingerd \
+ ${PREFIX}/libexec/mail500 ${PREFIX}/libexec/rcpt500 \
+ ${PREFIX}/libexec/rp500 ${PREFIX}/libexec/slapd \
+ ${PREFIX}/libexec/slurpd ${PREFIX}/sbin/centipede \
+ ${PREFIX}/sbin/ldbmcat ${PREFIX}/sbin/ldbmtest ${PREFIX}/sbin/ldif \
+ ${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
+ ${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm
+
+.include <bsd.port.mk>
diff --git a/net/openldap12/distinfo b/net/openldap12/distinfo
new file mode 100644
index 000000000000..9357252deebc
--- /dev/null
+++ b/net/openldap12/distinfo
@@ -0,0 +1 @@
+MD5 (openldap-1.0.1.tgz) = 26ea15718640bd76a41598ce413c8e24
diff --git a/net/openldap12/files/manpages b/net/openldap12/files/manpages
new file mode 100644
index 000000000000..5cf07a5e7a8d
--- /dev/null
+++ b/net/openldap12/files/manpages
@@ -0,0 +1,164 @@
+MAN1+= ldapdelete.1
+MAN1+= ldapmodify.1
+MAN1+= ldapmodrdn.1
+MAN1+= ldapsearch.1
+MAN1+= ud.1
+MAN3+= cldap_close.3
+MAN3+= cldap_open.3
+MAN3+= cldap_search_s.3
+MAN3+= cldap_setretryinfo.3
+MAN3+= lber-decode.3
+MAN3+= lber-encode.3
+MAN3+= ldap.3
+MAN3+= ldap_abandon.3
+MAN3+= ldap_add.3
+MAN3+= ldap_bind.3
+MAN3+= ldap_cache.3
+MAN3+= ldap_charset.3
+MAN3+= ldap_compare.3
+MAN3+= ldap_delete.3
+MAN3+= ldap_disptmpl.3
+MAN3+= ldap_entry2text.3
+MAN3+= ldap_error.3
+MAN3+= ldap_first_attribute.3
+MAN3+= ldap_first_entry.3
+MAN3+= ldap_friendly.3
+MAN3+= ldap_get_dn.3
+MAN3+= ldap_get_values.3
+MAN3+= ldap_getfilter.3
+MAN3+= ldap_modify.3
+MAN3+= ldap_modrdn.3
+MAN3+= ldap_open.3
+MAN3+= ldap_result.3
+MAN3+= ldap_search.3
+MAN3+= ldap_searchprefs.3
+MAN3+= ldap_sort.3
+MAN3+= ldap_ufn.3
+MAN3+= ldap_url.3
+MAN3+= regex.3
+MAN5+= ldapfilter.conf.5
+MAN5+= ldapfriendly.5
+MAN5+= ldapsearchprefs.conf.5
+MAN5+= ldaptemplates.conf.5
+MAN5+= ldif.5
+MAN5+= slapd.conf.5
+MAN5+= slapd.replog.5
+MAN5+= ud.conf.5
+MAN8+= centipede.8
+MAN8+= chlog2replog.8
+MAN8+= edb2ldif.8
+MAN8+= go500.8
+MAN8+= go500gw.8
+MAN8+= in.xfingerd.8
+MAN8+= ldapd.8
+MAN8+= ldbmcat.8
+MAN8+= ldif.8
+MAN8+= ldif2ldbm.8
+MAN8+= mail500.8
+MAN8+= rcpt500.8
+MAN8+= slapd.8
+MAN8+= slurpd.8
+MLINKS+= ldap.3 cldap.3
+MLINKS+= ldap_add.3 ldap_add_s.3
+MLINKS+= ldap_bind.3 ldap_bind_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind_s.3
+MLINKS+= ldap_bind.3 ldap_set_rebind_proc.3
+MLINKS+= ldap_bind.3 ldap_simple_bind.3
+MLINKS+= ldap_bind.3 ldap_simple_bind_s.3
+MLINKS+= ldap_bind.3 ldap_unbind.3
+MLINKS+= ldap_bind.3 ldap_unbind_s.3
+MLINKS+= ldap_cache.3 ldap_destroy_cache.3
+MLINKS+= ldap_cache.3 ldap_disable_cache.3
+MLINKS+= ldap_cache.3 ldap_enable_cache.3
+MLINKS+= ldap_cache.3 ldap_flush_cache.3
+MLINKS+= ldap_cache.3 ldap_set_cache_options.3
+MLINKS+= ldap_cache.3 ldap_uncache_entry.3
+MLINKS+= ldap_cache.3 ldap_uncache_request.3
+MLINKS+= ldap_charset.3 ldap_8859_to_t61.3
+MLINKS+= ldap_charset.3 ldap_enable_translation.3
+MLINKS+= ldap_charset.3 ldap_set_string_translators.3
+MLINKS+= ldap_charset.3 ldap_t61_to_8859.3
+MLINKS+= ldap_charset.3 ldap_translate_from_t61.3
+MLINKS+= ldap_charset.3 ldap_translate_to_t61.3
+MLINKS+= ldap_compare.3 ldap_compare_s.3
+MLINKS+= ldap_delete.3 ldap_delete_s.3
+MLINKS+= ldap_disptmpl.3 ldap_first_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_free_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates_buf.3
+MLINKS+= ldap_disptmpl.3 ldap_next_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_oc2template.3
+MLINKS+= ldap_disptmpl.3 ldap_tmplattrs.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html_search.3
+MLINKS+= ldap_entry2text.3 ldap_entry2text_search.3
+MLINKS+= ldap_entry2text.3 ldap_vals2html.3
+MLINKS+= ldap_entry2text.3 ldap_vals2text.3
+MLINKS+= ldap_error.3 ld_errno.3
+MLINKS+= ldap_error.3 ldap_err2string.3
+MLINKS+= ldap_error.3 ldap_errlist.3
+MLINKS+= ldap_error.3 ldap_perror.3
+MLINKS+= ldap_error.3 ldap_result2error.3
+MLINKS+= ldap_first_attribute.3 ldap_next_attribute.3
+MLINKS+= ldap_first_entry.3 ldap_count_entries.3
+MLINKS+= ldap_first_entry.3 ldap_next_entry.3
+MLINKS+= ldap_friendly.3 ldap_free_friendlymap.3
+MLINKS+= ldap_friendly.3 ldap_friendly_name.3
+MLINKS+= ldap_get_dn.3 ldap_dn2ufn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dns.3
+MLINKS+= ldap_get_dn.3 ldap_is_dns_dn.3
+MLINKS+= ldap_get_values.3 ldap_count_values.3
+MLINKS+= ldap_get_values.3 ldap_count_values_len.3
+MLINKS+= ldap_get_values.3 ldap_get_values_len.3
+MLINKS+= ldap_get_values.3 ldap_value_free.3
+MLINKS+= ldap_get_values.3 ldap_value_free_len.3
+MLINKS+= ldap_getfilter.3 ldap_build_filter.3
+MLINKS+= ldap_getfilter.3 ldap_getfilter_free.3
+MLINKS+= ldap_getfilter.3 ldap_getfirstfilter.3
+MLINKS+= ldap_getfilter.3 ldap_getnextfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter_buf.3
+MLINKS+= ldap_getfilter.3 ldap_setfilteraffixes.3
+MLINKS+= ldap_modify.3 ldap_modify_s.3
+MLINKS+= ldap_modify.3 ldap_mods_free.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2_s.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn_s.3
+MLINKS+= ldap_open.3 ldap_init.3
+MLINKS+= ldap_result.3 ldap_msgfree.3
+MLINKS+= ldap_search.3 ldap_search_s.3
+MLINKS+= ldap_search.3 ldap_search_st.3
+MLINKS+= ldap_searchprefs.3 ldap_first_searchobj.3
+MLINKS+= ldap_searchprefs.3 ldap_free_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs_buf.3
+MLINKS+= ldap_searchprefs.3 ldap_next_searchobj.3
+MLINKS+= ldap_sort.3 ldap_sort_entries.3
+MLINKS+= ldap_sort.3 ldap_sort_strcasecmp.3
+MLINKS+= ldap_sort.3 ldap_sort_values.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_c.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_ct.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_s.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setfilter.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setprefix.3
+MLINKS+= ldap_ufn.3 ldap_ufn_timeout.3
+MLINKS+= ldap_url.3 ldap_free_urldesc.3
+MLINKS+= ldap_url.3 ldap_is_ldap_url.3
+MLINKS+= ldap_url.3 ldap_url_parse.3
+MLINKS+= ldap_url.3 ldap_url_search.3
+MLINKS+= ldap_url.3 ldap_url_search_s.3
+MLINKS+= ldap_url.3 ldap_url_search_st.3
+MLINKS+= ldapmodify.1 ldapadd.1
+MLINKS+= ldif2ldbm.8 ldif2id2children.8
+MLINKS+= ldif2ldbm.8 ldif2id2entry.8
+MLINKS+= ldif2ldbm.8 ldif2index.8
+MLINKS+= mail500.8 fax500.8
diff --git a/net/openldap12/files/patch-aa b/net/openldap12/files/patch-aa
new file mode 100644
index 000000000000..bfa9c66bc95a
--- /dev/null
+++ b/net/openldap12/files/patch-aa
@@ -0,0 +1,25 @@
+*** Make-common.orig Fri Sep 4 13:28:19 1998
+--- Make-common Mon Sep 21 14:35:10 1998
+***************
+*** 261,270 ****
+ # LDAP_ACLGROUP=-DACLGROUP
+
+ # uncomment these lines to enable support for CRYPT passwords in LDBM.
+! # LDAP_CRYPT=-DLDAP_CRYPT
+ # LDAP_CRYPT_LIB?=
+ # and comment this line out
+! LDAP_CRYPT_LIB=
+
+ # uncomment these lines to enable support fro tcp_wrappers in servers.
+ # Requires tcp_wrappers.
+--- 261,270 ----
+ # LDAP_ACLGROUP=-DACLGROUP
+
+ # uncomment these lines to enable support for CRYPT passwords in LDBM.
+! LDAP_CRYPT=-DLDAP_CRYPT
+ # LDAP_CRYPT_LIB?=
+ # and comment this line out
+! # LDAP_CRYPT_LIB=
+
+ # uncomment these lines to enable support fro tcp_wrappers in servers.
+ # Requires tcp_wrappers.
diff --git a/net/openldap12/files/patch-ab b/net/openldap12/files/patch-ab
new file mode 100644
index 000000000000..6fff54cd4064
--- /dev/null
+++ b/net/openldap12/files/patch-ab
@@ -0,0 +1,19 @@
+*** build/platforms/freebsd2-gcc/Make-platform.orig Mon Sep 21 14:44:56 1998
+--- build/platforms/freebsd2-gcc/Make-platform Mon Sep 21 14:53:32 1998
+***************
+*** 6,12 ****
+ #
+ # add any platform-specific overrides below here
+ #
+! EXTRACFLAGS=-O -g
+ LDBMBACKEND=-DLDBM_USE_DBBTREE
+ LDBMINCLUDE=-I/usr/include
+
+--- 6,12 ----
+ #
+ # add any platform-specific overrides below here
+ #
+! EXTRACFLAGS?=-O -g
+ LDBMBACKEND=-DLDBM_USE_DBBTREE
+ LDBMINCLUDE=-I/usr/include
+
diff --git a/net/openldap12/files/patch-ac b/net/openldap12/files/patch-ac
new file mode 100644
index 000000000000..2f33c00ad1f1
--- /dev/null
+++ b/net/openldap12/files/patch-ac
@@ -0,0 +1,19 @@
+*** build/platforms/freebsd3-gcc/Make-platform.orig Mon Sep 21 14:45:53 1998
+--- build/platforms/freebsd3-gcc/Make-platform Mon Sep 21 14:53:44 1998
+***************
+*** 6,12 ****
+ #
+ # add any platform-specific overrides below here
+ #
+! EXTRACFLAGS=-O -g
+ LDBMBACKEND=-DLDBM_USE_DBBTREE
+ LDBMINCLUDE=-I/usr/include
+
+--- 6,12 ----
+ #
+ # add any platform-specific overrides below here
+ #
+! EXTRACFLAGS?=-O -g
+ LDBMBACKEND=-DLDBM_USE_DBBTREE
+ LDBMINCLUDE=-I/usr/include
+
diff --git a/net/openldap12/pkg-comment b/net/openldap12/pkg-comment
new file mode 100644
index 000000000000..50adddf59d8a
--- /dev/null
+++ b/net/openldap12/pkg-comment
@@ -0,0 +1 @@
+Open source LDAP client and server software.
diff --git a/net/openldap12/pkg-descr b/net/openldap12/pkg-descr
new file mode 100644
index 000000000000..5fddbe209201
--- /dev/null
+++ b/net/openldap12/pkg-descr
@@ -0,0 +1,12 @@
+OpenLDAP is a suite of Lightweight Directory Access Protocol (LDAP) servers,
+clients, utilities and development tools. LDAP is an Internet standard
+directory service protocol that can be used stand-alone, or as a front end
+to an X.500 directory. LDAP is defined by RFCs 1777 through 1779.
+
+OpenLDAP is derived from the University of Michigan LDAP release 3.3 and is
+distributed under a Perl-style "Artistic License".
+
+http://www.openldap.org/
+
+Lachlan O'Dea
+ulmo@earthling.net
diff --git a/net/openldap12/pkg-plist b/net/openldap12/pkg-plist
new file mode 100644
index 000000000000..c62b9f0c8ca3
--- /dev/null
+++ b/net/openldap12/pkg-plist
@@ -0,0 +1,42 @@
+bin/ldapadd
+bin/ldapdelete
+bin/ldapmodify
+bin/ldapmodrdn
+bin/ldapsearch
+bin/ud
+bin/xrpcomp
+etc/ldap/go500gw.help
+etc/ldap/ldapfilter.conf
+etc/ldap/ldapfriendly
+etc/ldap/ldapsearchprefs.conf
+etc/ldap/ldaptemplates.conf
+etc/ldap/rcpt500.help
+etc/ldap/slapd.at.conf
+etc/ldap/slapd.conf
+etc/ldap/slapd.oc.conf
+include/disptmpl.h
+include/lber.h
+include/ldap.h
+include/proto-lber.h
+include/proto-ldap.h
+include/srchpref.h
+lib/liblber.a
+lib/libldap.a
+libexec/fax500
+libexec/go500
+libexec/go500gw
+libexec/in.xfingerd
+libexec/mail500
+libexec/rcpt500
+libexec/rp500
+libexec/slapd
+libexec/slurpd
+sbin/centipede
+sbin/ldbmcat
+sbin/ldbmtest
+sbin/ldif
+sbin/ldif2id2children
+sbin/ldif2id2entry
+sbin/ldif2index
+sbin/ldif2ldbm
+@dirrm etc/ldap
diff --git a/net/openldap2/Makefile b/net/openldap2/Makefile
new file mode 100644
index 000000000000..5a3db43bf9ef
--- /dev/null
+++ b/net/openldap2/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: openldap
+# Version required: 1.0.1
+# Date created: 20 Sep 1998
+# Whom: Lachlan O'Dea
+#
+# $Id$
+#
+
+DISTNAME= openldap-1.0.1
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ulmo@earthling.net
+
+WRKSRC= ${WRKDIR}/ldap
+MANCOMPRESSED= yes
+
+.include "files/manpages"
+
+MAKE_ENV= LDAP_PREFIX=${PREFIX} \
+ EXTRACFLAGS="${CFLAGS}"
+
+pre-patch:
+ ${CP} ${WRKSRC}/Make-common.dist ${WRKSRC}/Make-common
+
+post-install:
+ strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
+ ${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
+ ${PREFIX}/libexec/fax500 ${PREFIX}/libexec/go500 \
+ ${PREFIX}/libexec/go500gw ${PREFIX}/libexec/in.xfingerd \
+ ${PREFIX}/libexec/mail500 ${PREFIX}/libexec/rcpt500 \
+ ${PREFIX}/libexec/rp500 ${PREFIX}/libexec/slapd \
+ ${PREFIX}/libexec/slurpd ${PREFIX}/sbin/centipede \
+ ${PREFIX}/sbin/ldbmcat ${PREFIX}/sbin/ldbmtest ${PREFIX}/sbin/ldif \
+ ${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
+ ${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm
+
+.include <bsd.port.mk>
diff --git a/net/openldap2/distinfo b/net/openldap2/distinfo
new file mode 100644
index 000000000000..9357252deebc
--- /dev/null
+++ b/net/openldap2/distinfo
@@ -0,0 +1 @@
+MD5 (openldap-1.0.1.tgz) = 26ea15718640bd76a41598ce413c8e24
diff --git a/net/openldap2/files/manpages b/net/openldap2/files/manpages
new file mode 100644
index 000000000000..5cf07a5e7a8d
--- /dev/null
+++ b/net/openldap2/files/manpages
@@ -0,0 +1,164 @@
+MAN1+= ldapdelete.1
+MAN1+= ldapmodify.1
+MAN1+= ldapmodrdn.1
+MAN1+= ldapsearch.1
+MAN1+= ud.1
+MAN3+= cldap_close.3
+MAN3+= cldap_open.3
+MAN3+= cldap_search_s.3
+MAN3+= cldap_setretryinfo.3
+MAN3+= lber-decode.3
+MAN3+= lber-encode.3
+MAN3+= ldap.3
+MAN3+= ldap_abandon.3
+MAN3+= ldap_add.3
+MAN3+= ldap_bind.3
+MAN3+= ldap_cache.3
+MAN3+= ldap_charset.3
+MAN3+= ldap_compare.3
+MAN3+= ldap_delete.3
+MAN3+= ldap_disptmpl.3
+MAN3+= ldap_entry2text.3
+MAN3+= ldap_error.3
+MAN3+= ldap_first_attribute.3
+MAN3+= ldap_first_entry.3
+MAN3+= ldap_friendly.3
+MAN3+= ldap_get_dn.3
+MAN3+= ldap_get_values.3
+MAN3+= ldap_getfilter.3
+MAN3+= ldap_modify.3
+MAN3+= ldap_modrdn.3
+MAN3+= ldap_open.3
+MAN3+= ldap_result.3
+MAN3+= ldap_search.3
+MAN3+= ldap_searchprefs.3
+MAN3+= ldap_sort.3
+MAN3+= ldap_ufn.3
+MAN3+= ldap_url.3
+MAN3+= regex.3
+MAN5+= ldapfilter.conf.5
+MAN5+= ldapfriendly.5
+MAN5+= ldapsearchprefs.conf.5
+MAN5+= ldaptemplates.conf.5
+MAN5+= ldif.5
+MAN5+= slapd.conf.5
+MAN5+= slapd.replog.5
+MAN5+= ud.conf.5
+MAN8+= centipede.8
+MAN8+= chlog2replog.8
+MAN8+= edb2ldif.8
+MAN8+= go500.8
+MAN8+= go500gw.8
+MAN8+= in.xfingerd.8
+MAN8+= ldapd.8
+MAN8+= ldbmcat.8
+MAN8+= ldif.8
+MAN8+= ldif2ldbm.8
+MAN8+= mail500.8
+MAN8+= rcpt500.8
+MAN8+= slapd.8
+MAN8+= slurpd.8
+MLINKS+= ldap.3 cldap.3
+MLINKS+= ldap_add.3 ldap_add_s.3
+MLINKS+= ldap_bind.3 ldap_bind_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind_s.3
+MLINKS+= ldap_bind.3 ldap_set_rebind_proc.3
+MLINKS+= ldap_bind.3 ldap_simple_bind.3
+MLINKS+= ldap_bind.3 ldap_simple_bind_s.3
+MLINKS+= ldap_bind.3 ldap_unbind.3
+MLINKS+= ldap_bind.3 ldap_unbind_s.3
+MLINKS+= ldap_cache.3 ldap_destroy_cache.3
+MLINKS+= ldap_cache.3 ldap_disable_cache.3
+MLINKS+= ldap_cache.3 ldap_enable_cache.3
+MLINKS+= ldap_cache.3 ldap_flush_cache.3
+MLINKS+= ldap_cache.3 ldap_set_cache_options.3
+MLINKS+= ldap_cache.3 ldap_uncache_entry.3
+MLINKS+= ldap_cache.3 ldap_uncache_request.3
+MLINKS+= ldap_charset.3 ldap_8859_to_t61.3
+MLINKS+= ldap_charset.3 ldap_enable_translation.3
+MLINKS+= ldap_charset.3 ldap_set_string_translators.3
+MLINKS+= ldap_charset.3 ldap_t61_to_8859.3
+MLINKS+= ldap_charset.3 ldap_translate_from_t61.3
+MLINKS+= ldap_charset.3 ldap_translate_to_t61.3
+MLINKS+= ldap_compare.3 ldap_compare_s.3
+MLINKS+= ldap_delete.3 ldap_delete_s.3
+MLINKS+= ldap_disptmpl.3 ldap_first_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_free_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates_buf.3
+MLINKS+= ldap_disptmpl.3 ldap_next_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_oc2template.3
+MLINKS+= ldap_disptmpl.3 ldap_tmplattrs.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html_search.3
+MLINKS+= ldap_entry2text.3 ldap_entry2text_search.3
+MLINKS+= ldap_entry2text.3 ldap_vals2html.3
+MLINKS+= ldap_entry2text.3 ldap_vals2text.3
+MLINKS+= ldap_error.3 ld_errno.3
+MLINKS+= ldap_error.3 ldap_err2string.3
+MLINKS+= ldap_error.3 ldap_errlist.3
+MLINKS+= ldap_error.3 ldap_perror.3
+MLINKS+= ldap_error.3 ldap_result2error.3
+MLINKS+= ldap_first_attribute.3 ldap_next_attribute.3
+MLINKS+= ldap_first_entry.3 ldap_count_entries.3
+MLINKS+= ldap_first_entry.3 ldap_next_entry.3
+MLINKS+= ldap_friendly.3 ldap_free_friendlymap.3
+MLINKS+= ldap_friendly.3 ldap_friendly_name.3
+MLINKS+= ldap_get_dn.3 ldap_dn2ufn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dns.3
+MLINKS+= ldap_get_dn.3 ldap_is_dns_dn.3
+MLINKS+= ldap_get_values.3 ldap_count_values.3
+MLINKS+= ldap_get_values.3 ldap_count_values_len.3
+MLINKS+= ldap_get_values.3 ldap_get_values_len.3
+MLINKS+= ldap_get_values.3 ldap_value_free.3
+MLINKS+= ldap_get_values.3 ldap_value_free_len.3
+MLINKS+= ldap_getfilter.3 ldap_build_filter.3
+MLINKS+= ldap_getfilter.3 ldap_getfilter_free.3
+MLINKS+= ldap_getfilter.3 ldap_getfirstfilter.3
+MLINKS+= ldap_getfilter.3 ldap_getnextfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter_buf.3
+MLINKS+= ldap_getfilter.3 ldap_setfilteraffixes.3
+MLINKS+= ldap_modify.3 ldap_modify_s.3
+MLINKS+= ldap_modify.3 ldap_mods_free.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2_s.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn_s.3
+MLINKS+= ldap_open.3 ldap_init.3
+MLINKS+= ldap_result.3 ldap_msgfree.3
+MLINKS+= ldap_search.3 ldap_search_s.3
+MLINKS+= ldap_search.3 ldap_search_st.3
+MLINKS+= ldap_searchprefs.3 ldap_first_searchobj.3
+MLINKS+= ldap_searchprefs.3 ldap_free_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs_buf.3
+MLINKS+= ldap_searchprefs.3 ldap_next_searchobj.3
+MLINKS+= ldap_sort.3 ldap_sort_entries.3
+MLINKS+= ldap_sort.3 ldap_sort_strcasecmp.3
+MLINKS+= ldap_sort.3 ldap_sort_values.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_c.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_ct.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_s.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setfilter.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setprefix.3
+MLINKS+= ldap_ufn.3 ldap_ufn_timeout.3
+MLINKS+= ldap_url.3 ldap_free_urldesc.3
+MLINKS+= ldap_url.3 ldap_is_ldap_url.3
+MLINKS+= ldap_url.3 ldap_url_parse.3
+MLINKS+= ldap_url.3 ldap_url_search.3
+MLINKS+= ldap_url.3 ldap_url_search_s.3
+MLINKS+= ldap_url.3 ldap_url_search_st.3
+MLINKS+= ldapmodify.1 ldapadd.1
+MLINKS+= ldif2ldbm.8 ldif2id2children.8
+MLINKS+= ldif2ldbm.8 ldif2id2entry.8
+MLINKS+= ldif2ldbm.8 ldif2index.8
+MLINKS+= mail500.8 fax500.8
diff --git a/net/openldap2/pkg-comment b/net/openldap2/pkg-comment
new file mode 100644
index 000000000000..50adddf59d8a
--- /dev/null
+++ b/net/openldap2/pkg-comment
@@ -0,0 +1 @@
+Open source LDAP client and server software.
diff --git a/net/openldap2/pkg-descr b/net/openldap2/pkg-descr
new file mode 100644
index 000000000000..5fddbe209201
--- /dev/null
+++ b/net/openldap2/pkg-descr
@@ -0,0 +1,12 @@
+OpenLDAP is a suite of Lightweight Directory Access Protocol (LDAP) servers,
+clients, utilities and development tools. LDAP is an Internet standard
+directory service protocol that can be used stand-alone, or as a front end
+to an X.500 directory. LDAP is defined by RFCs 1777 through 1779.
+
+OpenLDAP is derived from the University of Michigan LDAP release 3.3 and is
+distributed under a Perl-style "Artistic License".
+
+http://www.openldap.org/
+
+Lachlan O'Dea
+ulmo@earthling.net
diff --git a/net/openldap2/pkg-plist b/net/openldap2/pkg-plist
new file mode 100644
index 000000000000..c62b9f0c8ca3
--- /dev/null
+++ b/net/openldap2/pkg-plist
@@ -0,0 +1,42 @@
+bin/ldapadd
+bin/ldapdelete
+bin/ldapmodify
+bin/ldapmodrdn
+bin/ldapsearch
+bin/ud
+bin/xrpcomp
+etc/ldap/go500gw.help
+etc/ldap/ldapfilter.conf
+etc/ldap/ldapfriendly
+etc/ldap/ldapsearchprefs.conf
+etc/ldap/ldaptemplates.conf
+etc/ldap/rcpt500.help
+etc/ldap/slapd.at.conf
+etc/ldap/slapd.conf
+etc/ldap/slapd.oc.conf
+include/disptmpl.h
+include/lber.h
+include/ldap.h
+include/proto-lber.h
+include/proto-ldap.h
+include/srchpref.h
+lib/liblber.a
+lib/libldap.a
+libexec/fax500
+libexec/go500
+libexec/go500gw
+libexec/in.xfingerd
+libexec/mail500
+libexec/rcpt500
+libexec/rp500
+libexec/slapd
+libexec/slurpd
+sbin/centipede
+sbin/ldbmcat
+sbin/ldbmtest
+sbin/ldif
+sbin/ldif2id2children
+sbin/ldif2id2entry
+sbin/ldif2index
+sbin/ldif2ldbm
+@dirrm etc/ldap
diff --git a/net/openldap20-server/Makefile b/net/openldap20-server/Makefile
new file mode 100644
index 000000000000..5a3db43bf9ef
--- /dev/null
+++ b/net/openldap20-server/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: openldap
+# Version required: 1.0.1
+# Date created: 20 Sep 1998
+# Whom: Lachlan O'Dea
+#
+# $Id$
+#
+
+DISTNAME= openldap-1.0.1
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ulmo@earthling.net
+
+WRKSRC= ${WRKDIR}/ldap
+MANCOMPRESSED= yes
+
+.include "files/manpages"
+
+MAKE_ENV= LDAP_PREFIX=${PREFIX} \
+ EXTRACFLAGS="${CFLAGS}"
+
+pre-patch:
+ ${CP} ${WRKSRC}/Make-common.dist ${WRKSRC}/Make-common
+
+post-install:
+ strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
+ ${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
+ ${PREFIX}/libexec/fax500 ${PREFIX}/libexec/go500 \
+ ${PREFIX}/libexec/go500gw ${PREFIX}/libexec/in.xfingerd \
+ ${PREFIX}/libexec/mail500 ${PREFIX}/libexec/rcpt500 \
+ ${PREFIX}/libexec/rp500 ${PREFIX}/libexec/slapd \
+ ${PREFIX}/libexec/slurpd ${PREFIX}/sbin/centipede \
+ ${PREFIX}/sbin/ldbmcat ${PREFIX}/sbin/ldbmtest ${PREFIX}/sbin/ldif \
+ ${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
+ ${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm
+
+.include <bsd.port.mk>
diff --git a/net/openldap20-server/distinfo b/net/openldap20-server/distinfo
new file mode 100644
index 000000000000..9357252deebc
--- /dev/null
+++ b/net/openldap20-server/distinfo
@@ -0,0 +1 @@
+MD5 (openldap-1.0.1.tgz) = 26ea15718640bd76a41598ce413c8e24
diff --git a/net/openldap20-server/files/manpages b/net/openldap20-server/files/manpages
new file mode 100644
index 000000000000..5cf07a5e7a8d
--- /dev/null
+++ b/net/openldap20-server/files/manpages
@@ -0,0 +1,164 @@
+MAN1+= ldapdelete.1
+MAN1+= ldapmodify.1
+MAN1+= ldapmodrdn.1
+MAN1+= ldapsearch.1
+MAN1+= ud.1
+MAN3+= cldap_close.3
+MAN3+= cldap_open.3
+MAN3+= cldap_search_s.3
+MAN3+= cldap_setretryinfo.3
+MAN3+= lber-decode.3
+MAN3+= lber-encode.3
+MAN3+= ldap.3
+MAN3+= ldap_abandon.3
+MAN3+= ldap_add.3
+MAN3+= ldap_bind.3
+MAN3+= ldap_cache.3
+MAN3+= ldap_charset.3
+MAN3+= ldap_compare.3
+MAN3+= ldap_delete.3
+MAN3+= ldap_disptmpl.3
+MAN3+= ldap_entry2text.3
+MAN3+= ldap_error.3
+MAN3+= ldap_first_attribute.3
+MAN3+= ldap_first_entry.3
+MAN3+= ldap_friendly.3
+MAN3+= ldap_get_dn.3
+MAN3+= ldap_get_values.3
+MAN3+= ldap_getfilter.3
+MAN3+= ldap_modify.3
+MAN3+= ldap_modrdn.3
+MAN3+= ldap_open.3
+MAN3+= ldap_result.3
+MAN3+= ldap_search.3
+MAN3+= ldap_searchprefs.3
+MAN3+= ldap_sort.3
+MAN3+= ldap_ufn.3
+MAN3+= ldap_url.3
+MAN3+= regex.3
+MAN5+= ldapfilter.conf.5
+MAN5+= ldapfriendly.5
+MAN5+= ldapsearchprefs.conf.5
+MAN5+= ldaptemplates.conf.5
+MAN5+= ldif.5
+MAN5+= slapd.conf.5
+MAN5+= slapd.replog.5
+MAN5+= ud.conf.5
+MAN8+= centipede.8
+MAN8+= chlog2replog.8
+MAN8+= edb2ldif.8
+MAN8+= go500.8
+MAN8+= go500gw.8
+MAN8+= in.xfingerd.8
+MAN8+= ldapd.8
+MAN8+= ldbmcat.8
+MAN8+= ldif.8
+MAN8+= ldif2ldbm.8
+MAN8+= mail500.8
+MAN8+= rcpt500.8
+MAN8+= slapd.8
+MAN8+= slurpd.8
+MLINKS+= ldap.3 cldap.3
+MLINKS+= ldap_add.3 ldap_add_s.3
+MLINKS+= ldap_bind.3 ldap_bind_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind_s.3
+MLINKS+= ldap_bind.3 ldap_set_rebind_proc.3
+MLINKS+= ldap_bind.3 ldap_simple_bind.3
+MLINKS+= ldap_bind.3 ldap_simple_bind_s.3
+MLINKS+= ldap_bind.3 ldap_unbind.3
+MLINKS+= ldap_bind.3 ldap_unbind_s.3
+MLINKS+= ldap_cache.3 ldap_destroy_cache.3
+MLINKS+= ldap_cache.3 ldap_disable_cache.3
+MLINKS+= ldap_cache.3 ldap_enable_cache.3
+MLINKS+= ldap_cache.3 ldap_flush_cache.3
+MLINKS+= ldap_cache.3 ldap_set_cache_options.3
+MLINKS+= ldap_cache.3 ldap_uncache_entry.3
+MLINKS+= ldap_cache.3 ldap_uncache_request.3
+MLINKS+= ldap_charset.3 ldap_8859_to_t61.3
+MLINKS+= ldap_charset.3 ldap_enable_translation.3
+MLINKS+= ldap_charset.3 ldap_set_string_translators.3
+MLINKS+= ldap_charset.3 ldap_t61_to_8859.3
+MLINKS+= ldap_charset.3 ldap_translate_from_t61.3
+MLINKS+= ldap_charset.3 ldap_translate_to_t61.3
+MLINKS+= ldap_compare.3 ldap_compare_s.3
+MLINKS+= ldap_delete.3 ldap_delete_s.3
+MLINKS+= ldap_disptmpl.3 ldap_first_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_free_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates_buf.3
+MLINKS+= ldap_disptmpl.3 ldap_next_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_oc2template.3
+MLINKS+= ldap_disptmpl.3 ldap_tmplattrs.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html_search.3
+MLINKS+= ldap_entry2text.3 ldap_entry2text_search.3
+MLINKS+= ldap_entry2text.3 ldap_vals2html.3
+MLINKS+= ldap_entry2text.3 ldap_vals2text.3
+MLINKS+= ldap_error.3 ld_errno.3
+MLINKS+= ldap_error.3 ldap_err2string.3
+MLINKS+= ldap_error.3 ldap_errlist.3
+MLINKS+= ldap_error.3 ldap_perror.3
+MLINKS+= ldap_error.3 ldap_result2error.3
+MLINKS+= ldap_first_attribute.3 ldap_next_attribute.3
+MLINKS+= ldap_first_entry.3 ldap_count_entries.3
+MLINKS+= ldap_first_entry.3 ldap_next_entry.3
+MLINKS+= ldap_friendly.3 ldap_free_friendlymap.3
+MLINKS+= ldap_friendly.3 ldap_friendly_name.3
+MLINKS+= ldap_get_dn.3 ldap_dn2ufn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dns.3
+MLINKS+= ldap_get_dn.3 ldap_is_dns_dn.3
+MLINKS+= ldap_get_values.3 ldap_count_values.3
+MLINKS+= ldap_get_values.3 ldap_count_values_len.3
+MLINKS+= ldap_get_values.3 ldap_get_values_len.3
+MLINKS+= ldap_get_values.3 ldap_value_free.3
+MLINKS+= ldap_get_values.3 ldap_value_free_len.3
+MLINKS+= ldap_getfilter.3 ldap_build_filter.3
+MLINKS+= ldap_getfilter.3 ldap_getfilter_free.3
+MLINKS+= ldap_getfilter.3 ldap_getfirstfilter.3
+MLINKS+= ldap_getfilter.3 ldap_getnextfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter_buf.3
+MLINKS+= ldap_getfilter.3 ldap_setfilteraffixes.3
+MLINKS+= ldap_modify.3 ldap_modify_s.3
+MLINKS+= ldap_modify.3 ldap_mods_free.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2_s.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn_s.3
+MLINKS+= ldap_open.3 ldap_init.3
+MLINKS+= ldap_result.3 ldap_msgfree.3
+MLINKS+= ldap_search.3 ldap_search_s.3
+MLINKS+= ldap_search.3 ldap_search_st.3
+MLINKS+= ldap_searchprefs.3 ldap_first_searchobj.3
+MLINKS+= ldap_searchprefs.3 ldap_free_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs_buf.3
+MLINKS+= ldap_searchprefs.3 ldap_next_searchobj.3
+MLINKS+= ldap_sort.3 ldap_sort_entries.3
+MLINKS+= ldap_sort.3 ldap_sort_strcasecmp.3
+MLINKS+= ldap_sort.3 ldap_sort_values.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_c.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_ct.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_s.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setfilter.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setprefix.3
+MLINKS+= ldap_ufn.3 ldap_ufn_timeout.3
+MLINKS+= ldap_url.3 ldap_free_urldesc.3
+MLINKS+= ldap_url.3 ldap_is_ldap_url.3
+MLINKS+= ldap_url.3 ldap_url_parse.3
+MLINKS+= ldap_url.3 ldap_url_search.3
+MLINKS+= ldap_url.3 ldap_url_search_s.3
+MLINKS+= ldap_url.3 ldap_url_search_st.3
+MLINKS+= ldapmodify.1 ldapadd.1
+MLINKS+= ldif2ldbm.8 ldif2id2children.8
+MLINKS+= ldif2ldbm.8 ldif2id2entry.8
+MLINKS+= ldif2ldbm.8 ldif2index.8
+MLINKS+= mail500.8 fax500.8
diff --git a/net/openldap20-server/pkg-comment b/net/openldap20-server/pkg-comment
new file mode 100644
index 000000000000..50adddf59d8a
--- /dev/null
+++ b/net/openldap20-server/pkg-comment
@@ -0,0 +1 @@
+Open source LDAP client and server software.
diff --git a/net/openldap20-server/pkg-descr b/net/openldap20-server/pkg-descr
new file mode 100644
index 000000000000..5fddbe209201
--- /dev/null
+++ b/net/openldap20-server/pkg-descr
@@ -0,0 +1,12 @@
+OpenLDAP is a suite of Lightweight Directory Access Protocol (LDAP) servers,
+clients, utilities and development tools. LDAP is an Internet standard
+directory service protocol that can be used stand-alone, or as a front end
+to an X.500 directory. LDAP is defined by RFCs 1777 through 1779.
+
+OpenLDAP is derived from the University of Michigan LDAP release 3.3 and is
+distributed under a Perl-style "Artistic License".
+
+http://www.openldap.org/
+
+Lachlan O'Dea
+ulmo@earthling.net
diff --git a/net/openldap20-server/pkg-plist b/net/openldap20-server/pkg-plist
new file mode 100644
index 000000000000..c62b9f0c8ca3
--- /dev/null
+++ b/net/openldap20-server/pkg-plist
@@ -0,0 +1,42 @@
+bin/ldapadd
+bin/ldapdelete
+bin/ldapmodify
+bin/ldapmodrdn
+bin/ldapsearch
+bin/ud
+bin/xrpcomp
+etc/ldap/go500gw.help
+etc/ldap/ldapfilter.conf
+etc/ldap/ldapfriendly
+etc/ldap/ldapsearchprefs.conf
+etc/ldap/ldaptemplates.conf
+etc/ldap/rcpt500.help
+etc/ldap/slapd.at.conf
+etc/ldap/slapd.conf
+etc/ldap/slapd.oc.conf
+include/disptmpl.h
+include/lber.h
+include/ldap.h
+include/proto-lber.h
+include/proto-ldap.h
+include/srchpref.h
+lib/liblber.a
+lib/libldap.a
+libexec/fax500
+libexec/go500
+libexec/go500gw
+libexec/in.xfingerd
+libexec/mail500
+libexec/rcpt500
+libexec/rp500
+libexec/slapd
+libexec/slurpd
+sbin/centipede
+sbin/ldbmcat
+sbin/ldbmtest
+sbin/ldif
+sbin/ldif2id2children
+sbin/ldif2id2entry
+sbin/ldif2index
+sbin/ldif2ldbm
+@dirrm etc/ldap
diff --git a/net/openldap20/Makefile b/net/openldap20/Makefile
new file mode 100644
index 000000000000..5a3db43bf9ef
--- /dev/null
+++ b/net/openldap20/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: openldap
+# Version required: 1.0.1
+# Date created: 20 Sep 1998
+# Whom: Lachlan O'Dea
+#
+# $Id$
+#
+
+DISTNAME= openldap-1.0.1
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ulmo@earthling.net
+
+WRKSRC= ${WRKDIR}/ldap
+MANCOMPRESSED= yes
+
+.include "files/manpages"
+
+MAKE_ENV= LDAP_PREFIX=${PREFIX} \
+ EXTRACFLAGS="${CFLAGS}"
+
+pre-patch:
+ ${CP} ${WRKSRC}/Make-common.dist ${WRKSRC}/Make-common
+
+post-install:
+ strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
+ ${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
+ ${PREFIX}/libexec/fax500 ${PREFIX}/libexec/go500 \
+ ${PREFIX}/libexec/go500gw ${PREFIX}/libexec/in.xfingerd \
+ ${PREFIX}/libexec/mail500 ${PREFIX}/libexec/rcpt500 \
+ ${PREFIX}/libexec/rp500 ${PREFIX}/libexec/slapd \
+ ${PREFIX}/libexec/slurpd ${PREFIX}/sbin/centipede \
+ ${PREFIX}/sbin/ldbmcat ${PREFIX}/sbin/ldbmtest ${PREFIX}/sbin/ldif \
+ ${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
+ ${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm
+
+.include <bsd.port.mk>
diff --git a/net/openldap20/distinfo b/net/openldap20/distinfo
new file mode 100644
index 000000000000..9357252deebc
--- /dev/null
+++ b/net/openldap20/distinfo
@@ -0,0 +1 @@
+MD5 (openldap-1.0.1.tgz) = 26ea15718640bd76a41598ce413c8e24
diff --git a/net/openldap20/files/manpages b/net/openldap20/files/manpages
new file mode 100644
index 000000000000..5cf07a5e7a8d
--- /dev/null
+++ b/net/openldap20/files/manpages
@@ -0,0 +1,164 @@
+MAN1+= ldapdelete.1
+MAN1+= ldapmodify.1
+MAN1+= ldapmodrdn.1
+MAN1+= ldapsearch.1
+MAN1+= ud.1
+MAN3+= cldap_close.3
+MAN3+= cldap_open.3
+MAN3+= cldap_search_s.3
+MAN3+= cldap_setretryinfo.3
+MAN3+= lber-decode.3
+MAN3+= lber-encode.3
+MAN3+= ldap.3
+MAN3+= ldap_abandon.3
+MAN3+= ldap_add.3
+MAN3+= ldap_bind.3
+MAN3+= ldap_cache.3
+MAN3+= ldap_charset.3
+MAN3+= ldap_compare.3
+MAN3+= ldap_delete.3
+MAN3+= ldap_disptmpl.3
+MAN3+= ldap_entry2text.3
+MAN3+= ldap_error.3
+MAN3+= ldap_first_attribute.3
+MAN3+= ldap_first_entry.3
+MAN3+= ldap_friendly.3
+MAN3+= ldap_get_dn.3
+MAN3+= ldap_get_values.3
+MAN3+= ldap_getfilter.3
+MAN3+= ldap_modify.3
+MAN3+= ldap_modrdn.3
+MAN3+= ldap_open.3
+MAN3+= ldap_result.3
+MAN3+= ldap_search.3
+MAN3+= ldap_searchprefs.3
+MAN3+= ldap_sort.3
+MAN3+= ldap_ufn.3
+MAN3+= ldap_url.3
+MAN3+= regex.3
+MAN5+= ldapfilter.conf.5
+MAN5+= ldapfriendly.5
+MAN5+= ldapsearchprefs.conf.5
+MAN5+= ldaptemplates.conf.5
+MAN5+= ldif.5
+MAN5+= slapd.conf.5
+MAN5+= slapd.replog.5
+MAN5+= ud.conf.5
+MAN8+= centipede.8
+MAN8+= chlog2replog.8
+MAN8+= edb2ldif.8
+MAN8+= go500.8
+MAN8+= go500gw.8
+MAN8+= in.xfingerd.8
+MAN8+= ldapd.8
+MAN8+= ldbmcat.8
+MAN8+= ldif.8
+MAN8+= ldif2ldbm.8
+MAN8+= mail500.8
+MAN8+= rcpt500.8
+MAN8+= slapd.8
+MAN8+= slurpd.8
+MLINKS+= ldap.3 cldap.3
+MLINKS+= ldap_add.3 ldap_add_s.3
+MLINKS+= ldap_bind.3 ldap_bind_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind_s.3
+MLINKS+= ldap_bind.3 ldap_set_rebind_proc.3
+MLINKS+= ldap_bind.3 ldap_simple_bind.3
+MLINKS+= ldap_bind.3 ldap_simple_bind_s.3
+MLINKS+= ldap_bind.3 ldap_unbind.3
+MLINKS+= ldap_bind.3 ldap_unbind_s.3
+MLINKS+= ldap_cache.3 ldap_destroy_cache.3
+MLINKS+= ldap_cache.3 ldap_disable_cache.3
+MLINKS+= ldap_cache.3 ldap_enable_cache.3
+MLINKS+= ldap_cache.3 ldap_flush_cache.3
+MLINKS+= ldap_cache.3 ldap_set_cache_options.3
+MLINKS+= ldap_cache.3 ldap_uncache_entry.3
+MLINKS+= ldap_cache.3 ldap_uncache_request.3
+MLINKS+= ldap_charset.3 ldap_8859_to_t61.3
+MLINKS+= ldap_charset.3 ldap_enable_translation.3
+MLINKS+= ldap_charset.3 ldap_set_string_translators.3
+MLINKS+= ldap_charset.3 ldap_t61_to_8859.3
+MLINKS+= ldap_charset.3 ldap_translate_from_t61.3
+MLINKS+= ldap_charset.3 ldap_translate_to_t61.3
+MLINKS+= ldap_compare.3 ldap_compare_s.3
+MLINKS+= ldap_delete.3 ldap_delete_s.3
+MLINKS+= ldap_disptmpl.3 ldap_first_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_free_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates_buf.3
+MLINKS+= ldap_disptmpl.3 ldap_next_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_oc2template.3
+MLINKS+= ldap_disptmpl.3 ldap_tmplattrs.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html_search.3
+MLINKS+= ldap_entry2text.3 ldap_entry2text_search.3
+MLINKS+= ldap_entry2text.3 ldap_vals2html.3
+MLINKS+= ldap_entry2text.3 ldap_vals2text.3
+MLINKS+= ldap_error.3 ld_errno.3
+MLINKS+= ldap_error.3 ldap_err2string.3
+MLINKS+= ldap_error.3 ldap_errlist.3
+MLINKS+= ldap_error.3 ldap_perror.3
+MLINKS+= ldap_error.3 ldap_result2error.3
+MLINKS+= ldap_first_attribute.3 ldap_next_attribute.3
+MLINKS+= ldap_first_entry.3 ldap_count_entries.3
+MLINKS+= ldap_first_entry.3 ldap_next_entry.3
+MLINKS+= ldap_friendly.3 ldap_free_friendlymap.3
+MLINKS+= ldap_friendly.3 ldap_friendly_name.3
+MLINKS+= ldap_get_dn.3 ldap_dn2ufn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dns.3
+MLINKS+= ldap_get_dn.3 ldap_is_dns_dn.3
+MLINKS+= ldap_get_values.3 ldap_count_values.3
+MLINKS+= ldap_get_values.3 ldap_count_values_len.3
+MLINKS+= ldap_get_values.3 ldap_get_values_len.3
+MLINKS+= ldap_get_values.3 ldap_value_free.3
+MLINKS+= ldap_get_values.3 ldap_value_free_len.3
+MLINKS+= ldap_getfilter.3 ldap_build_filter.3
+MLINKS+= ldap_getfilter.3 ldap_getfilter_free.3
+MLINKS+= ldap_getfilter.3 ldap_getfirstfilter.3
+MLINKS+= ldap_getfilter.3 ldap_getnextfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter_buf.3
+MLINKS+= ldap_getfilter.3 ldap_setfilteraffixes.3
+MLINKS+= ldap_modify.3 ldap_modify_s.3
+MLINKS+= ldap_modify.3 ldap_mods_free.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2_s.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn_s.3
+MLINKS+= ldap_open.3 ldap_init.3
+MLINKS+= ldap_result.3 ldap_msgfree.3
+MLINKS+= ldap_search.3 ldap_search_s.3
+MLINKS+= ldap_search.3 ldap_search_st.3
+MLINKS+= ldap_searchprefs.3 ldap_first_searchobj.3
+MLINKS+= ldap_searchprefs.3 ldap_free_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs_buf.3
+MLINKS+= ldap_searchprefs.3 ldap_next_searchobj.3
+MLINKS+= ldap_sort.3 ldap_sort_entries.3
+MLINKS+= ldap_sort.3 ldap_sort_strcasecmp.3
+MLINKS+= ldap_sort.3 ldap_sort_values.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_c.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_ct.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_s.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setfilter.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setprefix.3
+MLINKS+= ldap_ufn.3 ldap_ufn_timeout.3
+MLINKS+= ldap_url.3 ldap_free_urldesc.3
+MLINKS+= ldap_url.3 ldap_is_ldap_url.3
+MLINKS+= ldap_url.3 ldap_url_parse.3
+MLINKS+= ldap_url.3 ldap_url_search.3
+MLINKS+= ldap_url.3 ldap_url_search_s.3
+MLINKS+= ldap_url.3 ldap_url_search_st.3
+MLINKS+= ldapmodify.1 ldapadd.1
+MLINKS+= ldif2ldbm.8 ldif2id2children.8
+MLINKS+= ldif2ldbm.8 ldif2id2entry.8
+MLINKS+= ldif2ldbm.8 ldif2index.8
+MLINKS+= mail500.8 fax500.8
diff --git a/net/openldap20/pkg-comment b/net/openldap20/pkg-comment
new file mode 100644
index 000000000000..50adddf59d8a
--- /dev/null
+++ b/net/openldap20/pkg-comment
@@ -0,0 +1 @@
+Open source LDAP client and server software.
diff --git a/net/openldap20/pkg-descr b/net/openldap20/pkg-descr
new file mode 100644
index 000000000000..5fddbe209201
--- /dev/null
+++ b/net/openldap20/pkg-descr
@@ -0,0 +1,12 @@
+OpenLDAP is a suite of Lightweight Directory Access Protocol (LDAP) servers,
+clients, utilities and development tools. LDAP is an Internet standard
+directory service protocol that can be used stand-alone, or as a front end
+to an X.500 directory. LDAP is defined by RFCs 1777 through 1779.
+
+OpenLDAP is derived from the University of Michigan LDAP release 3.3 and is
+distributed under a Perl-style "Artistic License".
+
+http://www.openldap.org/
+
+Lachlan O'Dea
+ulmo@earthling.net
diff --git a/net/openldap20/pkg-plist b/net/openldap20/pkg-plist
new file mode 100644
index 000000000000..c62b9f0c8ca3
--- /dev/null
+++ b/net/openldap20/pkg-plist
@@ -0,0 +1,42 @@
+bin/ldapadd
+bin/ldapdelete
+bin/ldapmodify
+bin/ldapmodrdn
+bin/ldapsearch
+bin/ud
+bin/xrpcomp
+etc/ldap/go500gw.help
+etc/ldap/ldapfilter.conf
+etc/ldap/ldapfriendly
+etc/ldap/ldapsearchprefs.conf
+etc/ldap/ldaptemplates.conf
+etc/ldap/rcpt500.help
+etc/ldap/slapd.at.conf
+etc/ldap/slapd.conf
+etc/ldap/slapd.oc.conf
+include/disptmpl.h
+include/lber.h
+include/ldap.h
+include/proto-lber.h
+include/proto-ldap.h
+include/srchpref.h
+lib/liblber.a
+lib/libldap.a
+libexec/fax500
+libexec/go500
+libexec/go500gw
+libexec/in.xfingerd
+libexec/mail500
+libexec/rcpt500
+libexec/rp500
+libexec/slapd
+libexec/slurpd
+sbin/centipede
+sbin/ldbmcat
+sbin/ldbmtest
+sbin/ldif
+sbin/ldif2id2children
+sbin/ldif2id2entry
+sbin/ldif2index
+sbin/ldif2ldbm
+@dirrm etc/ldap
diff --git a/net/openldap21-server/Makefile b/net/openldap21-server/Makefile
new file mode 100644
index 000000000000..5a3db43bf9ef
--- /dev/null
+++ b/net/openldap21-server/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: openldap
+# Version required: 1.0.1
+# Date created: 20 Sep 1998
+# Whom: Lachlan O'Dea
+#
+# $Id$
+#
+
+DISTNAME= openldap-1.0.1
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ulmo@earthling.net
+
+WRKSRC= ${WRKDIR}/ldap
+MANCOMPRESSED= yes
+
+.include "files/manpages"
+
+MAKE_ENV= LDAP_PREFIX=${PREFIX} \
+ EXTRACFLAGS="${CFLAGS}"
+
+pre-patch:
+ ${CP} ${WRKSRC}/Make-common.dist ${WRKSRC}/Make-common
+
+post-install:
+ strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
+ ${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
+ ${PREFIX}/libexec/fax500 ${PREFIX}/libexec/go500 \
+ ${PREFIX}/libexec/go500gw ${PREFIX}/libexec/in.xfingerd \
+ ${PREFIX}/libexec/mail500 ${PREFIX}/libexec/rcpt500 \
+ ${PREFIX}/libexec/rp500 ${PREFIX}/libexec/slapd \
+ ${PREFIX}/libexec/slurpd ${PREFIX}/sbin/centipede \
+ ${PREFIX}/sbin/ldbmcat ${PREFIX}/sbin/ldbmtest ${PREFIX}/sbin/ldif \
+ ${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
+ ${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm
+
+.include <bsd.port.mk>
diff --git a/net/openldap21-server/distinfo b/net/openldap21-server/distinfo
new file mode 100644
index 000000000000..9357252deebc
--- /dev/null
+++ b/net/openldap21-server/distinfo
@@ -0,0 +1 @@
+MD5 (openldap-1.0.1.tgz) = 26ea15718640bd76a41598ce413c8e24
diff --git a/net/openldap21-server/files/manpages b/net/openldap21-server/files/manpages
new file mode 100644
index 000000000000..5cf07a5e7a8d
--- /dev/null
+++ b/net/openldap21-server/files/manpages
@@ -0,0 +1,164 @@
+MAN1+= ldapdelete.1
+MAN1+= ldapmodify.1
+MAN1+= ldapmodrdn.1
+MAN1+= ldapsearch.1
+MAN1+= ud.1
+MAN3+= cldap_close.3
+MAN3+= cldap_open.3
+MAN3+= cldap_search_s.3
+MAN3+= cldap_setretryinfo.3
+MAN3+= lber-decode.3
+MAN3+= lber-encode.3
+MAN3+= ldap.3
+MAN3+= ldap_abandon.3
+MAN3+= ldap_add.3
+MAN3+= ldap_bind.3
+MAN3+= ldap_cache.3
+MAN3+= ldap_charset.3
+MAN3+= ldap_compare.3
+MAN3+= ldap_delete.3
+MAN3+= ldap_disptmpl.3
+MAN3+= ldap_entry2text.3
+MAN3+= ldap_error.3
+MAN3+= ldap_first_attribute.3
+MAN3+= ldap_first_entry.3
+MAN3+= ldap_friendly.3
+MAN3+= ldap_get_dn.3
+MAN3+= ldap_get_values.3
+MAN3+= ldap_getfilter.3
+MAN3+= ldap_modify.3
+MAN3+= ldap_modrdn.3
+MAN3+= ldap_open.3
+MAN3+= ldap_result.3
+MAN3+= ldap_search.3
+MAN3+= ldap_searchprefs.3
+MAN3+= ldap_sort.3
+MAN3+= ldap_ufn.3
+MAN3+= ldap_url.3
+MAN3+= regex.3
+MAN5+= ldapfilter.conf.5
+MAN5+= ldapfriendly.5
+MAN5+= ldapsearchprefs.conf.5
+MAN5+= ldaptemplates.conf.5
+MAN5+= ldif.5
+MAN5+= slapd.conf.5
+MAN5+= slapd.replog.5
+MAN5+= ud.conf.5
+MAN8+= centipede.8
+MAN8+= chlog2replog.8
+MAN8+= edb2ldif.8
+MAN8+= go500.8
+MAN8+= go500gw.8
+MAN8+= in.xfingerd.8
+MAN8+= ldapd.8
+MAN8+= ldbmcat.8
+MAN8+= ldif.8
+MAN8+= ldif2ldbm.8
+MAN8+= mail500.8
+MAN8+= rcpt500.8
+MAN8+= slapd.8
+MAN8+= slurpd.8
+MLINKS+= ldap.3 cldap.3
+MLINKS+= ldap_add.3 ldap_add_s.3
+MLINKS+= ldap_bind.3 ldap_bind_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind_s.3
+MLINKS+= ldap_bind.3 ldap_set_rebind_proc.3
+MLINKS+= ldap_bind.3 ldap_simple_bind.3
+MLINKS+= ldap_bind.3 ldap_simple_bind_s.3
+MLINKS+= ldap_bind.3 ldap_unbind.3
+MLINKS+= ldap_bind.3 ldap_unbind_s.3
+MLINKS+= ldap_cache.3 ldap_destroy_cache.3
+MLINKS+= ldap_cache.3 ldap_disable_cache.3
+MLINKS+= ldap_cache.3 ldap_enable_cache.3
+MLINKS+= ldap_cache.3 ldap_flush_cache.3
+MLINKS+= ldap_cache.3 ldap_set_cache_options.3
+MLINKS+= ldap_cache.3 ldap_uncache_entry.3
+MLINKS+= ldap_cache.3 ldap_uncache_request.3
+MLINKS+= ldap_charset.3 ldap_8859_to_t61.3
+MLINKS+= ldap_charset.3 ldap_enable_translation.3
+MLINKS+= ldap_charset.3 ldap_set_string_translators.3
+MLINKS+= ldap_charset.3 ldap_t61_to_8859.3
+MLINKS+= ldap_charset.3 ldap_translate_from_t61.3
+MLINKS+= ldap_charset.3 ldap_translate_to_t61.3
+MLINKS+= ldap_compare.3 ldap_compare_s.3
+MLINKS+= ldap_delete.3 ldap_delete_s.3
+MLINKS+= ldap_disptmpl.3 ldap_first_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_free_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates_buf.3
+MLINKS+= ldap_disptmpl.3 ldap_next_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_oc2template.3
+MLINKS+= ldap_disptmpl.3 ldap_tmplattrs.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html_search.3
+MLINKS+= ldap_entry2text.3 ldap_entry2text_search.3
+MLINKS+= ldap_entry2text.3 ldap_vals2html.3
+MLINKS+= ldap_entry2text.3 ldap_vals2text.3
+MLINKS+= ldap_error.3 ld_errno.3
+MLINKS+= ldap_error.3 ldap_err2string.3
+MLINKS+= ldap_error.3 ldap_errlist.3
+MLINKS+= ldap_error.3 ldap_perror.3
+MLINKS+= ldap_error.3 ldap_result2error.3
+MLINKS+= ldap_first_attribute.3 ldap_next_attribute.3
+MLINKS+= ldap_first_entry.3 ldap_count_entries.3
+MLINKS+= ldap_first_entry.3 ldap_next_entry.3
+MLINKS+= ldap_friendly.3 ldap_free_friendlymap.3
+MLINKS+= ldap_friendly.3 ldap_friendly_name.3
+MLINKS+= ldap_get_dn.3 ldap_dn2ufn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dns.3
+MLINKS+= ldap_get_dn.3 ldap_is_dns_dn.3
+MLINKS+= ldap_get_values.3 ldap_count_values.3
+MLINKS+= ldap_get_values.3 ldap_count_values_len.3
+MLINKS+= ldap_get_values.3 ldap_get_values_len.3
+MLINKS+= ldap_get_values.3 ldap_value_free.3
+MLINKS+= ldap_get_values.3 ldap_value_free_len.3
+MLINKS+= ldap_getfilter.3 ldap_build_filter.3
+MLINKS+= ldap_getfilter.3 ldap_getfilter_free.3
+MLINKS+= ldap_getfilter.3 ldap_getfirstfilter.3
+MLINKS+= ldap_getfilter.3 ldap_getnextfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter_buf.3
+MLINKS+= ldap_getfilter.3 ldap_setfilteraffixes.3
+MLINKS+= ldap_modify.3 ldap_modify_s.3
+MLINKS+= ldap_modify.3 ldap_mods_free.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2_s.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn_s.3
+MLINKS+= ldap_open.3 ldap_init.3
+MLINKS+= ldap_result.3 ldap_msgfree.3
+MLINKS+= ldap_search.3 ldap_search_s.3
+MLINKS+= ldap_search.3 ldap_search_st.3
+MLINKS+= ldap_searchprefs.3 ldap_first_searchobj.3
+MLINKS+= ldap_searchprefs.3 ldap_free_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs_buf.3
+MLINKS+= ldap_searchprefs.3 ldap_next_searchobj.3
+MLINKS+= ldap_sort.3 ldap_sort_entries.3
+MLINKS+= ldap_sort.3 ldap_sort_strcasecmp.3
+MLINKS+= ldap_sort.3 ldap_sort_values.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_c.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_ct.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_s.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setfilter.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setprefix.3
+MLINKS+= ldap_ufn.3 ldap_ufn_timeout.3
+MLINKS+= ldap_url.3 ldap_free_urldesc.3
+MLINKS+= ldap_url.3 ldap_is_ldap_url.3
+MLINKS+= ldap_url.3 ldap_url_parse.3
+MLINKS+= ldap_url.3 ldap_url_search.3
+MLINKS+= ldap_url.3 ldap_url_search_s.3
+MLINKS+= ldap_url.3 ldap_url_search_st.3
+MLINKS+= ldapmodify.1 ldapadd.1
+MLINKS+= ldif2ldbm.8 ldif2id2children.8
+MLINKS+= ldif2ldbm.8 ldif2id2entry.8
+MLINKS+= ldif2ldbm.8 ldif2index.8
+MLINKS+= mail500.8 fax500.8
diff --git a/net/openldap21-server/pkg-comment b/net/openldap21-server/pkg-comment
new file mode 100644
index 000000000000..50adddf59d8a
--- /dev/null
+++ b/net/openldap21-server/pkg-comment
@@ -0,0 +1 @@
+Open source LDAP client and server software.
diff --git a/net/openldap21-server/pkg-descr b/net/openldap21-server/pkg-descr
new file mode 100644
index 000000000000..5fddbe209201
--- /dev/null
+++ b/net/openldap21-server/pkg-descr
@@ -0,0 +1,12 @@
+OpenLDAP is a suite of Lightweight Directory Access Protocol (LDAP) servers,
+clients, utilities and development tools. LDAP is an Internet standard
+directory service protocol that can be used stand-alone, or as a front end
+to an X.500 directory. LDAP is defined by RFCs 1777 through 1779.
+
+OpenLDAP is derived from the University of Michigan LDAP release 3.3 and is
+distributed under a Perl-style "Artistic License".
+
+http://www.openldap.org/
+
+Lachlan O'Dea
+ulmo@earthling.net
diff --git a/net/openldap21-server/pkg-plist b/net/openldap21-server/pkg-plist
new file mode 100644
index 000000000000..c62b9f0c8ca3
--- /dev/null
+++ b/net/openldap21-server/pkg-plist
@@ -0,0 +1,42 @@
+bin/ldapadd
+bin/ldapdelete
+bin/ldapmodify
+bin/ldapmodrdn
+bin/ldapsearch
+bin/ud
+bin/xrpcomp
+etc/ldap/go500gw.help
+etc/ldap/ldapfilter.conf
+etc/ldap/ldapfriendly
+etc/ldap/ldapsearchprefs.conf
+etc/ldap/ldaptemplates.conf
+etc/ldap/rcpt500.help
+etc/ldap/slapd.at.conf
+etc/ldap/slapd.conf
+etc/ldap/slapd.oc.conf
+include/disptmpl.h
+include/lber.h
+include/ldap.h
+include/proto-lber.h
+include/proto-ldap.h
+include/srchpref.h
+lib/liblber.a
+lib/libldap.a
+libexec/fax500
+libexec/go500
+libexec/go500gw
+libexec/in.xfingerd
+libexec/mail500
+libexec/rcpt500
+libexec/rp500
+libexec/slapd
+libexec/slurpd
+sbin/centipede
+sbin/ldbmcat
+sbin/ldbmtest
+sbin/ldif
+sbin/ldif2id2children
+sbin/ldif2id2entry
+sbin/ldif2index
+sbin/ldif2ldbm
+@dirrm etc/ldap
diff --git a/net/openldap21/Makefile b/net/openldap21/Makefile
new file mode 100644
index 000000000000..5a3db43bf9ef
--- /dev/null
+++ b/net/openldap21/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: openldap
+# Version required: 1.0.1
+# Date created: 20 Sep 1998
+# Whom: Lachlan O'Dea
+#
+# $Id$
+#
+
+DISTNAME= openldap-1.0.1
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ulmo@earthling.net
+
+WRKSRC= ${WRKDIR}/ldap
+MANCOMPRESSED= yes
+
+.include "files/manpages"
+
+MAKE_ENV= LDAP_PREFIX=${PREFIX} \
+ EXTRACFLAGS="${CFLAGS}"
+
+pre-patch:
+ ${CP} ${WRKSRC}/Make-common.dist ${WRKSRC}/Make-common
+
+post-install:
+ strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
+ ${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
+ ${PREFIX}/libexec/fax500 ${PREFIX}/libexec/go500 \
+ ${PREFIX}/libexec/go500gw ${PREFIX}/libexec/in.xfingerd \
+ ${PREFIX}/libexec/mail500 ${PREFIX}/libexec/rcpt500 \
+ ${PREFIX}/libexec/rp500 ${PREFIX}/libexec/slapd \
+ ${PREFIX}/libexec/slurpd ${PREFIX}/sbin/centipede \
+ ${PREFIX}/sbin/ldbmcat ${PREFIX}/sbin/ldbmtest ${PREFIX}/sbin/ldif \
+ ${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
+ ${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm
+
+.include <bsd.port.mk>
diff --git a/net/openldap21/distinfo b/net/openldap21/distinfo
new file mode 100644
index 000000000000..9357252deebc
--- /dev/null
+++ b/net/openldap21/distinfo
@@ -0,0 +1 @@
+MD5 (openldap-1.0.1.tgz) = 26ea15718640bd76a41598ce413c8e24
diff --git a/net/openldap21/files/manpages b/net/openldap21/files/manpages
new file mode 100644
index 000000000000..5cf07a5e7a8d
--- /dev/null
+++ b/net/openldap21/files/manpages
@@ -0,0 +1,164 @@
+MAN1+= ldapdelete.1
+MAN1+= ldapmodify.1
+MAN1+= ldapmodrdn.1
+MAN1+= ldapsearch.1
+MAN1+= ud.1
+MAN3+= cldap_close.3
+MAN3+= cldap_open.3
+MAN3+= cldap_search_s.3
+MAN3+= cldap_setretryinfo.3
+MAN3+= lber-decode.3
+MAN3+= lber-encode.3
+MAN3+= ldap.3
+MAN3+= ldap_abandon.3
+MAN3+= ldap_add.3
+MAN3+= ldap_bind.3
+MAN3+= ldap_cache.3
+MAN3+= ldap_charset.3
+MAN3+= ldap_compare.3
+MAN3+= ldap_delete.3
+MAN3+= ldap_disptmpl.3
+MAN3+= ldap_entry2text.3
+MAN3+= ldap_error.3
+MAN3+= ldap_first_attribute.3
+MAN3+= ldap_first_entry.3
+MAN3+= ldap_friendly.3
+MAN3+= ldap_get_dn.3
+MAN3+= ldap_get_values.3
+MAN3+= ldap_getfilter.3
+MAN3+= ldap_modify.3
+MAN3+= ldap_modrdn.3
+MAN3+= ldap_open.3
+MAN3+= ldap_result.3
+MAN3+= ldap_search.3
+MAN3+= ldap_searchprefs.3
+MAN3+= ldap_sort.3
+MAN3+= ldap_ufn.3
+MAN3+= ldap_url.3
+MAN3+= regex.3
+MAN5+= ldapfilter.conf.5
+MAN5+= ldapfriendly.5
+MAN5+= ldapsearchprefs.conf.5
+MAN5+= ldaptemplates.conf.5
+MAN5+= ldif.5
+MAN5+= slapd.conf.5
+MAN5+= slapd.replog.5
+MAN5+= ud.conf.5
+MAN8+= centipede.8
+MAN8+= chlog2replog.8
+MAN8+= edb2ldif.8
+MAN8+= go500.8
+MAN8+= go500gw.8
+MAN8+= in.xfingerd.8
+MAN8+= ldapd.8
+MAN8+= ldbmcat.8
+MAN8+= ldif.8
+MAN8+= ldif2ldbm.8
+MAN8+= mail500.8
+MAN8+= rcpt500.8
+MAN8+= slapd.8
+MAN8+= slurpd.8
+MLINKS+= ldap.3 cldap.3
+MLINKS+= ldap_add.3 ldap_add_s.3
+MLINKS+= ldap_bind.3 ldap_bind_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind_s.3
+MLINKS+= ldap_bind.3 ldap_set_rebind_proc.3
+MLINKS+= ldap_bind.3 ldap_simple_bind.3
+MLINKS+= ldap_bind.3 ldap_simple_bind_s.3
+MLINKS+= ldap_bind.3 ldap_unbind.3
+MLINKS+= ldap_bind.3 ldap_unbind_s.3
+MLINKS+= ldap_cache.3 ldap_destroy_cache.3
+MLINKS+= ldap_cache.3 ldap_disable_cache.3
+MLINKS+= ldap_cache.3 ldap_enable_cache.3
+MLINKS+= ldap_cache.3 ldap_flush_cache.3
+MLINKS+= ldap_cache.3 ldap_set_cache_options.3
+MLINKS+= ldap_cache.3 ldap_uncache_entry.3
+MLINKS+= ldap_cache.3 ldap_uncache_request.3
+MLINKS+= ldap_charset.3 ldap_8859_to_t61.3
+MLINKS+= ldap_charset.3 ldap_enable_translation.3
+MLINKS+= ldap_charset.3 ldap_set_string_translators.3
+MLINKS+= ldap_charset.3 ldap_t61_to_8859.3
+MLINKS+= ldap_charset.3 ldap_translate_from_t61.3
+MLINKS+= ldap_charset.3 ldap_translate_to_t61.3
+MLINKS+= ldap_compare.3 ldap_compare_s.3
+MLINKS+= ldap_delete.3 ldap_delete_s.3
+MLINKS+= ldap_disptmpl.3 ldap_first_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_free_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates_buf.3
+MLINKS+= ldap_disptmpl.3 ldap_next_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_oc2template.3
+MLINKS+= ldap_disptmpl.3 ldap_tmplattrs.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html_search.3
+MLINKS+= ldap_entry2text.3 ldap_entry2text_search.3
+MLINKS+= ldap_entry2text.3 ldap_vals2html.3
+MLINKS+= ldap_entry2text.3 ldap_vals2text.3
+MLINKS+= ldap_error.3 ld_errno.3
+MLINKS+= ldap_error.3 ldap_err2string.3
+MLINKS+= ldap_error.3 ldap_errlist.3
+MLINKS+= ldap_error.3 ldap_perror.3
+MLINKS+= ldap_error.3 ldap_result2error.3
+MLINKS+= ldap_first_attribute.3 ldap_next_attribute.3
+MLINKS+= ldap_first_entry.3 ldap_count_entries.3
+MLINKS+= ldap_first_entry.3 ldap_next_entry.3
+MLINKS+= ldap_friendly.3 ldap_free_friendlymap.3
+MLINKS+= ldap_friendly.3 ldap_friendly_name.3
+MLINKS+= ldap_get_dn.3 ldap_dn2ufn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dns.3
+MLINKS+= ldap_get_dn.3 ldap_is_dns_dn.3
+MLINKS+= ldap_get_values.3 ldap_count_values.3
+MLINKS+= ldap_get_values.3 ldap_count_values_len.3
+MLINKS+= ldap_get_values.3 ldap_get_values_len.3
+MLINKS+= ldap_get_values.3 ldap_value_free.3
+MLINKS+= ldap_get_values.3 ldap_value_free_len.3
+MLINKS+= ldap_getfilter.3 ldap_build_filter.3
+MLINKS+= ldap_getfilter.3 ldap_getfilter_free.3
+MLINKS+= ldap_getfilter.3 ldap_getfirstfilter.3
+MLINKS+= ldap_getfilter.3 ldap_getnextfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter_buf.3
+MLINKS+= ldap_getfilter.3 ldap_setfilteraffixes.3
+MLINKS+= ldap_modify.3 ldap_modify_s.3
+MLINKS+= ldap_modify.3 ldap_mods_free.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2_s.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn_s.3
+MLINKS+= ldap_open.3 ldap_init.3
+MLINKS+= ldap_result.3 ldap_msgfree.3
+MLINKS+= ldap_search.3 ldap_search_s.3
+MLINKS+= ldap_search.3 ldap_search_st.3
+MLINKS+= ldap_searchprefs.3 ldap_first_searchobj.3
+MLINKS+= ldap_searchprefs.3 ldap_free_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs_buf.3
+MLINKS+= ldap_searchprefs.3 ldap_next_searchobj.3
+MLINKS+= ldap_sort.3 ldap_sort_entries.3
+MLINKS+= ldap_sort.3 ldap_sort_strcasecmp.3
+MLINKS+= ldap_sort.3 ldap_sort_values.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_c.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_ct.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_s.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setfilter.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setprefix.3
+MLINKS+= ldap_ufn.3 ldap_ufn_timeout.3
+MLINKS+= ldap_url.3 ldap_free_urldesc.3
+MLINKS+= ldap_url.3 ldap_is_ldap_url.3
+MLINKS+= ldap_url.3 ldap_url_parse.3
+MLINKS+= ldap_url.3 ldap_url_search.3
+MLINKS+= ldap_url.3 ldap_url_search_s.3
+MLINKS+= ldap_url.3 ldap_url_search_st.3
+MLINKS+= ldapmodify.1 ldapadd.1
+MLINKS+= ldif2ldbm.8 ldif2id2children.8
+MLINKS+= ldif2ldbm.8 ldif2id2entry.8
+MLINKS+= ldif2ldbm.8 ldif2index.8
+MLINKS+= mail500.8 fax500.8
diff --git a/net/openldap21/pkg-comment b/net/openldap21/pkg-comment
new file mode 100644
index 000000000000..50adddf59d8a
--- /dev/null
+++ b/net/openldap21/pkg-comment
@@ -0,0 +1 @@
+Open source LDAP client and server software.
diff --git a/net/openldap21/pkg-descr b/net/openldap21/pkg-descr
new file mode 100644
index 000000000000..5fddbe209201
--- /dev/null
+++ b/net/openldap21/pkg-descr
@@ -0,0 +1,12 @@
+OpenLDAP is a suite of Lightweight Directory Access Protocol (LDAP) servers,
+clients, utilities and development tools. LDAP is an Internet standard
+directory service protocol that can be used stand-alone, or as a front end
+to an X.500 directory. LDAP is defined by RFCs 1777 through 1779.
+
+OpenLDAP is derived from the University of Michigan LDAP release 3.3 and is
+distributed under a Perl-style "Artistic License".
+
+http://www.openldap.org/
+
+Lachlan O'Dea
+ulmo@earthling.net
diff --git a/net/openldap21/pkg-plist b/net/openldap21/pkg-plist
new file mode 100644
index 000000000000..c62b9f0c8ca3
--- /dev/null
+++ b/net/openldap21/pkg-plist
@@ -0,0 +1,42 @@
+bin/ldapadd
+bin/ldapdelete
+bin/ldapmodify
+bin/ldapmodrdn
+bin/ldapsearch
+bin/ud
+bin/xrpcomp
+etc/ldap/go500gw.help
+etc/ldap/ldapfilter.conf
+etc/ldap/ldapfriendly
+etc/ldap/ldapsearchprefs.conf
+etc/ldap/ldaptemplates.conf
+etc/ldap/rcpt500.help
+etc/ldap/slapd.at.conf
+etc/ldap/slapd.conf
+etc/ldap/slapd.oc.conf
+include/disptmpl.h
+include/lber.h
+include/ldap.h
+include/proto-lber.h
+include/proto-ldap.h
+include/srchpref.h
+lib/liblber.a
+lib/libldap.a
+libexec/fax500
+libexec/go500
+libexec/go500gw
+libexec/in.xfingerd
+libexec/mail500
+libexec/rcpt500
+libexec/rp500
+libexec/slapd
+libexec/slurpd
+sbin/centipede
+sbin/ldbmcat
+sbin/ldbmtest
+sbin/ldif
+sbin/ldif2id2children
+sbin/ldif2id2entry
+sbin/ldif2index
+sbin/ldif2ldbm
+@dirrm etc/ldap
diff --git a/net/openldap22-server/Makefile b/net/openldap22-server/Makefile
new file mode 100644
index 000000000000..5a3db43bf9ef
--- /dev/null
+++ b/net/openldap22-server/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: openldap
+# Version required: 1.0.1
+# Date created: 20 Sep 1998
+# Whom: Lachlan O'Dea
+#
+# $Id$
+#
+
+DISTNAME= openldap-1.0.1
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ulmo@earthling.net
+
+WRKSRC= ${WRKDIR}/ldap
+MANCOMPRESSED= yes
+
+.include "files/manpages"
+
+MAKE_ENV= LDAP_PREFIX=${PREFIX} \
+ EXTRACFLAGS="${CFLAGS}"
+
+pre-patch:
+ ${CP} ${WRKSRC}/Make-common.dist ${WRKSRC}/Make-common
+
+post-install:
+ strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
+ ${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
+ ${PREFIX}/libexec/fax500 ${PREFIX}/libexec/go500 \
+ ${PREFIX}/libexec/go500gw ${PREFIX}/libexec/in.xfingerd \
+ ${PREFIX}/libexec/mail500 ${PREFIX}/libexec/rcpt500 \
+ ${PREFIX}/libexec/rp500 ${PREFIX}/libexec/slapd \
+ ${PREFIX}/libexec/slurpd ${PREFIX}/sbin/centipede \
+ ${PREFIX}/sbin/ldbmcat ${PREFIX}/sbin/ldbmtest ${PREFIX}/sbin/ldif \
+ ${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
+ ${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm
+
+.include <bsd.port.mk>
diff --git a/net/openldap22-server/distinfo b/net/openldap22-server/distinfo
new file mode 100644
index 000000000000..9357252deebc
--- /dev/null
+++ b/net/openldap22-server/distinfo
@@ -0,0 +1 @@
+MD5 (openldap-1.0.1.tgz) = 26ea15718640bd76a41598ce413c8e24
diff --git a/net/openldap22-server/files/manpages b/net/openldap22-server/files/manpages
new file mode 100644
index 000000000000..5cf07a5e7a8d
--- /dev/null
+++ b/net/openldap22-server/files/manpages
@@ -0,0 +1,164 @@
+MAN1+= ldapdelete.1
+MAN1+= ldapmodify.1
+MAN1+= ldapmodrdn.1
+MAN1+= ldapsearch.1
+MAN1+= ud.1
+MAN3+= cldap_close.3
+MAN3+= cldap_open.3
+MAN3+= cldap_search_s.3
+MAN3+= cldap_setretryinfo.3
+MAN3+= lber-decode.3
+MAN3+= lber-encode.3
+MAN3+= ldap.3
+MAN3+= ldap_abandon.3
+MAN3+= ldap_add.3
+MAN3+= ldap_bind.3
+MAN3+= ldap_cache.3
+MAN3+= ldap_charset.3
+MAN3+= ldap_compare.3
+MAN3+= ldap_delete.3
+MAN3+= ldap_disptmpl.3
+MAN3+= ldap_entry2text.3
+MAN3+= ldap_error.3
+MAN3+= ldap_first_attribute.3
+MAN3+= ldap_first_entry.3
+MAN3+= ldap_friendly.3
+MAN3+= ldap_get_dn.3
+MAN3+= ldap_get_values.3
+MAN3+= ldap_getfilter.3
+MAN3+= ldap_modify.3
+MAN3+= ldap_modrdn.3
+MAN3+= ldap_open.3
+MAN3+= ldap_result.3
+MAN3+= ldap_search.3
+MAN3+= ldap_searchprefs.3
+MAN3+= ldap_sort.3
+MAN3+= ldap_ufn.3
+MAN3+= ldap_url.3
+MAN3+= regex.3
+MAN5+= ldapfilter.conf.5
+MAN5+= ldapfriendly.5
+MAN5+= ldapsearchprefs.conf.5
+MAN5+= ldaptemplates.conf.5
+MAN5+= ldif.5
+MAN5+= slapd.conf.5
+MAN5+= slapd.replog.5
+MAN5+= ud.conf.5
+MAN8+= centipede.8
+MAN8+= chlog2replog.8
+MAN8+= edb2ldif.8
+MAN8+= go500.8
+MAN8+= go500gw.8
+MAN8+= in.xfingerd.8
+MAN8+= ldapd.8
+MAN8+= ldbmcat.8
+MAN8+= ldif.8
+MAN8+= ldif2ldbm.8
+MAN8+= mail500.8
+MAN8+= rcpt500.8
+MAN8+= slapd.8
+MAN8+= slurpd.8
+MLINKS+= ldap.3 cldap.3
+MLINKS+= ldap_add.3 ldap_add_s.3
+MLINKS+= ldap_bind.3 ldap_bind_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind_s.3
+MLINKS+= ldap_bind.3 ldap_set_rebind_proc.3
+MLINKS+= ldap_bind.3 ldap_simple_bind.3
+MLINKS+= ldap_bind.3 ldap_simple_bind_s.3
+MLINKS+= ldap_bind.3 ldap_unbind.3
+MLINKS+= ldap_bind.3 ldap_unbind_s.3
+MLINKS+= ldap_cache.3 ldap_destroy_cache.3
+MLINKS+= ldap_cache.3 ldap_disable_cache.3
+MLINKS+= ldap_cache.3 ldap_enable_cache.3
+MLINKS+= ldap_cache.3 ldap_flush_cache.3
+MLINKS+= ldap_cache.3 ldap_set_cache_options.3
+MLINKS+= ldap_cache.3 ldap_uncache_entry.3
+MLINKS+= ldap_cache.3 ldap_uncache_request.3
+MLINKS+= ldap_charset.3 ldap_8859_to_t61.3
+MLINKS+= ldap_charset.3 ldap_enable_translation.3
+MLINKS+= ldap_charset.3 ldap_set_string_translators.3
+MLINKS+= ldap_charset.3 ldap_t61_to_8859.3
+MLINKS+= ldap_charset.3 ldap_translate_from_t61.3
+MLINKS+= ldap_charset.3 ldap_translate_to_t61.3
+MLINKS+= ldap_compare.3 ldap_compare_s.3
+MLINKS+= ldap_delete.3 ldap_delete_s.3
+MLINKS+= ldap_disptmpl.3 ldap_first_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_free_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates_buf.3
+MLINKS+= ldap_disptmpl.3 ldap_next_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_oc2template.3
+MLINKS+= ldap_disptmpl.3 ldap_tmplattrs.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html_search.3
+MLINKS+= ldap_entry2text.3 ldap_entry2text_search.3
+MLINKS+= ldap_entry2text.3 ldap_vals2html.3
+MLINKS+= ldap_entry2text.3 ldap_vals2text.3
+MLINKS+= ldap_error.3 ld_errno.3
+MLINKS+= ldap_error.3 ldap_err2string.3
+MLINKS+= ldap_error.3 ldap_errlist.3
+MLINKS+= ldap_error.3 ldap_perror.3
+MLINKS+= ldap_error.3 ldap_result2error.3
+MLINKS+= ldap_first_attribute.3 ldap_next_attribute.3
+MLINKS+= ldap_first_entry.3 ldap_count_entries.3
+MLINKS+= ldap_first_entry.3 ldap_next_entry.3
+MLINKS+= ldap_friendly.3 ldap_free_friendlymap.3
+MLINKS+= ldap_friendly.3 ldap_friendly_name.3
+MLINKS+= ldap_get_dn.3 ldap_dn2ufn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dns.3
+MLINKS+= ldap_get_dn.3 ldap_is_dns_dn.3
+MLINKS+= ldap_get_values.3 ldap_count_values.3
+MLINKS+= ldap_get_values.3 ldap_count_values_len.3
+MLINKS+= ldap_get_values.3 ldap_get_values_len.3
+MLINKS+= ldap_get_values.3 ldap_value_free.3
+MLINKS+= ldap_get_values.3 ldap_value_free_len.3
+MLINKS+= ldap_getfilter.3 ldap_build_filter.3
+MLINKS+= ldap_getfilter.3 ldap_getfilter_free.3
+MLINKS+= ldap_getfilter.3 ldap_getfirstfilter.3
+MLINKS+= ldap_getfilter.3 ldap_getnextfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter_buf.3
+MLINKS+= ldap_getfilter.3 ldap_setfilteraffixes.3
+MLINKS+= ldap_modify.3 ldap_modify_s.3
+MLINKS+= ldap_modify.3 ldap_mods_free.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2_s.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn_s.3
+MLINKS+= ldap_open.3 ldap_init.3
+MLINKS+= ldap_result.3 ldap_msgfree.3
+MLINKS+= ldap_search.3 ldap_search_s.3
+MLINKS+= ldap_search.3 ldap_search_st.3
+MLINKS+= ldap_searchprefs.3 ldap_first_searchobj.3
+MLINKS+= ldap_searchprefs.3 ldap_free_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs_buf.3
+MLINKS+= ldap_searchprefs.3 ldap_next_searchobj.3
+MLINKS+= ldap_sort.3 ldap_sort_entries.3
+MLINKS+= ldap_sort.3 ldap_sort_strcasecmp.3
+MLINKS+= ldap_sort.3 ldap_sort_values.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_c.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_ct.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_s.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setfilter.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setprefix.3
+MLINKS+= ldap_ufn.3 ldap_ufn_timeout.3
+MLINKS+= ldap_url.3 ldap_free_urldesc.3
+MLINKS+= ldap_url.3 ldap_is_ldap_url.3
+MLINKS+= ldap_url.3 ldap_url_parse.3
+MLINKS+= ldap_url.3 ldap_url_search.3
+MLINKS+= ldap_url.3 ldap_url_search_s.3
+MLINKS+= ldap_url.3 ldap_url_search_st.3
+MLINKS+= ldapmodify.1 ldapadd.1
+MLINKS+= ldif2ldbm.8 ldif2id2children.8
+MLINKS+= ldif2ldbm.8 ldif2id2entry.8
+MLINKS+= ldif2ldbm.8 ldif2index.8
+MLINKS+= mail500.8 fax500.8
diff --git a/net/openldap22-server/pkg-comment b/net/openldap22-server/pkg-comment
new file mode 100644
index 000000000000..50adddf59d8a
--- /dev/null
+++ b/net/openldap22-server/pkg-comment
@@ -0,0 +1 @@
+Open source LDAP client and server software.
diff --git a/net/openldap22-server/pkg-descr b/net/openldap22-server/pkg-descr
new file mode 100644
index 000000000000..5fddbe209201
--- /dev/null
+++ b/net/openldap22-server/pkg-descr
@@ -0,0 +1,12 @@
+OpenLDAP is a suite of Lightweight Directory Access Protocol (LDAP) servers,
+clients, utilities and development tools. LDAP is an Internet standard
+directory service protocol that can be used stand-alone, or as a front end
+to an X.500 directory. LDAP is defined by RFCs 1777 through 1779.
+
+OpenLDAP is derived from the University of Michigan LDAP release 3.3 and is
+distributed under a Perl-style "Artistic License".
+
+http://www.openldap.org/
+
+Lachlan O'Dea
+ulmo@earthling.net
diff --git a/net/openldap22-server/pkg-plist b/net/openldap22-server/pkg-plist
new file mode 100644
index 000000000000..c62b9f0c8ca3
--- /dev/null
+++ b/net/openldap22-server/pkg-plist
@@ -0,0 +1,42 @@
+bin/ldapadd
+bin/ldapdelete
+bin/ldapmodify
+bin/ldapmodrdn
+bin/ldapsearch
+bin/ud
+bin/xrpcomp
+etc/ldap/go500gw.help
+etc/ldap/ldapfilter.conf
+etc/ldap/ldapfriendly
+etc/ldap/ldapsearchprefs.conf
+etc/ldap/ldaptemplates.conf
+etc/ldap/rcpt500.help
+etc/ldap/slapd.at.conf
+etc/ldap/slapd.conf
+etc/ldap/slapd.oc.conf
+include/disptmpl.h
+include/lber.h
+include/ldap.h
+include/proto-lber.h
+include/proto-ldap.h
+include/srchpref.h
+lib/liblber.a
+lib/libldap.a
+libexec/fax500
+libexec/go500
+libexec/go500gw
+libexec/in.xfingerd
+libexec/mail500
+libexec/rcpt500
+libexec/rp500
+libexec/slapd
+libexec/slurpd
+sbin/centipede
+sbin/ldbmcat
+sbin/ldbmtest
+sbin/ldif
+sbin/ldif2id2children
+sbin/ldif2id2entry
+sbin/ldif2index
+sbin/ldif2ldbm
+@dirrm etc/ldap
diff --git a/net/openldap22/Makefile b/net/openldap22/Makefile
new file mode 100644
index 000000000000..5a3db43bf9ef
--- /dev/null
+++ b/net/openldap22/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: openldap
+# Version required: 1.0.1
+# Date created: 20 Sep 1998
+# Whom: Lachlan O'Dea
+#
+# $Id$
+#
+
+DISTNAME= openldap-1.0.1
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ulmo@earthling.net
+
+WRKSRC= ${WRKDIR}/ldap
+MANCOMPRESSED= yes
+
+.include "files/manpages"
+
+MAKE_ENV= LDAP_PREFIX=${PREFIX} \
+ EXTRACFLAGS="${CFLAGS}"
+
+pre-patch:
+ ${CP} ${WRKSRC}/Make-common.dist ${WRKSRC}/Make-common
+
+post-install:
+ strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
+ ${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
+ ${PREFIX}/libexec/fax500 ${PREFIX}/libexec/go500 \
+ ${PREFIX}/libexec/go500gw ${PREFIX}/libexec/in.xfingerd \
+ ${PREFIX}/libexec/mail500 ${PREFIX}/libexec/rcpt500 \
+ ${PREFIX}/libexec/rp500 ${PREFIX}/libexec/slapd \
+ ${PREFIX}/libexec/slurpd ${PREFIX}/sbin/centipede \
+ ${PREFIX}/sbin/ldbmcat ${PREFIX}/sbin/ldbmtest ${PREFIX}/sbin/ldif \
+ ${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
+ ${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm
+
+.include <bsd.port.mk>
diff --git a/net/openldap22/distinfo b/net/openldap22/distinfo
new file mode 100644
index 000000000000..9357252deebc
--- /dev/null
+++ b/net/openldap22/distinfo
@@ -0,0 +1 @@
+MD5 (openldap-1.0.1.tgz) = 26ea15718640bd76a41598ce413c8e24
diff --git a/net/openldap22/files/manpages b/net/openldap22/files/manpages
new file mode 100644
index 000000000000..5cf07a5e7a8d
--- /dev/null
+++ b/net/openldap22/files/manpages
@@ -0,0 +1,164 @@
+MAN1+= ldapdelete.1
+MAN1+= ldapmodify.1
+MAN1+= ldapmodrdn.1
+MAN1+= ldapsearch.1
+MAN1+= ud.1
+MAN3+= cldap_close.3
+MAN3+= cldap_open.3
+MAN3+= cldap_search_s.3
+MAN3+= cldap_setretryinfo.3
+MAN3+= lber-decode.3
+MAN3+= lber-encode.3
+MAN3+= ldap.3
+MAN3+= ldap_abandon.3
+MAN3+= ldap_add.3
+MAN3+= ldap_bind.3
+MAN3+= ldap_cache.3
+MAN3+= ldap_charset.3
+MAN3+= ldap_compare.3
+MAN3+= ldap_delete.3
+MAN3+= ldap_disptmpl.3
+MAN3+= ldap_entry2text.3
+MAN3+= ldap_error.3
+MAN3+= ldap_first_attribute.3
+MAN3+= ldap_first_entry.3
+MAN3+= ldap_friendly.3
+MAN3+= ldap_get_dn.3
+MAN3+= ldap_get_values.3
+MAN3+= ldap_getfilter.3
+MAN3+= ldap_modify.3
+MAN3+= ldap_modrdn.3
+MAN3+= ldap_open.3
+MAN3+= ldap_result.3
+MAN3+= ldap_search.3
+MAN3+= ldap_searchprefs.3
+MAN3+= ldap_sort.3
+MAN3+= ldap_ufn.3
+MAN3+= ldap_url.3
+MAN3+= regex.3
+MAN5+= ldapfilter.conf.5
+MAN5+= ldapfriendly.5
+MAN5+= ldapsearchprefs.conf.5
+MAN5+= ldaptemplates.conf.5
+MAN5+= ldif.5
+MAN5+= slapd.conf.5
+MAN5+= slapd.replog.5
+MAN5+= ud.conf.5
+MAN8+= centipede.8
+MAN8+= chlog2replog.8
+MAN8+= edb2ldif.8
+MAN8+= go500.8
+MAN8+= go500gw.8
+MAN8+= in.xfingerd.8
+MAN8+= ldapd.8
+MAN8+= ldbmcat.8
+MAN8+= ldif.8
+MAN8+= ldif2ldbm.8
+MAN8+= mail500.8
+MAN8+= rcpt500.8
+MAN8+= slapd.8
+MAN8+= slurpd.8
+MLINKS+= ldap.3 cldap.3
+MLINKS+= ldap_add.3 ldap_add_s.3
+MLINKS+= ldap_bind.3 ldap_bind_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind_s.3
+MLINKS+= ldap_bind.3 ldap_set_rebind_proc.3
+MLINKS+= ldap_bind.3 ldap_simple_bind.3
+MLINKS+= ldap_bind.3 ldap_simple_bind_s.3
+MLINKS+= ldap_bind.3 ldap_unbind.3
+MLINKS+= ldap_bind.3 ldap_unbind_s.3
+MLINKS+= ldap_cache.3 ldap_destroy_cache.3
+MLINKS+= ldap_cache.3 ldap_disable_cache.3
+MLINKS+= ldap_cache.3 ldap_enable_cache.3
+MLINKS+= ldap_cache.3 ldap_flush_cache.3
+MLINKS+= ldap_cache.3 ldap_set_cache_options.3
+MLINKS+= ldap_cache.3 ldap_uncache_entry.3
+MLINKS+= ldap_cache.3 ldap_uncache_request.3
+MLINKS+= ldap_charset.3 ldap_8859_to_t61.3
+MLINKS+= ldap_charset.3 ldap_enable_translation.3
+MLINKS+= ldap_charset.3 ldap_set_string_translators.3
+MLINKS+= ldap_charset.3 ldap_t61_to_8859.3
+MLINKS+= ldap_charset.3 ldap_translate_from_t61.3
+MLINKS+= ldap_charset.3 ldap_translate_to_t61.3
+MLINKS+= ldap_compare.3 ldap_compare_s.3
+MLINKS+= ldap_delete.3 ldap_delete_s.3
+MLINKS+= ldap_disptmpl.3 ldap_first_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_free_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates_buf.3
+MLINKS+= ldap_disptmpl.3 ldap_next_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_oc2template.3
+MLINKS+= ldap_disptmpl.3 ldap_tmplattrs.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html_search.3
+MLINKS+= ldap_entry2text.3 ldap_entry2text_search.3
+MLINKS+= ldap_entry2text.3 ldap_vals2html.3
+MLINKS+= ldap_entry2text.3 ldap_vals2text.3
+MLINKS+= ldap_error.3 ld_errno.3
+MLINKS+= ldap_error.3 ldap_err2string.3
+MLINKS+= ldap_error.3 ldap_errlist.3
+MLINKS+= ldap_error.3 ldap_perror.3
+MLINKS+= ldap_error.3 ldap_result2error.3
+MLINKS+= ldap_first_attribute.3 ldap_next_attribute.3
+MLINKS+= ldap_first_entry.3 ldap_count_entries.3
+MLINKS+= ldap_first_entry.3 ldap_next_entry.3
+MLINKS+= ldap_friendly.3 ldap_free_friendlymap.3
+MLINKS+= ldap_friendly.3 ldap_friendly_name.3
+MLINKS+= ldap_get_dn.3 ldap_dn2ufn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dns.3
+MLINKS+= ldap_get_dn.3 ldap_is_dns_dn.3
+MLINKS+= ldap_get_values.3 ldap_count_values.3
+MLINKS+= ldap_get_values.3 ldap_count_values_len.3
+MLINKS+= ldap_get_values.3 ldap_get_values_len.3
+MLINKS+= ldap_get_values.3 ldap_value_free.3
+MLINKS+= ldap_get_values.3 ldap_value_free_len.3
+MLINKS+= ldap_getfilter.3 ldap_build_filter.3
+MLINKS+= ldap_getfilter.3 ldap_getfilter_free.3
+MLINKS+= ldap_getfilter.3 ldap_getfirstfilter.3
+MLINKS+= ldap_getfilter.3 ldap_getnextfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter_buf.3
+MLINKS+= ldap_getfilter.3 ldap_setfilteraffixes.3
+MLINKS+= ldap_modify.3 ldap_modify_s.3
+MLINKS+= ldap_modify.3 ldap_mods_free.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2_s.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn_s.3
+MLINKS+= ldap_open.3 ldap_init.3
+MLINKS+= ldap_result.3 ldap_msgfree.3
+MLINKS+= ldap_search.3 ldap_search_s.3
+MLINKS+= ldap_search.3 ldap_search_st.3
+MLINKS+= ldap_searchprefs.3 ldap_first_searchobj.3
+MLINKS+= ldap_searchprefs.3 ldap_free_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs_buf.3
+MLINKS+= ldap_searchprefs.3 ldap_next_searchobj.3
+MLINKS+= ldap_sort.3 ldap_sort_entries.3
+MLINKS+= ldap_sort.3 ldap_sort_strcasecmp.3
+MLINKS+= ldap_sort.3 ldap_sort_values.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_c.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_ct.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_s.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setfilter.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setprefix.3
+MLINKS+= ldap_ufn.3 ldap_ufn_timeout.3
+MLINKS+= ldap_url.3 ldap_free_urldesc.3
+MLINKS+= ldap_url.3 ldap_is_ldap_url.3
+MLINKS+= ldap_url.3 ldap_url_parse.3
+MLINKS+= ldap_url.3 ldap_url_search.3
+MLINKS+= ldap_url.3 ldap_url_search_s.3
+MLINKS+= ldap_url.3 ldap_url_search_st.3
+MLINKS+= ldapmodify.1 ldapadd.1
+MLINKS+= ldif2ldbm.8 ldif2id2children.8
+MLINKS+= ldif2ldbm.8 ldif2id2entry.8
+MLINKS+= ldif2ldbm.8 ldif2index.8
+MLINKS+= mail500.8 fax500.8
diff --git a/net/openldap22/pkg-comment b/net/openldap22/pkg-comment
new file mode 100644
index 000000000000..50adddf59d8a
--- /dev/null
+++ b/net/openldap22/pkg-comment
@@ -0,0 +1 @@
+Open source LDAP client and server software.
diff --git a/net/openldap22/pkg-descr b/net/openldap22/pkg-descr
new file mode 100644
index 000000000000..5fddbe209201
--- /dev/null
+++ b/net/openldap22/pkg-descr
@@ -0,0 +1,12 @@
+OpenLDAP is a suite of Lightweight Directory Access Protocol (LDAP) servers,
+clients, utilities and development tools. LDAP is an Internet standard
+directory service protocol that can be used stand-alone, or as a front end
+to an X.500 directory. LDAP is defined by RFCs 1777 through 1779.
+
+OpenLDAP is derived from the University of Michigan LDAP release 3.3 and is
+distributed under a Perl-style "Artistic License".
+
+http://www.openldap.org/
+
+Lachlan O'Dea
+ulmo@earthling.net
diff --git a/net/openldap22/pkg-plist b/net/openldap22/pkg-plist
new file mode 100644
index 000000000000..c62b9f0c8ca3
--- /dev/null
+++ b/net/openldap22/pkg-plist
@@ -0,0 +1,42 @@
+bin/ldapadd
+bin/ldapdelete
+bin/ldapmodify
+bin/ldapmodrdn
+bin/ldapsearch
+bin/ud
+bin/xrpcomp
+etc/ldap/go500gw.help
+etc/ldap/ldapfilter.conf
+etc/ldap/ldapfriendly
+etc/ldap/ldapsearchprefs.conf
+etc/ldap/ldaptemplates.conf
+etc/ldap/rcpt500.help
+etc/ldap/slapd.at.conf
+etc/ldap/slapd.conf
+etc/ldap/slapd.oc.conf
+include/disptmpl.h
+include/lber.h
+include/ldap.h
+include/proto-lber.h
+include/proto-ldap.h
+include/srchpref.h
+lib/liblber.a
+lib/libldap.a
+libexec/fax500
+libexec/go500
+libexec/go500gw
+libexec/in.xfingerd
+libexec/mail500
+libexec/rcpt500
+libexec/rp500
+libexec/slapd
+libexec/slurpd
+sbin/centipede
+sbin/ldbmcat
+sbin/ldbmtest
+sbin/ldif
+sbin/ldif2id2children
+sbin/ldif2id2entry
+sbin/ldif2index
+sbin/ldif2ldbm
+@dirrm etc/ldap
diff --git a/net/openldap23-server/Makefile b/net/openldap23-server/Makefile
new file mode 100644
index 000000000000..5a3db43bf9ef
--- /dev/null
+++ b/net/openldap23-server/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: openldap
+# Version required: 1.0.1
+# Date created: 20 Sep 1998
+# Whom: Lachlan O'Dea
+#
+# $Id$
+#
+
+DISTNAME= openldap-1.0.1
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ulmo@earthling.net
+
+WRKSRC= ${WRKDIR}/ldap
+MANCOMPRESSED= yes
+
+.include "files/manpages"
+
+MAKE_ENV= LDAP_PREFIX=${PREFIX} \
+ EXTRACFLAGS="${CFLAGS}"
+
+pre-patch:
+ ${CP} ${WRKSRC}/Make-common.dist ${WRKSRC}/Make-common
+
+post-install:
+ strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
+ ${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
+ ${PREFIX}/libexec/fax500 ${PREFIX}/libexec/go500 \
+ ${PREFIX}/libexec/go500gw ${PREFIX}/libexec/in.xfingerd \
+ ${PREFIX}/libexec/mail500 ${PREFIX}/libexec/rcpt500 \
+ ${PREFIX}/libexec/rp500 ${PREFIX}/libexec/slapd \
+ ${PREFIX}/libexec/slurpd ${PREFIX}/sbin/centipede \
+ ${PREFIX}/sbin/ldbmcat ${PREFIX}/sbin/ldbmtest ${PREFIX}/sbin/ldif \
+ ${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
+ ${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm
+
+.include <bsd.port.mk>
diff --git a/net/openldap23-server/distinfo b/net/openldap23-server/distinfo
new file mode 100644
index 000000000000..9357252deebc
--- /dev/null
+++ b/net/openldap23-server/distinfo
@@ -0,0 +1 @@
+MD5 (openldap-1.0.1.tgz) = 26ea15718640bd76a41598ce413c8e24
diff --git a/net/openldap23-server/files/manpages b/net/openldap23-server/files/manpages
new file mode 100644
index 000000000000..5cf07a5e7a8d
--- /dev/null
+++ b/net/openldap23-server/files/manpages
@@ -0,0 +1,164 @@
+MAN1+= ldapdelete.1
+MAN1+= ldapmodify.1
+MAN1+= ldapmodrdn.1
+MAN1+= ldapsearch.1
+MAN1+= ud.1
+MAN3+= cldap_close.3
+MAN3+= cldap_open.3
+MAN3+= cldap_search_s.3
+MAN3+= cldap_setretryinfo.3
+MAN3+= lber-decode.3
+MAN3+= lber-encode.3
+MAN3+= ldap.3
+MAN3+= ldap_abandon.3
+MAN3+= ldap_add.3
+MAN3+= ldap_bind.3
+MAN3+= ldap_cache.3
+MAN3+= ldap_charset.3
+MAN3+= ldap_compare.3
+MAN3+= ldap_delete.3
+MAN3+= ldap_disptmpl.3
+MAN3+= ldap_entry2text.3
+MAN3+= ldap_error.3
+MAN3+= ldap_first_attribute.3
+MAN3+= ldap_first_entry.3
+MAN3+= ldap_friendly.3
+MAN3+= ldap_get_dn.3
+MAN3+= ldap_get_values.3
+MAN3+= ldap_getfilter.3
+MAN3+= ldap_modify.3
+MAN3+= ldap_modrdn.3
+MAN3+= ldap_open.3
+MAN3+= ldap_result.3
+MAN3+= ldap_search.3
+MAN3+= ldap_searchprefs.3
+MAN3+= ldap_sort.3
+MAN3+= ldap_ufn.3
+MAN3+= ldap_url.3
+MAN3+= regex.3
+MAN5+= ldapfilter.conf.5
+MAN5+= ldapfriendly.5
+MAN5+= ldapsearchprefs.conf.5
+MAN5+= ldaptemplates.conf.5
+MAN5+= ldif.5
+MAN5+= slapd.conf.5
+MAN5+= slapd.replog.5
+MAN5+= ud.conf.5
+MAN8+= centipede.8
+MAN8+= chlog2replog.8
+MAN8+= edb2ldif.8
+MAN8+= go500.8
+MAN8+= go500gw.8
+MAN8+= in.xfingerd.8
+MAN8+= ldapd.8
+MAN8+= ldbmcat.8
+MAN8+= ldif.8
+MAN8+= ldif2ldbm.8
+MAN8+= mail500.8
+MAN8+= rcpt500.8
+MAN8+= slapd.8
+MAN8+= slurpd.8
+MLINKS+= ldap.3 cldap.3
+MLINKS+= ldap_add.3 ldap_add_s.3
+MLINKS+= ldap_bind.3 ldap_bind_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind_s.3
+MLINKS+= ldap_bind.3 ldap_set_rebind_proc.3
+MLINKS+= ldap_bind.3 ldap_simple_bind.3
+MLINKS+= ldap_bind.3 ldap_simple_bind_s.3
+MLINKS+= ldap_bind.3 ldap_unbind.3
+MLINKS+= ldap_bind.3 ldap_unbind_s.3
+MLINKS+= ldap_cache.3 ldap_destroy_cache.3
+MLINKS+= ldap_cache.3 ldap_disable_cache.3
+MLINKS+= ldap_cache.3 ldap_enable_cache.3
+MLINKS+= ldap_cache.3 ldap_flush_cache.3
+MLINKS+= ldap_cache.3 ldap_set_cache_options.3
+MLINKS+= ldap_cache.3 ldap_uncache_entry.3
+MLINKS+= ldap_cache.3 ldap_uncache_request.3
+MLINKS+= ldap_charset.3 ldap_8859_to_t61.3
+MLINKS+= ldap_charset.3 ldap_enable_translation.3
+MLINKS+= ldap_charset.3 ldap_set_string_translators.3
+MLINKS+= ldap_charset.3 ldap_t61_to_8859.3
+MLINKS+= ldap_charset.3 ldap_translate_from_t61.3
+MLINKS+= ldap_charset.3 ldap_translate_to_t61.3
+MLINKS+= ldap_compare.3 ldap_compare_s.3
+MLINKS+= ldap_delete.3 ldap_delete_s.3
+MLINKS+= ldap_disptmpl.3 ldap_first_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_free_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates_buf.3
+MLINKS+= ldap_disptmpl.3 ldap_next_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_oc2template.3
+MLINKS+= ldap_disptmpl.3 ldap_tmplattrs.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html_search.3
+MLINKS+= ldap_entry2text.3 ldap_entry2text_search.3
+MLINKS+= ldap_entry2text.3 ldap_vals2html.3
+MLINKS+= ldap_entry2text.3 ldap_vals2text.3
+MLINKS+= ldap_error.3 ld_errno.3
+MLINKS+= ldap_error.3 ldap_err2string.3
+MLINKS+= ldap_error.3 ldap_errlist.3
+MLINKS+= ldap_error.3 ldap_perror.3
+MLINKS+= ldap_error.3 ldap_result2error.3
+MLINKS+= ldap_first_attribute.3 ldap_next_attribute.3
+MLINKS+= ldap_first_entry.3 ldap_count_entries.3
+MLINKS+= ldap_first_entry.3 ldap_next_entry.3
+MLINKS+= ldap_friendly.3 ldap_free_friendlymap.3
+MLINKS+= ldap_friendly.3 ldap_friendly_name.3
+MLINKS+= ldap_get_dn.3 ldap_dn2ufn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dns.3
+MLINKS+= ldap_get_dn.3 ldap_is_dns_dn.3
+MLINKS+= ldap_get_values.3 ldap_count_values.3
+MLINKS+= ldap_get_values.3 ldap_count_values_len.3
+MLINKS+= ldap_get_values.3 ldap_get_values_len.3
+MLINKS+= ldap_get_values.3 ldap_value_free.3
+MLINKS+= ldap_get_values.3 ldap_value_free_len.3
+MLINKS+= ldap_getfilter.3 ldap_build_filter.3
+MLINKS+= ldap_getfilter.3 ldap_getfilter_free.3
+MLINKS+= ldap_getfilter.3 ldap_getfirstfilter.3
+MLINKS+= ldap_getfilter.3 ldap_getnextfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter_buf.3
+MLINKS+= ldap_getfilter.3 ldap_setfilteraffixes.3
+MLINKS+= ldap_modify.3 ldap_modify_s.3
+MLINKS+= ldap_modify.3 ldap_mods_free.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2_s.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn_s.3
+MLINKS+= ldap_open.3 ldap_init.3
+MLINKS+= ldap_result.3 ldap_msgfree.3
+MLINKS+= ldap_search.3 ldap_search_s.3
+MLINKS+= ldap_search.3 ldap_search_st.3
+MLINKS+= ldap_searchprefs.3 ldap_first_searchobj.3
+MLINKS+= ldap_searchprefs.3 ldap_free_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs_buf.3
+MLINKS+= ldap_searchprefs.3 ldap_next_searchobj.3
+MLINKS+= ldap_sort.3 ldap_sort_entries.3
+MLINKS+= ldap_sort.3 ldap_sort_strcasecmp.3
+MLINKS+= ldap_sort.3 ldap_sort_values.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_c.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_ct.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_s.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setfilter.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setprefix.3
+MLINKS+= ldap_ufn.3 ldap_ufn_timeout.3
+MLINKS+= ldap_url.3 ldap_free_urldesc.3
+MLINKS+= ldap_url.3 ldap_is_ldap_url.3
+MLINKS+= ldap_url.3 ldap_url_parse.3
+MLINKS+= ldap_url.3 ldap_url_search.3
+MLINKS+= ldap_url.3 ldap_url_search_s.3
+MLINKS+= ldap_url.3 ldap_url_search_st.3
+MLINKS+= ldapmodify.1 ldapadd.1
+MLINKS+= ldif2ldbm.8 ldif2id2children.8
+MLINKS+= ldif2ldbm.8 ldif2id2entry.8
+MLINKS+= ldif2ldbm.8 ldif2index.8
+MLINKS+= mail500.8 fax500.8
diff --git a/net/openldap23-server/pkg-comment b/net/openldap23-server/pkg-comment
new file mode 100644
index 000000000000..50adddf59d8a
--- /dev/null
+++ b/net/openldap23-server/pkg-comment
@@ -0,0 +1 @@
+Open source LDAP client and server software.
diff --git a/net/openldap23-server/pkg-descr b/net/openldap23-server/pkg-descr
new file mode 100644
index 000000000000..5fddbe209201
--- /dev/null
+++ b/net/openldap23-server/pkg-descr
@@ -0,0 +1,12 @@
+OpenLDAP is a suite of Lightweight Directory Access Protocol (LDAP) servers,
+clients, utilities and development tools. LDAP is an Internet standard
+directory service protocol that can be used stand-alone, or as a front end
+to an X.500 directory. LDAP is defined by RFCs 1777 through 1779.
+
+OpenLDAP is derived from the University of Michigan LDAP release 3.3 and is
+distributed under a Perl-style "Artistic License".
+
+http://www.openldap.org/
+
+Lachlan O'Dea
+ulmo@earthling.net
diff --git a/net/openldap23-server/pkg-plist b/net/openldap23-server/pkg-plist
new file mode 100644
index 000000000000..c62b9f0c8ca3
--- /dev/null
+++ b/net/openldap23-server/pkg-plist
@@ -0,0 +1,42 @@
+bin/ldapadd
+bin/ldapdelete
+bin/ldapmodify
+bin/ldapmodrdn
+bin/ldapsearch
+bin/ud
+bin/xrpcomp
+etc/ldap/go500gw.help
+etc/ldap/ldapfilter.conf
+etc/ldap/ldapfriendly
+etc/ldap/ldapsearchprefs.conf
+etc/ldap/ldaptemplates.conf
+etc/ldap/rcpt500.help
+etc/ldap/slapd.at.conf
+etc/ldap/slapd.conf
+etc/ldap/slapd.oc.conf
+include/disptmpl.h
+include/lber.h
+include/ldap.h
+include/proto-lber.h
+include/proto-ldap.h
+include/srchpref.h
+lib/liblber.a
+lib/libldap.a
+libexec/fax500
+libexec/go500
+libexec/go500gw
+libexec/in.xfingerd
+libexec/mail500
+libexec/rcpt500
+libexec/rp500
+libexec/slapd
+libexec/slurpd
+sbin/centipede
+sbin/ldbmcat
+sbin/ldbmtest
+sbin/ldif
+sbin/ldif2id2children
+sbin/ldif2id2entry
+sbin/ldif2index
+sbin/ldif2ldbm
+@dirrm etc/ldap
diff --git a/net/openldap24-server/Makefile b/net/openldap24-server/Makefile
new file mode 100644
index 000000000000..5a3db43bf9ef
--- /dev/null
+++ b/net/openldap24-server/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: openldap
+# Version required: 1.0.1
+# Date created: 20 Sep 1998
+# Whom: Lachlan O'Dea
+#
+# $Id$
+#
+
+DISTNAME= openldap-1.0.1
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ulmo@earthling.net
+
+WRKSRC= ${WRKDIR}/ldap
+MANCOMPRESSED= yes
+
+.include "files/manpages"
+
+MAKE_ENV= LDAP_PREFIX=${PREFIX} \
+ EXTRACFLAGS="${CFLAGS}"
+
+pre-patch:
+ ${CP} ${WRKSRC}/Make-common.dist ${WRKSRC}/Make-common
+
+post-install:
+ strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
+ ${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
+ ${PREFIX}/libexec/fax500 ${PREFIX}/libexec/go500 \
+ ${PREFIX}/libexec/go500gw ${PREFIX}/libexec/in.xfingerd \
+ ${PREFIX}/libexec/mail500 ${PREFIX}/libexec/rcpt500 \
+ ${PREFIX}/libexec/rp500 ${PREFIX}/libexec/slapd \
+ ${PREFIX}/libexec/slurpd ${PREFIX}/sbin/centipede \
+ ${PREFIX}/sbin/ldbmcat ${PREFIX}/sbin/ldbmtest ${PREFIX}/sbin/ldif \
+ ${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
+ ${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm
+
+.include <bsd.port.mk>
diff --git a/net/openldap24-server/distinfo b/net/openldap24-server/distinfo
new file mode 100644
index 000000000000..9357252deebc
--- /dev/null
+++ b/net/openldap24-server/distinfo
@@ -0,0 +1 @@
+MD5 (openldap-1.0.1.tgz) = 26ea15718640bd76a41598ce413c8e24
diff --git a/net/openldap24-server/files/manpages b/net/openldap24-server/files/manpages
new file mode 100644
index 000000000000..5cf07a5e7a8d
--- /dev/null
+++ b/net/openldap24-server/files/manpages
@@ -0,0 +1,164 @@
+MAN1+= ldapdelete.1
+MAN1+= ldapmodify.1
+MAN1+= ldapmodrdn.1
+MAN1+= ldapsearch.1
+MAN1+= ud.1
+MAN3+= cldap_close.3
+MAN3+= cldap_open.3
+MAN3+= cldap_search_s.3
+MAN3+= cldap_setretryinfo.3
+MAN3+= lber-decode.3
+MAN3+= lber-encode.3
+MAN3+= ldap.3
+MAN3+= ldap_abandon.3
+MAN3+= ldap_add.3
+MAN3+= ldap_bind.3
+MAN3+= ldap_cache.3
+MAN3+= ldap_charset.3
+MAN3+= ldap_compare.3
+MAN3+= ldap_delete.3
+MAN3+= ldap_disptmpl.3
+MAN3+= ldap_entry2text.3
+MAN3+= ldap_error.3
+MAN3+= ldap_first_attribute.3
+MAN3+= ldap_first_entry.3
+MAN3+= ldap_friendly.3
+MAN3+= ldap_get_dn.3
+MAN3+= ldap_get_values.3
+MAN3+= ldap_getfilter.3
+MAN3+= ldap_modify.3
+MAN3+= ldap_modrdn.3
+MAN3+= ldap_open.3
+MAN3+= ldap_result.3
+MAN3+= ldap_search.3
+MAN3+= ldap_searchprefs.3
+MAN3+= ldap_sort.3
+MAN3+= ldap_ufn.3
+MAN3+= ldap_url.3
+MAN3+= regex.3
+MAN5+= ldapfilter.conf.5
+MAN5+= ldapfriendly.5
+MAN5+= ldapsearchprefs.conf.5
+MAN5+= ldaptemplates.conf.5
+MAN5+= ldif.5
+MAN5+= slapd.conf.5
+MAN5+= slapd.replog.5
+MAN5+= ud.conf.5
+MAN8+= centipede.8
+MAN8+= chlog2replog.8
+MAN8+= edb2ldif.8
+MAN8+= go500.8
+MAN8+= go500gw.8
+MAN8+= in.xfingerd.8
+MAN8+= ldapd.8
+MAN8+= ldbmcat.8
+MAN8+= ldif.8
+MAN8+= ldif2ldbm.8
+MAN8+= mail500.8
+MAN8+= rcpt500.8
+MAN8+= slapd.8
+MAN8+= slurpd.8
+MLINKS+= ldap.3 cldap.3
+MLINKS+= ldap_add.3 ldap_add_s.3
+MLINKS+= ldap_bind.3 ldap_bind_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind1_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind2_s.3
+MLINKS+= ldap_bind.3 ldap_kerberos_bind_s.3
+MLINKS+= ldap_bind.3 ldap_set_rebind_proc.3
+MLINKS+= ldap_bind.3 ldap_simple_bind.3
+MLINKS+= ldap_bind.3 ldap_simple_bind_s.3
+MLINKS+= ldap_bind.3 ldap_unbind.3
+MLINKS+= ldap_bind.3 ldap_unbind_s.3
+MLINKS+= ldap_cache.3 ldap_destroy_cache.3
+MLINKS+= ldap_cache.3 ldap_disable_cache.3
+MLINKS+= ldap_cache.3 ldap_enable_cache.3
+MLINKS+= ldap_cache.3 ldap_flush_cache.3
+MLINKS+= ldap_cache.3 ldap_set_cache_options.3
+MLINKS+= ldap_cache.3 ldap_uncache_entry.3
+MLINKS+= ldap_cache.3 ldap_uncache_request.3
+MLINKS+= ldap_charset.3 ldap_8859_to_t61.3
+MLINKS+= ldap_charset.3 ldap_enable_translation.3
+MLINKS+= ldap_charset.3 ldap_set_string_translators.3
+MLINKS+= ldap_charset.3 ldap_t61_to_8859.3
+MLINKS+= ldap_charset.3 ldap_translate_from_t61.3
+MLINKS+= ldap_charset.3 ldap_translate_to_t61.3
+MLINKS+= ldap_compare.3 ldap_compare_s.3
+MLINKS+= ldap_delete.3 ldap_delete_s.3
+MLINKS+= ldap_disptmpl.3 ldap_first_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_first_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_free_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates.3
+MLINKS+= ldap_disptmpl.3 ldap_init_templates_buf.3
+MLINKS+= ldap_disptmpl.3 ldap_next_disptmpl.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplcol.3
+MLINKS+= ldap_disptmpl.3 ldap_next_tmplrow.3
+MLINKS+= ldap_disptmpl.3 ldap_oc2template.3
+MLINKS+= ldap_disptmpl.3 ldap_tmplattrs.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html.3
+MLINKS+= ldap_entry2text.3 ldap_entry2html_search.3
+MLINKS+= ldap_entry2text.3 ldap_entry2text_search.3
+MLINKS+= ldap_entry2text.3 ldap_vals2html.3
+MLINKS+= ldap_entry2text.3 ldap_vals2text.3
+MLINKS+= ldap_error.3 ld_errno.3
+MLINKS+= ldap_error.3 ldap_err2string.3
+MLINKS+= ldap_error.3 ldap_errlist.3
+MLINKS+= ldap_error.3 ldap_perror.3
+MLINKS+= ldap_error.3 ldap_result2error.3
+MLINKS+= ldap_first_attribute.3 ldap_next_attribute.3
+MLINKS+= ldap_first_entry.3 ldap_count_entries.3
+MLINKS+= ldap_first_entry.3 ldap_next_entry.3
+MLINKS+= ldap_friendly.3 ldap_free_friendlymap.3
+MLINKS+= ldap_friendly.3 ldap_friendly_name.3
+MLINKS+= ldap_get_dn.3 ldap_dn2ufn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dn.3
+MLINKS+= ldap_get_dn.3 ldap_explode_dns.3
+MLINKS+= ldap_get_dn.3 ldap_is_dns_dn.3
+MLINKS+= ldap_get_values.3 ldap_count_values.3
+MLINKS+= ldap_get_values.3 ldap_count_values_len.3
+MLINKS+= ldap_get_values.3 ldap_get_values_len.3
+MLINKS+= ldap_get_values.3 ldap_value_free.3
+MLINKS+= ldap_get_values.3 ldap_value_free_len.3
+MLINKS+= ldap_getfilter.3 ldap_build_filter.3
+MLINKS+= ldap_getfilter.3 ldap_getfilter_free.3
+MLINKS+= ldap_getfilter.3 ldap_getfirstfilter.3
+MLINKS+= ldap_getfilter.3 ldap_getnextfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter.3
+MLINKS+= ldap_getfilter.3 ldap_init_getfilter_buf.3
+MLINKS+= ldap_getfilter.3 ldap_setfilteraffixes.3
+MLINKS+= ldap_modify.3 ldap_modify_s.3
+MLINKS+= ldap_modify.3 ldap_mods_free.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn2_s.3
+MLINKS+= ldap_modrdn.3 ldap_modrdn_s.3
+MLINKS+= ldap_open.3 ldap_init.3
+MLINKS+= ldap_result.3 ldap_msgfree.3
+MLINKS+= ldap_search.3 ldap_search_s.3
+MLINKS+= ldap_search.3 ldap_search_st.3
+MLINKS+= ldap_searchprefs.3 ldap_first_searchobj.3
+MLINKS+= ldap_searchprefs.3 ldap_free_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs.3
+MLINKS+= ldap_searchprefs.3 ldap_init_searchprefs_buf.3
+MLINKS+= ldap_searchprefs.3 ldap_next_searchobj.3
+MLINKS+= ldap_sort.3 ldap_sort_entries.3
+MLINKS+= ldap_sort.3 ldap_sort_strcasecmp.3
+MLINKS+= ldap_sort.3 ldap_sort_values.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_c.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_ct.3
+MLINKS+= ldap_ufn.3 ldap_ufn_search_s.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setfilter.3
+MLINKS+= ldap_ufn.3 ldap_ufn_setprefix.3
+MLINKS+= ldap_ufn.3 ldap_ufn_timeout.3
+MLINKS+= ldap_url.3 ldap_free_urldesc.3
+MLINKS+= ldap_url.3 ldap_is_ldap_url.3
+MLINKS+= ldap_url.3 ldap_url_parse.3
+MLINKS+= ldap_url.3 ldap_url_search.3
+MLINKS+= ldap_url.3 ldap_url_search_s.3
+MLINKS+= ldap_url.3 ldap_url_search_st.3
+MLINKS+= ldapmodify.1 ldapadd.1
+MLINKS+= ldif2ldbm.8 ldif2id2children.8
+MLINKS+= ldif2ldbm.8 ldif2id2entry.8
+MLINKS+= ldif2ldbm.8 ldif2index.8
+MLINKS+= mail500.8 fax500.8
diff --git a/net/openldap24-server/pkg-comment b/net/openldap24-server/pkg-comment
new file mode 100644
index 000000000000..50adddf59d8a
--- /dev/null
+++ b/net/openldap24-server/pkg-comment
@@ -0,0 +1 @@
+Open source LDAP client and server software.
diff --git a/net/openldap24-server/pkg-descr b/net/openldap24-server/pkg-descr
new file mode 100644
index 000000000000..5fddbe209201
--- /dev/null
+++ b/net/openldap24-server/pkg-descr
@@ -0,0 +1,12 @@
+OpenLDAP is a suite of Lightweight Directory Access Protocol (LDAP) servers,
+clients, utilities and development tools. LDAP is an Internet standard
+directory service protocol that can be used stand-alone, or as a front end
+to an X.500 directory. LDAP is defined by RFCs 1777 through 1779.
+
+OpenLDAP is derived from the University of Michigan LDAP release 3.3 and is
+distributed under a Perl-style "Artistic License".
+
+http://www.openldap.org/
+
+Lachlan O'Dea
+ulmo@earthling.net
diff --git a/net/openldap24-server/pkg-plist b/net/openldap24-server/pkg-plist
new file mode 100644
index 000000000000..c62b9f0c8ca3
--- /dev/null
+++ b/net/openldap24-server/pkg-plist
@@ -0,0 +1,42 @@
+bin/ldapadd
+bin/ldapdelete
+bin/ldapmodify
+bin/ldapmodrdn
+bin/ldapsearch
+bin/ud
+bin/xrpcomp
+etc/ldap/go500gw.help
+etc/ldap/ldapfilter.conf
+etc/ldap/ldapfriendly
+etc/ldap/ldapsearchprefs.conf
+etc/ldap/ldaptemplates.conf
+etc/ldap/rcpt500.help
+etc/ldap/slapd.at.conf
+etc/ldap/slapd.conf
+etc/ldap/slapd.oc.conf
+include/disptmpl.h
+include/lber.h
+include/ldap.h
+include/proto-lber.h
+include/proto-ldap.h
+include/srchpref.h
+lib/liblber.a
+lib/libldap.a
+libexec/fax500
+libexec/go500
+libexec/go500gw
+libexec/in.xfingerd
+libexec/mail500
+libexec/rcpt500
+libexec/rp500
+libexec/slapd
+libexec/slurpd
+sbin/centipede
+sbin/ldbmcat
+sbin/ldbmtest
+sbin/ldif
+sbin/ldif2id2children
+sbin/ldif2id2entry
+sbin/ldif2index
+sbin/ldif2ldbm
+@dirrm etc/ldap