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.

46 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2014 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:=dnspython
  9. PKG_RELEASE:=1
  10. PKG_SOURCE_URL:=http://www.dnspython.org/kits/$(PKG_VERSION)
  11. PKG_VERSION:=1.12.0
  12. PKG_MD5SUM:=3f2601ef3c8b77fc6d21a9c77a81efeb
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_MAINTAINER:=Denis Shulyaka <Shulyaka@gmail.com>
  15. PKG_LICENSE:=ISC
  16. PKG_LICENSE_FILE:=LICENSE
  17. include $(INCLUDE_DIR)/package.mk
  18. $(call include_mk, python-package.mk)
  19. define Package/python-dns
  20. SECTION:=language-python
  21. CATEGORY:=Languages
  22. SUBMENU:=Python
  23. TITLE:=dnspython
  24. URL:=http://www.dnspython.org/
  25. DEPENDS:=+python-mini
  26. endef
  27. define Package/python-dns/description
  28. dnspython is a DNS toolkit for Python. It supports almost all record types. It can be used for queries, zone transfers, and dynamic updates. It supports TSIG authenticated messages and EDNS0.
  29. endef
  30. define Build/Compile
  31. $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
  32. endef
  33. define Package/python-dns/install
  34. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  35. $(CP) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/dns/* \
  36. $(1)$(PYTHON_PKG_DIR)
  37. endef
  38. $(eval $(call BuildPackage,python-dns))