You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.9 KiB

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