noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[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_SOURCE_URL:=http://www.corpit.ru/mjt/udns
15 PKG_LICENSE:=LGPL-2.1
16 PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20 PKG_BUILD_PARALLEL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libudns
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=DNS Resolver Library
28 URL:=http://www.corpit.ru/mjt/udns.html
29 endef
30
31 define Package/libudns/description
32 UDNS is a stub DNS resolver library with ability to perform both syncronous
33 and asyncronous DNS queries.
34 endef
35
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
41 endef
42
43 define Package/libudns/install
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libudns.so* $(1)/usr/lib/
46 endef
47
48 define udns-utility-template
49 define Package/udns-$(1)
50 SECTION:=utils
51 CATEGORY:=Utilities
52 TITLE:= $(2)
53 URL:=http://www.corpit.ru/mjt/udns.html
54 DEPENDS:=+libudns
55 endef
56
57 define Package/udns-$(1)/install
58 $(INSTALL_DIR) $$(1)/usr/bin
59 $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(1) $$(1)/usr/bin/
60 endef
61
62 endef
63
64 CONFIGURE_ARGS += $(DISABLE_IPV6)
65
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))
69
70 $(eval $(call BuildPackage,libudns))
71 $(eval $(call BuildPackage,udns-dnsget))
72 $(eval $(call BuildPackage,udns-rblcheck))
73 $(eval $(call BuildPackage,udns-ex-rdns))