Merge pull request #582 from Shulyaka/master
[feed/packages.git] / lang / 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:=dnspython
11 PKG_RELEASE:=1
12 PKG_VERSION:=1.12.0
13 PKG_SOURCE_URL:=http://www.dnspython.org/kits/$(PKG_VERSION)
14 PKG_MD5SUM:=3f2601ef3c8b77fc6d21a9c77a81efeb
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_MAINTAINER:=Denis Shulyaka <Shulyaka@gmail.com>
17 PKG_LICENSE:=ISC
18 PKG_LICENSE_FILES:=LICENSE
19
20 include $(INCLUDE_DIR)/package.mk
21 $(call include_mk, python-package.mk)
22
23 define Package/python-dns
24 SECTION:=language-python
25 CATEGORY:=Languages
26 SUBMENU:=Python
27 TITLE:=dnspython
28 URL:=http://www.dnspython.org/
29 DEPENDS:=+python-mini
30 endef
31
32 define Package/python-dns/description
33 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.
34 endef
35
36 define Build/Compile
37 $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
38 endef
39
40 define Package/python-dns/install
41 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
42 $(CP) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/dns/* \
43 $(1)$(PYTHON_PKG_DIR)
44 endef
45
46 $(eval $(call BuildPackage,python-dns))