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.

84 lines
2.0 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.6.17
  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_MD5SUM:=a79423bcc4129e6d59b616b1cae11e5e
  14. PKG_LICENSE:=BSD-3-Clause
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  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-ecdsa \
  50. --disable-gost \
  51. --with-drill \
  52. --with-ssl="$(STAGING_DIR)/usr"
  53. define Build/InstallDev
  54. $(INSTALL_DIR) $(1)/usr/include
  55. $(CP) $(PKG_INSTALL_DIR)/usr/include/ldns $(1)/usr/include/
  56. $(INSTALL_DIR) $(1)/usr/lib
  57. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.{a,so*} $(1)/usr/lib/
  58. endef
  59. define Package/libldns/install
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.so.* $(1)/usr/lib/
  62. endef
  63. define Package/drill/install
  64. $(INSTALL_DIR) $(1)/usr/bin
  65. $(CP) $(PKG_INSTALL_DIR)/usr/bin/drill $(1)/usr/bin/
  66. endef
  67. $(eval $(call BuildPackage,libldns))
  68. $(eval $(call BuildPackage,drill))