openbsd-ports/databases/py-ldap/patches/patch-setup_py
sturm 5564337ce6 Initial import of py-ldap 2.0.0pre14
python-ldap provides an object-oriented API to access LDAP
directory servers from Python programs. Mainly it wraps the
OpenLDAP 2.x libs for that purpose.

Additionally the package contains modules for other LDAP-related
stuff (e.g. processing LDIF, LDAPURLs, LDAPv3 sub-schema, etc.).

Not included: Direct BER support

WWW: http://python-ldap.sourceforge.net/

from Marc Balmer <marc@msys.ch>
2003-11-01 15:24:06 +00:00

19 lines
522 B
Plaintext

--- setup.py.orig Wed Aug 20 22:27:10 2003
+++ setup.py Thu Oct 9 21:34:56 2003
@@ -27,8 +27,13 @@
#-- A class describing the features and requirements of OpenLDAP 2.0
class OpenLDAP2:
- library_dirs = []
- include_dirs = []
+ localbase = os.getenv('LOCALBASE')
+ if localbase == None:
+ localbase = '/usr/local'
+
+ library_dirs = ['%s/lib' % localbase]
+ include_dirs = ['%s/include' % localbase]
+
extra_compile_args = []
extra_link_args = []
extra_objects = []