2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=dnspython-
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.dnspython.org
/kits
/1.16.0/
16 PKG_HASH
:=4bf5c5c12a4478ee7860ab176659cf64c4899ee76752d826b082f8af723c5cf9
19 PKG_LICENSE_FILES
:=LICENSE
20 PKG_MAINTAINER
:=Josef Schlehofer
<pepe.schlehofer@gmail.com
>
21 PKG_CPE_ID
:=cpe
:/a
:debian
:python-dns
23 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(BUILD_VARIANT
)-dnspython-
$(PKG_VERSION
)
25 include $(INCLUDE_DIR
)/package.mk
26 include ..
/python-package.mk
27 include ..
/python3-package.mk
29 PKG_UNPACK
:=$(HOST_TAR
) -C
$(PKG_BUILD_DIR
) --strip-components
=1 -xzf
$(DL_DIR
)/$(PKG_SOURCE
)
31 define Package
/python-dns
/Default
36 URL
:=http
://www.dnspython.org
/
39 define Package
/python-dns
40 $(call Package
/python-dns
/Default
)
41 DEPENDS
:=+PACKAGE_python-dns
:python
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.
49 define Package
/python3-dns
50 $(call Package
/python-dns
/Default
)
51 DEPENDS
:=+PACKAGE_python3-dns
:python3
55 define Package
/python3-dns
/description
56 $(call Package
/python-dns
/description
)
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
))