diff options
author | Ruslan Makhmatkhanov <rm@FreeBSD.org> | 2016-01-25 12:54:50 +0000 |
---|---|---|
committer | Ruslan Makhmatkhanov <rm@FreeBSD.org> | 2016-01-25 12:54:50 +0000 |
commit | 1f3f185b85c5fb63364aabb9ff7173a927cc8388 (patch) | |
tree | b26c31923b057e84c35f5ebf63df7350fdad6e2a /net/py-pyldap/Makefile | |
parent | 310fc7eeb723e3130db6ec184218e6057537f79f (diff) |
Notes
Diffstat (limited to 'net/py-pyldap/Makefile')
-rw-r--r-- | net/py-pyldap/Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/net/py-pyldap/Makefile b/net/py-pyldap/Makefile new file mode 100644 index 000000000000..9b7a60ca7c4b --- /dev/null +++ b/net/py-pyldap/Makefile @@ -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> |