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.

52 lines
1.4 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_CPE_ID:=cpe:/a:debian:python-dns
  18. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-dnspython-$(PKG_VERSION)
  19. include $(INCLUDE_DIR)/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/python3-dns
  30. $(call Package/python-dns/Default)
  31. DEPENDS:=+PACKAGE_python3-dns:python3
  32. VARIANT:=python3
  33. endef
  34. define Package/python3-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. .
  37. (Variant for Python3)
  38. endef
  39. $(eval $(call Py3Package,python3-dns))
  40. $(eval $(call BuildPackage,python3-dns))
  41. $(eval $(call BuildPackage,python3-dns-src))