diff options
author | rm <rm@FreeBSD.org> | 2015-06-19 03:56:52 +0800 |
---|---|---|
committer | rm <rm@FreeBSD.org> | 2015-06-19 03:56:52 +0800 |
commit | 498ef14967422c96607443eeb04ecc7966a06d39 (patch) | |
tree | 296529de64dc6a4f4fd3fc1ac9478c982c6ece1b /net/py-ldap/Makefile | |
parent | 246bcdf2ad67330124f11f13c2da58b64276d4a7 (diff) | |
download | freebsd-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/Makefile')
-rw-r--r-- | net/py-ldap/Makefile | 43 |
1 files changed, 43 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> |