Merge pull request #4863 from lucize/dovesql
[feed/packages.git] / libs / udns / Makefile
1 #
2 # Copyright (C) 2017 Yousong Zhou <yszhou4tech@gmail.com>
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
9 PKG_NAME:=udns
10 PKG_VERSION:=0.4
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_HASH:=115108dc791a2f9e99e150012bcb459d9095da2dd7d80699b584ac0ac3768710
15 PKG_SOURCE_URL:=http://www.corpit.ru/mjt/udns
16 PKG_LICENSE:=LGPL-2.1
17 PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
18
19 PKG_FIXUP:=autoreconf
20 PKG_INSTALL:=1
21 PKG_BUILD_PARALLEL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libudns
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=DNS Resolver Library
29 URL:=http://www.corpit.ru/mjt/udns.html
30 endef
31
32 define Package/libudns/description
33 UDNS is a stub DNS resolver library with ability to perform both syncronous
34 and asyncronous DNS queries.
35 endef
36
37 define Build/InstallDev
38 $(INSTALL_DIR) $(1)/usr/include
39 $(INSTALL_DIR) $(1)/usr/lib
40 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib
42 endef
43
44 define Package/libudns/install
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libudns.so* $(1)/usr/lib/
47 endef
48
49 define udns-utility-template
50 define Package/udns-$(1)
51 SECTION:=utils
52 CATEGORY:=Utilities
53 TITLE:= $(2)
54 URL:=http://www.corpit.ru/mjt/udns.html
55 DEPENDS:=+libudns
56 endef
57
58 define Package/udns-$(1)/install
59 $(INSTALL_DIR) $$(1)/usr/bin
60 $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(1) $$(1)/usr/bin/
61 endef
62
63 endef
64
65 CONFIGURE_ARGS += $(DISABLE_IPV6)
66
67 $(eval $(call udns-utility-template,dnsget,a simple DNS query tool))
68 $(eval $(call udns-utility-template,rblcheck,a simple DNSBL lookups tool))
69 $(eval $(call udns-utility-template,ex-rdns,a parallel rDNS resolver))
70
71 $(eval $(call BuildPackage,libudns))
72 $(eval $(call BuildPackage,udns-dnsget))
73 $(eval $(call BuildPackage,udns-rblcheck))
74 $(eval $(call BuildPackage,udns-ex-rdns))