1
0

Makefile 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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.8.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.nlnetlabs.nl/downloads/ldns
  13. PKG_HASH:=c3f72dd1036b2907e3a56e6acf9dfb2e551256b3c1bbd9787942deeeb70e7860
  14. PKG_MAINTAINER:=Eric Luehrsen <ericluehrsen@gmail.com>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_CPE_ID:=cpe:/a:nlnetlabs:ldns
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=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. ldns includes the drill tool, which is much like dig from BIND. It was
  48. designed with DNSSEC in mind and should be a useful debugging/query tool
  49. for DNSSEC.
  50. endef
  51. define Package/ldns-examples
  52. $(call Package/libldns/Default)
  53. SECTION:=net
  54. CATEGORY:=Network
  55. SUBMENU:=IP Addresses and Names
  56. TITLE:=Example programs from NLNetLabs ldns library
  57. DEPENDS+= +libldns +libpcap +drill
  58. endef
  59. define Package/ldns-examples/description
  60. A few example programs are included in the source of ldns. They include tools
  61. which can create DNSSEC keys and DNSSEC zone files.
  62. endef
  63. CONFIGURE_ARGS += \
  64. --disable-dsa \
  65. --disable-gost \
  66. --enable-ecdsa \
  67. --with-drill \
  68. --with-examples \
  69. --with-ssl="$(STAGING_DIR)/usr"
  70. define Build/InstallDev
  71. $(INSTALL_DIR) $(1)/usr/include
  72. $(CP) $(PKG_INSTALL_DIR)/usr/include/ldns $(1)/usr/include/
  73. $(INSTALL_DIR) $(1)/usr/lib
  74. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.{a,so*} $(1)/usr/lib/
  75. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  76. $(CP) $(PKG_BUILD_DIR)/packaging/libldns.pc $(1)/usr/lib/pkgconfig
  77. endef
  78. define Package/libldns/install
  79. $(INSTALL_DIR) $(1)/usr/lib
  80. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.so.* $(1)/usr/lib/
  81. endef
  82. define Package/drill/install
  83. $(INSTALL_DIR) $(1)/usr/bin
  84. $(CP) $(PKG_INSTALL_DIR)/usr/bin/drill $(1)/usr/bin/
  85. endef
  86. define Package/ldns-examples/install
  87. $(INSTALL_DIR) $(1)/usr/bin
  88. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-chaos $(1)/usr/bin/
  89. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-compare-zones $(1)/usr/bin/
  90. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-dane $(1)/usr/bin/
  91. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-dpa $(1)/usr/bin/
  92. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-gen-zone $(1)/usr/bin/
  93. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-key2ds $(1)/usr/bin/
  94. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-keyfetcher $(1)/usr/bin/
  95. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-keygen $(1)/usr/bin/
  96. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-mx $(1)/usr/bin/
  97. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-notify $(1)/usr/bin/
  98. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-nsec3-hash $(1)/usr/bin/
  99. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-read-zone $(1)/usr/bin/
  100. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-revoke $(1)/usr/bin/
  101. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-rrsig $(1)/usr/bin/
  102. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-signzone $(1)/usr/bin/
  103. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-test-edns $(1)/usr/bin/
  104. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-testns $(1)/usr/bin/
  105. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-update $(1)/usr/bin/
  106. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-verify-zone $(1)/usr/bin/
  107. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-version $(1)/usr/bin/
  108. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-walk $(1)/usr/bin/
  109. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-zcat $(1)/usr/bin/
  110. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldns-zsplit $(1)/usr/bin/
  111. endef
  112. $(eval $(call BuildPackage,libldns))
  113. $(eval $(call BuildPackage,drill))
  114. $(eval $(call BuildPackage,ldns-examples))