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.

66 lines
1.8 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 ../python-package.mk
  21. include ../python3-package.mk
  22. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  23. define Package/python-dns/Default
  24. SUBMENU:=Python
  25. SECTION:=lang
  26. CATEGORY:=Languages
  27. TITLE:=dnspython
  28. URL:=http://www.dnspython.org/
  29. endef
  30. define Package/python-dns
  31. $(call Package/python-dns/Default)
  32. DEPENDS:=+PACKAGE_python-dns:python
  33. VARIANT:=python
  34. endef
  35. define Package/python-dns/description
  36. 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.
  37. endef
  38. define Package/python3-dns
  39. $(call Package/python-dns/Default)
  40. DEPENDS:=+PACKAGE_python3-dns:python3
  41. VARIANT:=python3
  42. endef
  43. define Package/python3-dns/description
  44. $(call Package/python-dns/description)
  45. .
  46. (Variant for Python3)
  47. endef
  48. $(eval $(call PyPackage,python-dns))
  49. $(eval $(call BuildPackage,python-dns))
  50. $(eval $(call BuildPackage,python-dns-src))
  51. $(eval $(call Py3Package,python3-dns))
  52. $(eval $(call BuildPackage,python3-dns))
  53. $(eval $(call BuildPackage,python3-dns-src))