Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2016 12:54:50 +0000 (UTC)
From:      Ruslan Makhmatkhanov <rm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r407210 - in head/net: . py-pyldap
Message-ID:  <201601251254.u0PCso6o092190@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rm
Date: Mon Jan 25 12:54:50 2016
New Revision: 407210
URL: https://svnweb.freebsd.org/changeset/ports/407210

Log:
  Python modules for implementing LDAP clients
  
  pyldap is a fork of python-ldap, capable of both python 2.x and 3.x, taht
  provides an object-oriented API to access LDAP directory servers from Python
  programs. Mainly it wraps the OpenLDAP 2.x libs for that purpose. Additionally
  the package contains modules for other LDAP-related stuff (e.g. processing LDIF,
  LDAPURLs, LDAPv3 schema, LDAPv3 extended operations and controls, etc.).
  
  WWW: https://github.com/pyldap/pyldap/

Added:
  head/net/py-pyldap/
  head/net/py-pyldap/Makefile   (contents, props changed)
  head/net/py-pyldap/distinfo   (contents, props changed)
  head/net/py-pyldap/pkg-descr   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Mon Jan 25 12:31:21 2016	(r407209)
+++ head/net/Makefile	Mon Jan 25 12:54:50 2016	(r407210)
@@ -971,6 +971,7 @@
     SUBDIR += py-port-for
     SUBDIR += py-pybeanstalk
     SUBDIR += py-pygeoip
+    SUBDIR += py-pyldap
     SUBDIR += py-pynmsg
     SUBDIR += py-pynsq
     SUBDIR += py-pypcap

Added: head/net/py-pyldap/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/py-pyldap/Makefile	Mon Jan 25 12:54:50 2016	(r407210)
@@ -0,0 +1,44 @@
+# $FreeBSD$
+
+PORTNAME=	pyldap
+PORTVERSION=	2.4.21
+CATEGORIES=	net python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	rm@FreeBSD.org
+COMMENT=	Fork of python-ldap with Python 3 support
+
+LICENSE=	PSFL
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyasn1-modules>=0:${PORTSDIR}/devel/py-pyasn1-modules
+
+CONFLICTS_INSTALL=	py27-ldap
+USES=		python
+USE_PYTHON=	autoplist distutils
+USE_OPENLDAP=		yes
+WANT_OPENLDAP_VER=	24
+
+REPLACE_ARGS=	-e 's,/usr/include/sasl,${LOCALBASE}/include/sasl,' \
+		-e 's,/usr/local,${LOCALBASE},'
+
+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
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_ldap.so
+
+.include <bsd.port.mk>

Added: head/net/py-pyldap/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/py-pyldap/distinfo	Mon Jan 25 12:54:50 2016	(r407210)
@@ -0,0 +1,2 @@
+SHA256 (pyldap-2.4.21.tar.gz) = 7a2b1dc31679466db11320b91bd2058574ba25ef27224967040918046ff4c450
+SIZE (pyldap-2.4.21.tar.gz) = 124575

Added: head/net/py-pyldap/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/py-pyldap/pkg-descr	Mon Jan 25 12:54:50 2016	(r407210)
@@ -0,0 +1,9 @@
+Python modules for implementing LDAP clients
+
+pyldap is a fork of python-ldap, and provides an object-oriented API to access
+LDAP directory servers from Python programs. Mainly it wraps the OpenLDAP 2.x
+libs for that purpose. Additionally the package contains modules for other
+LDAP-related stuff (e.g. processing LDIF, LDAPURLs, LDAPv3 schema, LDAPv3
+extended operations and controls, etc.).
+
+WWW: https://github.com/pyldap/pyldap/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601251254.u0PCso6o092190>