2 # Copyright (C) 2017 Yousong Zhou <yszhou4tech@gmail.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_HASH
:=115108dc791a2f9e99e150012bcb459d9095da2dd7d80699b584ac0ac3768710
15 PKG_SOURCE_URL
:=http
://www.corpit.ru
/mjt
/udns
17 PKG_MAINTAINER
:=Yousong Zhou
<yszhou4tech@gmail.com
>
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/libudns
28 TITLE
:=DNS Resolver Library
29 URL
:=http
://www.corpit.ru
/mjt
/udns.html
32 define Package
/libudns
/description
33 UDNS is a stub DNS resolver library with ability to perform both syncronous
34 and asyncronous DNS queries.
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
44 define Package
/libudns
/install
45 $(INSTALL_DIR
) $(1)/usr
/lib
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libudns.so
* $(1)/usr
/lib
/
49 define udns-utility-template
50 define Package
/udns-
$(1)
54 URL
:=http
://www.corpit.ru
/mjt
/udns.html
58 define Package
/udns-
$(1)/install
59 $(INSTALL_DIR
) $$(1)/usr
/bin
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(1) $$(1)/usr
/bin
/
65 CONFIGURE_ARGS
+= $(DISABLE_IPV6
)
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
))
71 $(eval
$(call BuildPackage
,libudns
))
72 $(eval
$(call BuildPackage
,udns-dnsget
))
73 $(eval
$(call BuildPackage
,udns-rblcheck
))
74 $(eval
$(call BuildPackage
,udns-ex-rdns
))