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.

85 lines
2.1 KiB

  1. #
  2. # Copyright (C) 2011-2015 OpenWrt.org
  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:=ldns
  9. PKG_VERSION:=1.7.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.nlnetlabs.nl/downloads/ldns
  13. PKG_HASH:=c19f5b1b4fb374cfe34f4845ea11b1e0551ddc67803bd6ddd5d2a20f0997a6cc
  14. PKG_LICENSE:=BSD-3-Clause
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_MAINTAINER:=
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libldns/Default
  21. URL:=http://www.nlnetlabs.nl/projects/ldns/
  22. DEPENDS:=+libopenssl
  23. endef
  24. define Package/libldns
  25. $(call Package/libldns/Default)
  26. SECTION:=libs
  27. CATEGORY:=Libraries
  28. TITLE:=A library to simplify DNS programming
  29. endef
  30. define Package/libldns/description
  31. The goal of ldns is to simplify DNS programming, it supports recent RFCs like
  32. the DNSSEC documents, and allows developers to easily create software
  33. conforming to current RFCs, and experimental software for current Internet
  34. Drafts.
  35. endef
  36. define Package/drill
  37. $(call Package/libldns/Default)
  38. SECTION:=net
  39. CATEGORY:=Network
  40. SUBMENU:=IP Addresses and Names
  41. TITLE:=DNS(SEC) information tool
  42. DEPENDS+= +libldns
  43. endef
  44. define Package/drill/description
  45. drill is a tool to designed to get all sorts of information out of the DNS. It
  46. is specificly designed to be used with DNSSEC.
  47. endef
  48. CONFIGURE_ARGS += \
  49. --disable-dane-ta-usage \
  50. --disable-ecdsa \
  51. --disable-gost \
  52. --with-drill \
  53. --with-ssl="$(STAGING_DIR)/usr"
  54. define Build/InstallDev
  55. $(INSTALL_DIR) $(1)/usr/include
  56. $(CP) $(PKG_INSTALL_DIR)/usr/include/ldns $(1)/usr/include/
  57. $(INSTALL_DIR) $(1)/usr/lib
  58. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.{a,so*} $(1)/usr/lib/
  59. endef
  60. define Package/libldns/install
  61. $(INSTALL_DIR) $(1)/usr/lib
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.so.* $(1)/usr/lib/
  63. endef
  64. define Package/drill/install
  65. $(INSTALL_DIR) $(1)/usr/bin
  66. $(CP) $(PKG_INSTALL_DIR)/usr/bin/drill $(1)/usr/bin/
  67. endef
  68. $(eval $(call BuildPackage,libldns))
  69. $(eval $(call BuildPackage,drill))