[COPY] --- T2-COPYRIGHT-BEGIN --- [COPY] t2/package/*/python-ldap/python-ldap.desc [COPY] Copyright (C) 2004 - 2026 The T2 SDE Project [COPY] SPDX-License-Identifier: GPL-2.0 [COPY] --- T2-COPYRIGHT-END --- [I] LDAP API for Python [T] python-ldap provides an object-oriented API to access LDAP directory [T] servers from Python programs. Mainly it wraps the OpenLDAP 2.x libs [T] for that purpose. [T] Additionally the package contains modules for other LDAP-related stuff [T] (e.g. processing LDIF, LDAPURLs, LDAPv3 schema, etc.). [U] https://python-ldap.sourceforge.net [A] Michael Stroeder [M] René Rebe [C] extra/development [E] add python openldap openssl cyrus-sasl2 [L] OpenSource [V] 3.4.8 [P] X -----5---9 300.000 [D] 6ebfd13c89b2b696d39e979d132e7a876b53c096af1399a8517d36d6 python_ldap-3.4.8.tar.gz https://files.pythonhosted.org/packages/source/p/python-ldap/ runmake=0 python_ldap_preconf() { for package in openldap openssl cyrus-sasl2; do if pkginstalled $package; then pkgprefix -t $package lib_dir="$lib_dir $(pkgprefix libdir $package)" inc_dir="$inc_dir $(pkgprefix includedir $package)" fi done pkginstalled openldap && var_append GCC_WRAPPER_APPEND ' ' "-I$root$(pkgprefix includedir openldap) -L$root$(pkgprefix libdir openldap)" # adjusting library and include path sed -i "/library_dirs/s,/.*,$lib_dir," setup.cfg sed -i "/include_dirs/s,/.*,$inc_dir," setup.cfg # removing hardcoded sasl from setup.cfg if cyrus-sasl2 # is not installed if ! pkginstalled cyrus-sasl; then sed -i "s/^\(libs.*\) sasl2 \(.*\)/\1 \2/g" setup.cfg fi } hook_add preconf 5 python_ldap_preconf