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.

65 lines
1.7 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:=python-dns
  9. PKG_VERSION:=1.16.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=dnspython-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.dnspython.org/kits/1.16.0/
  13. PKG_HASH:=4bf5c5c12a4478ee7860ab176659cf64c4899ee76752d826b082f8af723c5cf9
  14. PKG_LICENSE:=ISC
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-dnspython-$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. include ../python3-package.mk
  21. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  22. define Package/python-dns/Default
  23. SUBMENU:=Python
  24. SECTION:=lang
  25. CATEGORY:=Languages
  26. TITLE:=dnspython
  27. URL:=http://www.dnspython.org/
  28. endef
  29. define Package/python-dns
  30. $(call Package/python-dns/Default)
  31. DEPENDS:=+PACKAGE_python-dns:python
  32. VARIANT:=python
  33. endef
  34. define Package/python-dns/description
  35. 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.
  36. endef
  37. define Package/python3-dns
  38. $(call Package/python-dns/Default)
  39. DEPENDS:=+PACKAGE_python3-dns:python3
  40. VARIANT:=python3
  41. endef
  42. define Package/python3-dns/description
  43. $(call Package/python-dns/description)
  44. .
  45. (Variant for Python3)
  46. endef
  47. $(eval $(call PyPackage,python-dns))
  48. $(eval $(call BuildPackage,python-dns))
  49. $(eval $(call BuildPackage,python-dns-src))
  50. $(eval $(call Py3Package,python3-dns))
  51. $(eval $(call BuildPackage,python3-dns))
  52. $(eval $(call BuildPackage,python3-dns-src))