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