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.

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