2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MAINTAINER
:=Dmitry Trefilov
<the-alien@live.ru
>
14 PKG_LICENSE
:=Python-style
15 PKG_LICENSE_FILES
:=LICENSE
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
18 PKG_SOURCE_URL
:=https
://pypi.python.org
/packages
/source
/p
/$(PKG_NAME
)
19 PKG_MD5SUM
:=f98ecd0581766a43954ba0f218053032
21 PKG_BUILD_DEPENDS
:=python libopenldap
23 include $(INCLUDE_DIR
)/package.mk
24 $(call include_mk
, python-package.mk
)
26 define Package
/python-ldap
30 DEPENDS
:=+libopenldap
+python
31 TITLE
:=Python modules for implementing LDAP clients
32 URL
:=http
://python-ldap.org
/
35 define Package
/python-ldap
/description
36 python-ldap provides an object-oriented API to access LDAP directory
37 servers from Python programs. Mainly it wraps the OpenLDAP
2.x libs
38 for that purpose. Additionally the package contains modules for
39 other LDAP-related stuff
(e.g. processing LDIF
, LDAPURLs
, LDAPv3
40 schema
, LDAPv3 extended operations and controls
, etc.
).
44 $(call Build
/Compile
/PyMod
,,build_ext \
45 --include-dirs
="$(STAGING_DIR)/usr/include:$(STAGING_DIR)/usr/include/sasl" \
46 --library-dirs
="$(STAGING_DIR)/usr/lib:$(STAGING_DIR)/usr/lib/sasl2" \
48 install --prefix="$(PKG_INSTALL_DIR)/usr")
51 define PyPackage
/python-ldap
/install
52 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)
54 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/* \
58 $(eval
$(call PyPackage
,python-ldap
))
59 $(eval
$(call BuildPackage
,python-ldap
))