2000-08-07 07:35:33 +00:00
|
|
|
# New ports collection makefile for: ldapmodule
|
|
|
|
# Date created: 05.Jul 2000
|
|
|
|
# Whom: dirk.meyer@dinoex.sub.org
|
2000-07-13 16:17:29 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2002-02-28 08:27:36 +00:00
|
|
|
PORTNAME= ldap2
|
2005-09-28 23:20:16 +00:00
|
|
|
PORTVERSION= 2.0.10
|
2002-02-28 08:27:36 +00:00
|
|
|
CATEGORIES= net
|
2001-10-07 19:05:33 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= python-ldap
|
2002-02-28 08:27:36 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2002-05-23 10:59:17 +00:00
|
|
|
DISTNAME= python-ldap-${PORTVERSION}
|
2000-07-13 16:17:29 +00:00
|
|
|
|
2005-08-28 08:55:16 +00:00
|
|
|
MAINTAINER= vsevolod@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= An LDAP module for python, for OpenLDAP2
|
2000-07-13 16:17:29 +00:00
|
|
|
|
2002-01-25 06:26:39 +00:00
|
|
|
USE_PYTHON= yes
|
2002-04-29 18:37:38 +00:00
|
|
|
USE_PYDISTUTILS= yes
|
2003-12-29 18:04:51 +00:00
|
|
|
USE_OPENLDAP= yes
|
|
|
|
USE_REINPLACE= yes
|
2005-07-25 14:33:19 +00:00
|
|
|
WANT_OPENLDAP_VER= 22
|
|
|
|
|
2005-09-28 23:20:16 +00:00
|
|
|
REPLACE_ARGS= -e 's=/opt/openldap-OPENLDAP_REL_ENG_2_3/include=${LOCALBASE}/include='
|
2005-07-25 14:33:19 +00:00
|
|
|
|
|
|
|
.if defined(WITH_SASL)
|
|
|
|
WANT_OPENLDAP_SASL= yes
|
2005-09-28 23:20:16 +00:00
|
|
|
REPLACE_ARGS+= -e 's=/opt/sasl/include/sasl=${LOCALBASE}/include/sasl=' \
|
|
|
|
-e 's=/opt/openldap-OPENLDAP_REL_ENG_2_3/lib=${LOCALBASE}/lib ${LOCALBASE}/lib/sasl2='
|
2005-07-25 14:33:19 +00:00
|
|
|
CONFLICTS+= openldap22-client-2.*
|
|
|
|
.else
|
2005-09-28 23:20:16 +00:00
|
|
|
REPLACE_ARGS+= -e 's=ldap_r lber ssl crypto sasl2=ldap_r lber ssl crypto=' \
|
|
|
|
-e 's=/opt/openldap-OPENLDAP_REL_ENG_2_3/lib=${LOCALBASE}/lib='
|
2005-07-25 14:33:19 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO} "============================================================="
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "You can build ${PKGNAME} with the following options:"
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "WITH_SASL with (Cyrus) SASL2 support"
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "============================================================="
|
|
|
|
@${ECHO}
|
2000-07-13 16:17:29 +00:00
|
|
|
|
2002-02-28 08:27:36 +00:00
|
|
|
do-configure:
|
2005-07-25 14:33:19 +00:00
|
|
|
@${REINPLACE_CMD} ${REPLACE_ARGS} ${WRKSRC}/setup.cfg
|
2002-02-28 08:27:36 +00:00
|
|
|
|
2000-07-13 16:17:29 +00:00
|
|
|
.include <bsd.port.mk>
|