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_SOURCE_URL
:=http
://www.corpit.ru
/mjt
/udns
16 PKG_MAINTAINER
:=Yousong Zhou
<yszhou4tech@gmail.com
>
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/libudns
27 TITLE
:=DNS Resolver Library
28 URL
:=http
://www.corpit.ru
/mjt
/udns.html
31 define Package
/libudns
/description
32 UDNS is a stub DNS resolver library with ability to perform both syncronous
33 and asyncronous DNS queries.
36 define Build
/InstallDev
37 $(INSTALL_DIR
) $(1)/usr
/include
38 $(INSTALL_DIR
) $(1)/usr
/lib
39 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include
40 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* $(1)/usr
/lib
43 define Package
/libudns
/install
44 $(INSTALL_DIR
) $(1)/usr
/lib
45 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libudns.so
* $(1)/usr
/lib
/
48 define udns-utility-template
49 define Package
/udns-
$(1)
53 URL
:=http
://www.corpit.ru
/mjt
/udns.html
57 define Package
/udns-
$(1)/install
58 $(INSTALL_DIR
) $$(1)/usr
/bin
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(1) $$(1)/usr
/bin
/
64 CONFIGURE_ARGS
+= $(DISABLE_IPV6
)
66 $(eval
$(call udns-utility-template
,dnsget
,a simple DNS query tool
))
67 $(eval
$(call udns-utility-template
,rblcheck
,a simple DNSBL lookups tool
))
68 $(eval
$(call udns-utility-template
,ex-rdns
,a parallel rDNS resolver
))
70 $(eval
$(call BuildPackage
,libudns
))
71 $(eval
$(call BuildPackage
,udns-dnsget
))
72 $(eval
$(call BuildPackage
,udns-rblcheck
))
73 $(eval
$(call BuildPackage
,udns-ex-rdns
))