diff options
author | wiz <wiz> | 2006-05-14 21:09:20 +0000 |
---|---|---|
committer | wiz <wiz> | 2006-05-14 21:09:20 +0000 |
commit | 0cf904d96d4578a260a53a4c7d8a3426e63d10a6 (patch) | |
tree | a9f3d49667a8f3beaf2cd329af5a6eba638486c8 /databases/py-ldap | |
parent | fbef51033c9049fe0ef6b7801fb1654bc69fd76e (diff) | |
download | pkgsrc-0cf904d96d4578a260a53a4c7d8a3426e63d10a6.tar.gz |
Update to 2.2.0, provided by Yoshito Komatsu in PR 33478:
----------------------------------------------------------------
Released 2.2.0 2006-04-10
Changes since 2.0.11:
* OpenLDAP 2.2+ required now to build.
Modules/
* Dropped all occurences of '#ifdef #LDAP_VENDOR_VERSION'.
* Fixed wrong tuple size in l_ldap_result3() (see SF#1368108)
* Fixed get_option(ldap.OPT_API_INFO) (see SF#1440165)
* Fixed memory leak in l_ldap_result3() when all=0
(see SF#1457325)
* Fixed memory leak in l_ldap_result3() in error cases
(see SF#1464085)
Lib/
* Fixed ldap.schema.models.DITStructureRule.__str__() to
separate SUP rule-ids with a single space instead of ' $ '
* Fixed ldap.async.Dict
* Added ldap.async.IndexedDict
* ldap.schema.subentry.SubSchema.attribute_types() has new
key-word argument ignore_dit_content_rule
----------------------------------------------------------------
Released 2.0.11 2005-11-07
Changes since 2.0.10:
Lib/
* Class ldap.ldapobject.LDAPObject:
Each method returns a result now
* Class ldap.ldapobject.ReconnectLDAPObject:
Some methods called the wrong methods of LDAPObject. Fixed.
* Added new class ldap.async.Dict
* Slightly cleaned up ldap.schema.subentry.attribute_types()
* New sub-module ldap.resiter which simply provides a mix-in
class for ldap.ldapobject.LDAPObject with a generator method
allresults().
Obviously this only works with Python 2.3+. And
it's still experimental.
Diffstat (limited to 'databases/py-ldap')
-rw-r--r-- | databases/py-ldap/Makefile | 31 | ||||
-rw-r--r-- | databases/py-ldap/PLIST | 27 | ||||
-rw-r--r-- | databases/py-ldap/buildlink3.mk | 8 | ||||
-rw-r--r-- | databases/py-ldap/distinfo | 10 | ||||
-rw-r--r-- | databases/py-ldap/options.mk | 13 | ||||
-rw-r--r-- | databases/py-ldap/patches/patch-aa | 25 |
6 files changed, 85 insertions, 29 deletions
diff --git a/databases/py-ldap/Makefile b/databases/py-ldap/Makefile index 48bf97739aa..f95f0aa9f94 100644 --- a/databases/py-ldap/Makefile +++ b/databases/py-ldap/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.28 2006/04/13 21:45:13 wiz Exp $ +# $NetBSD: Makefile,v 1.29 2006/05/14 21:09:20 wiz Exp $ -DISTNAME= python-ldap-2.0.10 +DISTNAME= python-ldap-2.2.0 PKGNAME= ${DISTNAME:S/python/${PYPKGPREFIX}/} -PKGREVISION= 2 CATEGORIES= databases python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=python-ldap/} @@ -10,21 +9,31 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://sourceforge.net/projects/python-ldap/ COMMENT= LDAP client API for Python -PYTHON_VERSIONS_ACCEPTED= 21 22 23 24 +PYTHON_VERSIONS_ACCEPTED= 23 24 PYDISTUTILSPKG= yes +PY_LDAP_LIBRARY_DIRS= ${BUILDLINK_PREFIX.openldap}/lib +PY_LDAP_INCLUDE_DIRS= ${BUILDLINK_PREFIX.openldap}/include +PY_LDAP_LIBS= ldap_r lber ssl crypto + +.include "options.mk" + SUBST_CLASSES+= setup SUBST_STAGE.setup= pre-configure SUBST_FILES.setup= setup.cfg -SUBST_SED.setup= -e "s|@EXTRALIBS@|${BUILDLINK_PREFIX.cyrus-sasl}/lib ${BUILDLINK_PREFIX.openldap}/lib|" \ - -e "s|@EXTRAINCS@|${BUILDLINK_PREFIX.cyrus-sasl}/include/sasl ${BUILDLINK_PREFIX.openldap}/include|" +SUBST_SED.setup= -e "s|@PY_LDAP_LIBRARY_DIRS@|${PY_LDAP_LIBRARY_DIRS}|" +SUBST_SED.setup+= -e "s|@PY_LDAP_INCLUDE_DIRS@|${PY_LDAP_INCLUDE_DIRS}|" +SUBST_SED.setup+= -e "s|@PY_LDAP_LIBS@|${PY_LDAP_LIBS}|" + +PY_LDAP_DOCDIR= ${PREFIX}/share/doc/py-ldap + +post-install: + ${INSTALL_DATA_DIR} ${PY_LDAP_DOCDIR} + cd ${WRKSRC} && ${PAX} -rw CHANGES README INSTALL TODO Demo \ + ${PY_LDAP_DOCDIR} .include "../../databases/openldap/buildlink3.mk" -.include "../../security/cyrus-sasl/buildlink3.mk" +.include "../../security/openssl/buildlink3.mk" .include "../../lang/python/extension.mk" -.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "" -SUBST_SED.setup+= -e "s|crypto|& read|" -.endif - .include "../../mk/bsd.pkg.mk" diff --git a/databases/py-ldap/PLIST b/databases/py-ldap/PLIST index e4065be5261..b7b7fa7cc39 100644 --- a/databases/py-ldap/PLIST +++ b/databases/py-ldap/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.2 2005/08/04 11:17:04 drochner Exp $ +@comment $NetBSD: PLIST,v 1.3 2006/05/14 21:09:20 wiz Exp $ ${PYSITELIB}/_ldap.so ${PYSITELIB}/dsml.py ${PYSITELIB}/dsml.pyc @@ -51,5 +51,30 @@ ${PYSITELIB}/ldapurl.pyo ${PYSITELIB}/ldif.py ${PYSITELIB}/ldif.pyc ${PYSITELIB}/ldif.pyo +share/doc/py-ldap/CHANGES +share/doc/py-ldap/Demo/Lib/ldapurl/urlsearch.py +share/doc/py-ldap/Demo/Lib/ldif/ldifcopy.py +share/doc/py-ldap/Demo/initialize.py +share/doc/py-ldap/Demo/ldapcontrols.py +share/doc/py-ldap/Demo/options.py +share/doc/py-ldap/Demo/passwd_ext_op.py +share/doc/py-ldap/Demo/pickle_ldapobject.py +share/doc/py-ldap/Demo/reconnect.py +share/doc/py-ldap/Demo/rename.py +share/doc/py-ldap/Demo/sasl_bind.py +share/doc/py-ldap/Demo/schema.py +share/doc/py-ldap/Demo/schema_tree.py +share/doc/py-ldap/Demo/simple.py +share/doc/py-ldap/Demo/simplebrowse.py +share/doc/py-ldap/INSTALL +share/doc/py-ldap/README +share/doc/py-ldap/TODO +@dirrm share/doc/py-ldap/Demo/Lib/ldif +@dirrm share/doc/py-ldap/Demo/Lib/ldapurl +@dirrm share/doc/py-ldap/Demo/Lib/ldap/res +@dirrm share/doc/py-ldap/Demo/Lib/ldap +@dirrm share/doc/py-ldap/Demo/Lib +@dirrm share/doc/py-ldap/Demo +@dirrm share/doc/py-ldap/ @dirrm ${PYSITELIB}/ldap/schema @dirrm ${PYSITELIB}/ldap diff --git a/databases/py-ldap/buildlink3.mk b/databases/py-ldap/buildlink3.mk index 5d9940d7fbc..bfc352861d0 100644 --- a/databases/py-ldap/buildlink3.mk +++ b/databases/py-ldap/buildlink3.mk @@ -1,6 +1,6 @@ -# $NetBSD: buildlink3.mk,v 1.5 2006/04/12 10:27:05 rillig Exp $ +# $NetBSD: buildlink3.mk,v 1.6 2006/05/14 21:09:20 wiz Exp $ -BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ PY_LDAP_BUILDLINK3_MK:= ${PY_LDAP_BUILDLINK3_MK}+ .include "../../lang/python/pyversion.mk" @@ -13,8 +13,8 @@ BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npyldap} BUILDLINK_PACKAGES+= pyldap .if !empty(PY_LDAP_BUILDLINK3_MK:M+) -BUILDLINK_API_DEPENDS.pyldap+= ${PYPKGPREFIX}-ldap>=2.0.10nb1 -BUILDLINK_ABI_DEPENDS.pyldap?= ${PYPKGPREFIX}-ldap>=2.0.10nb2 +BUILDLINK_API_DEPENDS.pyldap+= ${PYPKGPREFIX}-ldap>=2.2.0 +BUILDLINK_ABI_DEPENDS.pyldap?= ${PYPKGPREFIX}-ldap>=2.2.0 BUILDLINK_PKGSRCDIR.pyldap?= ../../databases/py-ldap .endif # PY_LDAP_BUILDLINK3_MK diff --git a/databases/py-ldap/distinfo b/databases/py-ldap/distinfo index 3ac5e43e301..fd5ce29decd 100644 --- a/databases/py-ldap/distinfo +++ b/databases/py-ldap/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.8 2005/10/25 17:09:33 drochner Exp $ +$NetBSD: distinfo,v 1.9 2006/05/14 21:09:20 wiz Exp $ -SHA1 (python-ldap-2.0.10.tar.gz) = 268dd0a8815080a84d4f410577873b4051da2a27 -RMD160 (python-ldap-2.0.10.tar.gz) = 6c6e39c782812bdecf3f7325022f7aa78d9f9ff6 -Size (python-ldap-2.0.10.tar.gz) = 80655 bytes -SHA1 (patch-aa) = 6285962cf3d0fa7d1a0cd4369c75db1b6d9b9476 +SHA1 (python-ldap-2.2.0.tar.gz) = bc25275af4690b7438728787bd429e249e428260 +RMD160 (python-ldap-2.2.0.tar.gz) = d0dc7f3852dc980b032e24bb89b6f7687d562412 +Size (python-ldap-2.2.0.tar.gz) = 70993 bytes +SHA1 (patch-aa) = 4486e22126fa66be9df0f85f2f8e50303942aded diff --git a/databases/py-ldap/options.mk b/databases/py-ldap/options.mk new file mode 100644 index 00000000000..cedec90d882 --- /dev/null +++ b/databases/py-ldap/options.mk @@ -0,0 +1,13 @@ +# $NetBSD: options.mk,v 1.1 2006/05/14 21:09:20 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.py-ldap +PKG_SUPPORTED_OPTIONS= sasl + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Msasl) +.include "../../security/cyrus-sasl/buildlink3.mk" +PY_LDAP_LIBRARY_DIRS+= ${BUILDLINK_PREFIX.cyrus-sasl}/lib +PY_LDAP_INCLUDE_DIRS+= ${BUILDLINK_PREFIX.cyrus-sasl}/include/sasl +PY_LDAP_LIBS+= sasl2 +.endif diff --git a/databases/py-ldap/patches/patch-aa b/databases/py-ldap/patches/patch-aa index ff488dfc6fd..23ae8c8ce39 100644 --- a/databases/py-ldap/patches/patch-aa +++ b/databases/py-ldap/patches/patch-aa @@ -1,15 +1,24 @@ -$NetBSD: patch-aa,v 1.3 2005/10/25 17:09:33 drochner Exp $ +$NetBSD: patch-aa,v 1.4 2006/05/14 21:09:20 wiz Exp $ ---- setup.cfg.orig 2005-10-25 16:40:19.000000000 +0200 +--- setup.cfg.orig 2005-07-28 21:56:49.000000000 +0900 +++ setup.cfg @@ -7,8 +7,8 @@ # for wrapping OpenLDAP 2 libs [_ldap] --library_dirs = /opt/openldap-OPENLDAP_REL_ENG_2_3/lib /opt/sasl/lib --include_dirs = /opt/openldap-OPENLDAP_REL_ENG_2_3/include /opt/sasl/include/sasl /usr/include/sasl -+library_dirs = @EXTRALIBS@ -+include_dirs = @EXTRAINCS@ - #library_dirs = /opt/openldap-HEAD/lib /opt/sasl/lib - #include_dirs = /opt/openldap-HEAD/include /opt/sasl/include/sasl /usr/include/sasl +-library_dirs = /usr/local/openldap-REL_ENG_2_1/lib /usr/local/cyrus-sasl/lib +-include_dirs = /usr/local/openldap-REL_ENG_2_1/include /usr/local/cyrus-sasl/include ++library_dirs = @PY_LDAP_LIBRARY_DIRS@ ++include_dirs = @PY_LDAP_INCLUDE_DIRS@ + extra_compile_args = + extra_objects = +@@ -23,7 +23,7 @@ extra_objects = + # Support for StartTLS/LDAPS, SASL bind and reentrant libldap_r. + # This needs recent OpenLDAP 2.0.26+ or 2.1.3+ built with + # ./configure --with-cyrus-sasl --with-tls +-libs = ldap_r lber sasl2 ssl crypto ++libs = @PY_LDAP_LIBS@ + + # Installation options + [install] |