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.

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