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.

88 lines
2.2 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:=5
  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_BUILD_PARALLEL:=1
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libldns/Default
  22. URL:=http://www.nlnetlabs.nl/projects/ldns/
  23. DEPENDS:=+libopenssl
  24. endef
  25. define Package/libldns
  26. $(call Package/libldns/Default)
  27. SECTION:=libs
  28. CATEGORY:=Libraries
  29. TITLE:=A library to simplify DNS programming
  30. endef
  31. define Package/libldns/description
  32. The goal of ldns is to simplify DNS programming, it supports recent RFCs like
  33. the DNSSEC documents, and allows developers to easily create software
  34. conforming to current RFCs, and experimental software for current Internet
  35. Drafts.
  36. endef
  37. define Package/drill
  38. $(call Package/libldns/Default)
  39. SECTION:=net
  40. CATEGORY:=Network
  41. SUBMENU:=IP Addresses and Names
  42. TITLE:=DNS(SEC) information tool
  43. DEPENDS+= +libldns
  44. endef
  45. define Package/drill/description
  46. drill is a tool to designed to get all sorts of information out of the DNS. It
  47. is specificly designed to be used with DNSSEC.
  48. endef
  49. CONFIGURE_ARGS += \
  50. --disable-dane-ta-usage \
  51. --disable-ecdsa \
  52. --disable-gost \
  53. --with-drill \
  54. --with-ssl="$(STAGING_DIR)/usr"
  55. define Build/InstallDev
  56. $(INSTALL_DIR) $(1)/usr/include
  57. $(CP) $(PKG_INSTALL_DIR)/usr/include/ldns $(1)/usr/include/
  58. $(INSTALL_DIR) $(1)/usr/lib
  59. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.{a,so*} $(1)/usr/lib/
  60. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  61. $(CP) $(PKG_BUILD_DIR)/packaging/libldns.pc $(1)/usr/lib/pkgconfig
  62. endef
  63. define Package/libldns/install
  64. $(INSTALL_DIR) $(1)/usr/lib
  65. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.so.* $(1)/usr/lib/
  66. endef
  67. define Package/drill/install
  68. $(INSTALL_DIR) $(1)/usr/bin
  69. $(CP) $(PKG_INSTALL_DIR)/usr/bin/drill $(1)/usr/bin/
  70. endef
  71. $(eval $(call BuildPackage,libldns))
  72. $(eval $(call BuildPackage,drill))