You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2016-2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-ldap
  9. PKG_VERSION:=2.4.32
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Dmitry Trefilov <the-alien@live.ru>
  12. PKG_LICENSE:=Python-style
  13. PKG_LICENSE_FILES:=LICENSE
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=https://pypi.python.org/packages/67/d9/fa0ea70d1792875745116ad62ac8d4bcb07550b15cded591bb57df6a6d9a
  16. PKG_HASH:=5810f1b5a9ae9255df99fb9c2dcab7352fed325687efda56c0faae1a82c5e3cb
  17. PKG_BUILD_DEPENDS:=python libopenldap
  18. include $(INCLUDE_DIR)/package.mk
  19. $(call include_mk, python-package.mk)
  20. define Package/python-ldap
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. DEPENDS:=+libopenldap +python
  25. TITLE:=Python modules for implementing LDAP clients
  26. URL:=http://python-ldap.org/
  27. endef
  28. define Package/python-ldap/description
  29. python-ldap provides an object-oriented API to access LDAP directory
  30. servers from Python programs. Mainly it wraps the OpenLDAP 2.x libs
  31. for that purpose. Additionally the package contains modules for
  32. other LDAP-related stuff (e.g. processing LDIF, LDAPURLs, LDAPv3
  33. schema, LDAPv3 extended operations and controls, etc.).
  34. endef
  35. define Build/Compile
  36. $(call Build/Compile/PyMod,,build_ext \
  37. --include-dirs="$(STAGING_DIR)/usr/include:$(STAGING_DIR)/usr/include/sasl" \
  38. --library-dirs="$(STAGING_DIR)/usr/lib:$(STAGING_DIR)/usr/lib/sasl2" \
  39. build_py \
  40. install --prefix="$(PKG_INSTALL_DIR)/usr")
  41. endef
  42. define PyPackage/python-ldap/install
  43. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  46. $(1)$(PYTHON_PKG_DIR)
  47. endef
  48. $(eval $(call PyPackage,python-ldap))
  49. $(eval $(call BuildPackage,python-ldap))