aboutsummaryrefslogtreecommitdiffstats
path: root/net/py-ldap
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2015-06-19 03:56:52 +0800
committerrm <rm@FreeBSD.org>2015-06-19 03:56:52 +0800
commit498ef14967422c96607443eeb04ecc7966a06d39 (patch)
tree296529de64dc6a4f4fd3fc1ac9478c982c6ece1b /net/py-ldap
parent246bcdf2ad67330124f11f13c2da58b64276d4a7 (diff)
downloadfreebsd-ports-gnome-498ef14967422c96607443eeb04ecc7966a06d39.tar.gz
freebsd-ports-gnome-498ef14967422c96607443eeb04ecc7966a06d39.tar.zst
freebsd-ports-gnome-498ef14967422c96607443eeb04ecc7966a06d39.zip
net/py-ldap2: rename to py-ldap
To better match upstream name
Diffstat (limited to 'net/py-ldap')
-rw-r--r--net/py-ldap/Makefile43
-rw-r--r--net/py-ldap/distinfo2
-rw-r--r--net/py-ldap/pkg-descr12
3 files changed, 57 insertions, 0 deletions
diff --git a/net/py-ldap/Makefile b/net/py-ldap/Makefile
new file mode 100644
index 000000000000..fa32b70cf591
--- /dev/null
+++ b/net/py-ldap/Makefile
@@ -0,0 +1,43 @@
+# $FreeBSD$
+
+PORTNAME= ldap
+PORTVERSION= 2.4.19
+CATEGORIES= net python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= python-${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= rm@FreeBSD.org
+COMMENT= LDAP module for python, for OpenLDAP2
+
+LICENSE= PSFL
+LICENSE_FILE= ${WRKSRC}/LICENCE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1-modules>=0:${PORTSDIR}/devel/py-asn1-modules
+
+USES= python:2
+USE_PYTHON= autoplist distutils
+USE_OPENLDAP= yes
+WANT_OPENLDAP_VER= 24
+
+REPLACE_ARGS= -e 's,/opt/openldap-RE24/lib,${LOCALBASE}/lib,' \
+ -e 's,/opt/openldap-RE24/include,${LOCALBASE}/include,' \
+ -e 's,/usr/include/sasl,${LOCALBASE}/include/sasl,'
+
+OPTIONS_DEFINE= SASL
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MSASL}
+WANT_OPENLDAP_SASL= yes
+CONFLICTS+= openldap24-client-2.*
+.endif
+
+do-configure:
+ @${REINPLACE_CMD} ${REPLACE_ARGS} ${WRKSRC}/setup.cfg
+.if ! ${PORT_OPTIONS:MSASL}
+ @cd ${WRKSRC} && ${PYTHON_CMD} setup.py -q setopt -c _ldap -s HAVE_TLS -o defines
+ @cd ${WRKSRC} && ${PYTHON_CMD} setup.py -q saveopts
+.endif
+
+.include <bsd.port.mk>
diff --git a/net/py-ldap/distinfo b/net/py-ldap/distinfo
new file mode 100644
index 000000000000..b0eae38ea481
--- /dev/null
+++ b/net/py-ldap/distinfo
@@ -0,0 +1,2 @@
+SHA256 (python-ldap-2.4.19.tar.gz) = 02fddb3accbfb54e40ff47a59457e422b253f9fb6cd64bb3851b349295fab048
+SIZE (python-ldap-2.4.19.tar.gz) = 138503
diff --git a/net/py-ldap/pkg-descr b/net/py-ldap/pkg-descr
new file mode 100644
index 000000000000..add35193d5e6
--- /dev/null
+++ b/net/py-ldap/pkg-descr
@@ -0,0 +1,12 @@
+
+ LDAP Wrapper for Python
+
+ This module provides an LDAP API to Python in the spirit of RFC1823.
+
+Some cool things people have done with ldapmodule
+
+ * LANL phone book (source)
+ * Michael Stroeder's web2ldap (previously ldap-client-cgi.py).
+ * LDAP support for Zope (see also Zope)
+
+WWW: http://www.python-ldap.org/