summaryrefslogtreecommitdiff
path: root/databases/openldap-client
diff options
context:
space:
mode:
authorghen <ghen>2006-05-31 18:18:34 +0000
committerghen <ghen>2006-05-31 18:18:34 +0000
commit6ca40c58ad14d56417ba71e80fb856967a8ab23a (patch)
tree915d4012d4a0773c0931cbaecd04737ab12342f6 /databases/openldap-client
parentc370c2f0fc9109151b62ccec8f184921d3659185 (diff)
downloadpkgsrc-6ca40c58ad14d56417ba71e80fb856967a8ab23a.tar.gz
Import databases/openldap-client, formerly a part of databases/openldap but now
split off. This package contains only the client tools and libraries, and the manpages. LDAP-based applications should depend on this package, not databases/openldap (anymore).
Diffstat (limited to 'databases/openldap-client')
-rw-r--r--databases/openldap-client/DESCR5
-rw-r--r--databases/openldap-client/Makefile20
-rw-r--r--databases/openldap-client/PLIST221
-rw-r--r--databases/openldap-client/buildlink3.mk37
-rw-r--r--databases/openldap-client/options.mk43
5 files changed, 326 insertions, 0 deletions
diff --git a/databases/openldap-client/DESCR b/databases/openldap-client/DESCR
new file mode 100644
index 00000000000..f02859ea24c
--- /dev/null
+++ b/databases/openldap-client/DESCR
@@ -0,0 +1,5 @@
+OpenLDAP is an open source implementation of the Lightweight Directory Access
+Protocol. This package includes:
+
+* libraries implementing the LDAP protocol
+* utilities, tools, and sample clients
diff --git a/databases/openldap-client/Makefile b/databases/openldap-client/Makefile
new file mode 100644
index 00000000000..f83dba79aa2
--- /dev/null
+++ b/databases/openldap-client/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/05/31 18:18:34 ghen Exp $
+
+PKGNAME= ${DISTNAME:S/-/-client-/}
+COMMENT= Lightweight Directory Access Protocol libraries and client programs
+
+CONFLICTS+= openldap<2.3.23nb1
+
+CONFIGURE_ARGS+= --disable-slapd
+CONFIGURE_ARGS+= --disable-slurpd
+
+#BUILD_DIRS= include libraries clients
+
+MAKE_DIRS= ${OPENLDAP_ETCDIR}
+
+BUILD_DEFS+= OPENLDAP_ETCDIR
+
+CNFS= ldap.conf
+
+.include "../../databases/openldap/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/openldap-client/PLIST b/databases/openldap-client/PLIST
new file mode 100644
index 00000000000..ca6976ec465
--- /dev/null
+++ b/databases/openldap-client/PLIST
@@ -0,0 +1,221 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/05/31 18:18:34 ghen Exp $
+bin/ldapadd
+bin/ldapcompare
+bin/ldapdelete
+bin/ldapmodify
+bin/ldapmodrdn
+bin/ldappasswd
+bin/ldapsearch
+bin/ldapwhoami
+include/lber.h
+include/lber_types.h
+include/ldap.h
+include/ldap_cdefs.h
+include/ldap_features.h
+include/ldap_schema.h
+include/ldap_utf8.h
+include/slapi-plugin.h
+lib/liblber.la
+lib/libldap.la
+lib/libldap_r.la
+man/man1/ldapadd.1
+man/man1/ldapcompare.1
+man/man1/ldapdelete.1
+man/man1/ldapmodify.1
+man/man1/ldapmodrdn.1
+man/man1/ldappasswd.1
+man/man1/ldapsearch.1
+man/man1/ldapwhoami.1
+man/man3/ber_alloc_t.3
+man/man3/ber_bvarray_add.3
+man/man3/ber_bvarray_free.3
+man/man3/ber_bvdup.3
+man/man3/ber_bvecadd.3
+man/man3/ber_bvecfree.3
+man/man3/ber_bvfree.3
+man/man3/ber_bvstr.3
+man/man3/ber_bvstrdup.3
+man/man3/ber_dupbv.3
+man/man3/ber_first_element.3
+man/man3/ber_flush.3
+man/man3/ber_free.3
+man/man3/ber_get_bitstring.3
+man/man3/ber_get_boolean.3
+man/man3/ber_get_enum.3
+man/man3/ber_get_int.3
+man/man3/ber_get_next.3
+man/man3/ber_get_null.3
+man/man3/ber_get_stringa.3
+man/man3/ber_get_stringb.3
+man/man3/ber_next_element.3
+man/man3/ber_peek_tag.3
+man/man3/ber_printf.3
+man/man3/ber_put_enum.3
+man/man3/ber_put_int.3
+man/man3/ber_put_null.3
+man/man3/ber_put_ostring.3
+man/man3/ber_put_seq.3
+man/man3/ber_put_set.3
+man/man3/ber_put_string.3
+man/man3/ber_scanf.3
+man/man3/ber_skip_tag.3
+man/man3/ber_start_set.3
+man/man3/ber_str2bv.3
+man/man3/lber-decode.3
+man/man3/lber-encode.3
+man/man3/lber-memory.3
+man/man3/lber-types.3
+man/man3/ld_errno.3
+man/man3/ldap.3
+man/man3/ldap_abandon.3
+man/man3/ldap_abandon_ext.3
+man/man3/ldap_add.3
+man/man3/ldap_add_ext.3
+man/man3/ldap_add_ext_s.3
+man/man3/ldap_add_s.3
+man/man3/ldap_attributetype2name.3
+man/man3/ldap_attributetype2str.3
+man/man3/ldap_attributetype_free.3
+man/man3/ldap_bind.3
+man/man3/ldap_bind_s.3
+man/man3/ldap_compare.3
+man/man3/ldap_compare_ext.3
+man/man3/ldap_compare_ext_s.3
+man/man3/ldap_compare_s.3
+man/man3/ldap_count_entries.3
+man/man3/ldap_count_messages.3
+man/man3/ldap_count_references.3
+man/man3/ldap_count_values.3
+man/man3/ldap_count_values_len.3
+man/man3/ldap_dcedn2dn.3
+man/man3/ldap_delete.3
+man/man3/ldap_delete_ext.3
+man/man3/ldap_delete_ext_s.3
+man/man3/ldap_delete_s.3
+man/man3/ldap_dn2ad_canonical.3
+man/man3/ldap_dn2dcedn.3
+man/man3/ldap_dn2str.3
+man/man3/ldap_dn2ufn.3
+man/man3/ldap_err2string.3
+man/man3/ldap_errlist.3
+man/man3/ldap_error.3
+man/man3/ldap_explode_dn.3
+man/man3/ldap_explode_rdn.3
+man/man3/ldap_first_attribute.3
+man/man3/ldap_first_entry.3
+man/man3/ldap_first_message.3
+man/man3/ldap_first_reference.3
+man/man3/ldap_free_urldesc.3
+man/man3/ldap_get_dn.3
+man/man3/ldap_get_values.3
+man/man3/ldap_get_values_len.3
+man/man3/ldap_init.3
+man/man3/ldap_is_ldap_url.3
+man/man3/ldap_matchingrule2name.3
+man/man3/ldap_matchingrule2str.3
+man/man3/ldap_matchingrule_free.3
+man/man3/ldap_modify.3
+man/man3/ldap_modify_ext.3
+man/man3/ldap_modify_ext_s.3
+man/man3/ldap_modify_s.3
+man/man3/ldap_modrdn.3
+man/man3/ldap_modrdn2.3
+man/man3/ldap_modrdn2_s.3
+man/man3/ldap_modrdn_s.3
+man/man3/ldap_mods_free.3
+man/man3/ldap_msgfree.3
+man/man3/ldap_msgid.3
+man/man3/ldap_msgtype.3
+man/man3/ldap_next_attribute.3
+man/man3/ldap_next_entry.3
+man/man3/ldap_next_message.3
+man/man3/ldap_next_reference.3
+man/man3/ldap_objectclass2name.3
+man/man3/ldap_objectclass2str.3
+man/man3/ldap_objectclass_free.3
+man/man3/ldap_open.3
+man/man3/ldap_parse_extended_result.3
+man/man3/ldap_parse_reference.3
+man/man3/ldap_parse_result.3
+man/man3/ldap_parse_sasl_bind_result.3
+man/man3/ldap_perror.3
+man/man3/ldap_result.3
+man/man3/ldap_result2error.3
+man/man3/ldap_sasl_bind.3
+man/man3/ldap_sasl_bind_s.3
+man/man3/ldap_schema.3
+man/man3/ldap_scherr2str.3
+man/man3/ldap_search.3
+man/man3/ldap_search_ext.3
+man/man3/ldap_search_ext_s.3
+man/man3/ldap_search_s.3
+man/man3/ldap_search_st.3
+man/man3/ldap_simple_bind.3
+man/man3/ldap_simple_bind_s.3
+man/man3/ldap_sort.3
+man/man3/ldap_sort_entries.3
+man/man3/ldap_sort_strcasecmp.3
+man/man3/ldap_sort_values.3
+man/man3/ldap_str2attributetype.3
+man/man3/ldap_str2dn.3
+man/man3/ldap_str2matchingrule.3
+man/man3/ldap_str2objectclass.3
+man/man3/ldap_str2syntax.3
+man/man3/ldap_syntax2name.3
+man/man3/ldap_syntax2str.3
+man/man3/ldap_syntax_free.3
+man/man3/ldap_unbind.3
+man/man3/ldap_unbind_ext.3
+man/man3/ldap_unbind_ext_s.3
+man/man3/ldap_unbind_s.3
+man/man3/ldap_url.3
+man/man3/ldap_url_parse.3
+man/man3/ldap_value_free.3
+man/man3/ldap_value_free_len.3
+man/man5/ldap.conf.5
+man/man5/ldif.5
+man/man5/slapd-bdb.5
+man/man5/slapd-dnssrv.5
+man/man5/slapd-hdb.5
+man/man5/slapd-ldap.5
+man/man5/slapd-ldbm.5
+man/man5/slapd-ldif.5
+man/man5/slapd-meta.5
+man/man5/slapd-monitor.5
+man/man5/slapd-null.5
+man/man5/slapd-passwd.5
+man/man5/slapd-perl.5
+man/man5/slapd-relay.5
+man/man5/slapd-shell.5
+man/man5/slapd-sql.5
+man/man5/slapd-tcl.5
+man/man5/slapd.access.5
+man/man5/slapd.conf.5
+man/man5/slapd.plugin.5
+man/man5/slapd.replog.5
+man/man5/slapo-accesslog.5
+man/man5/slapo-auditlog.5
+man/man5/slapo-chain.5
+man/man5/slapo-dynlist.5
+man/man5/slapo-lastmod.5
+man/man5/slapo-pcache.5
+man/man5/slapo-ppolicy.5
+man/man5/slapo-refint.5
+man/man5/slapo-retcode.5
+man/man5/slapo-rwm.5
+man/man5/slapo-syncprov.5
+man/man5/slapo-translucent.5
+man/man5/slapo-unique.5
+man/man5/slapo-valsort.5
+man/man8/slapacl.8
+man/man8/slapadd.8
+man/man8/slapauth.8
+man/man8/slapcat.8
+man/man8/slapd.8
+man/man8/slapdn.8
+man/man8/slapindex.8
+man/man8/slappasswd.8
+man/man8/slaptest.8
+man/man8/slurpd.8
+share/examples/openldap/ldap.conf
+@dirrm share/examples/openldap
diff --git a/databases/openldap-client/buildlink3.mk b/databases/openldap-client/buildlink3.mk
new file mode 100644
index 00000000000..13d6627ab5e
--- /dev/null
+++ b/databases/openldap-client/buildlink3.mk
@@ -0,0 +1,37 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2006/05/31 18:18:34 ghen Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+OPENLDAP_BUILDLINK3_MK:= ${OPENLDAP_BUILDLINK3_MK}+
+
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= openldap-client
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nopenldap-client}
+BUILDLINK_PACKAGES+= openldap-client
+
+.if !empty(OPENLDAP_BUILDLINK3_MK:M+)
+BUILDLINK_API_DEPENDS.openldap-client+= openldap-client>=2.3.11nb2
+BUILDLINK_PKGSRCDIR.openldap-client?= ../../databases/openldap-client
+
+# Export the deprecated API from the openldap-2.2.x releases.
+BUILDLINK_CPPFLAGS.openldap-client+= -DLDAP_DEPRECATED
+.endif # OPENLDAP_BUILDLINK3_MK
+
+.if !defined(PKG_BUILD_OPTIONS.openldap-client)
+PKG_BUILD_OPTIONS.openldap-client!= \
+ cd ${BUILDLINK_PKGSRCDIR.openldap-client} && \
+ ${MAKE} show-var ${MAKEFLAGS} VARNAME=PKG_OPTIONS
+MAKEFLAGS+= PKG_BUILD_OPTIONS.openldap-client=${PKG_BUILD_OPTIONS.openldap-client:Q}
+.endif
+MAKEVARS+= PKG_BUILD_OPTIONS.openldap-client
+
+.if !empty(PKG_BUILD_OPTIONS.openldap-client:Mkerberos) || \
+ !empty(PKG_BUILD_OPTIONS.openldap-client:Msasl)
+. include "../../security/cyrus-sasl/buildlink3.mk"
+.endif
+.include "../../security/openssl/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/databases/openldap-client/options.mk b/databases/openldap-client/options.mk
new file mode 100644
index 00000000000..bdb3f6c383c
--- /dev/null
+++ b/databases/openldap-client/options.mk
@@ -0,0 +1,43 @@
+# $NetBSD: options.mk,v 1.1.1.1 2006/05/31 18:18:34 ghen Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.openldap-client
+PKG_SUPPORTED_OPTIONS= kerberos sasl slp inet6
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Kerberos authentication is via SASL.
+###
+.if !empty(PKG_OPTIONS:Mkerberos)
+. if empty(PKG_OPTIONS:Msasl)
+PKG_OPTIONS+= sasl
+. endif
+.endif
+
+###
+### SASL authentication (requires SASL2)
+###
+.if !empty(PKG_OPTIONS:Msasl)
+CONFIGURE_ARGS+= --with-cyrus-sasl
+BUILDLINK_API_DEPENDS.cyrus-sasl+= cyrus-sasl>=2.1.15
+. include "../../security/cyrus-sasl/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-cyrus-sasl
+.endif
+
+###
+### SLP (Service Locator Protocol)
+###
+.if !empty(PKG_OPTIONS:Mslp)
+. include "../../net/openslp/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-slp
+.endif
+
+###
+### IPv6 support
+###
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif