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.

175 lines
4.3 KiB

  1. #
  2. # Copyright (C) 2010-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:=unbound
  9. PKG_VERSION:=1.5.7
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=BSD-3-Clause
  12. PKG_LICENSE_FILES:=LICENSE
  13. PKG_MAINTAINER:=Michael Hanselmann <public@hansmi.ch>
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=http://www.unbound.net/downloads
  16. PKG_MD5SUM:=a1253cbbb339dbca03404dcc58365d71
  17. PKG_BUILD_DEPENDS:=libexpat
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/unbound/Default
  23. TITLE:=A validating, recursive & caching DNS resolver
  24. URL:=http://www.unbound.net/
  25. DEPENDS:=+libopenssl
  26. endef
  27. define Package/unbound
  28. $(call Package/unbound/Default)
  29. SECTION:=net
  30. CATEGORY:=Network
  31. SUBMENU:=IP Addresses and Names
  32. TITLE+= (daemon)
  33. DEPENDS+= +libunbound
  34. endef
  35. define Package/unbound/description
  36. This package contains the Unbound daemon.
  37. endef
  38. define Package/unbound-anchor
  39. $(call Package/unbound/Default)
  40. SECTION:=net
  41. CATEGORY:=Network
  42. SUBMENU:=IP Addresses and Names
  43. TITLE+= (anchor utility)
  44. DEPENDS+= +unbound +libexpat
  45. endef
  46. define Package/unbound-anchor/description
  47. This package contains the Unbound anchor utility.
  48. endef
  49. define Package/unbound-control
  50. $(call Package/unbound/Default)
  51. SECTION:=net
  52. CATEGORY:=Network
  53. SUBMENU:=IP Addresses and Names
  54. TITLE+= (control utility)
  55. DEPENDS+= +unbound
  56. endef
  57. define Package/unbound-control/description
  58. This package contains the Unbound control utility.
  59. endef
  60. define Package/unbound-control-setup
  61. $(call Package/unbound/Default)
  62. SECTION:=net
  63. CATEGORY:=Network
  64. SUBMENU:=IP Addresses and Names
  65. TITLE+= (control setup utility)
  66. DEPENDS+= +unbound-control +openssl-util
  67. endef
  68. define Package/unbound-control-setup/description
  69. This package contains the Unbound control setup utility.
  70. endef
  71. define Package/unbound-host
  72. $(call Package/unbound/Default)
  73. SECTION:=net
  74. CATEGORY:=Network
  75. SUBMENU:=IP Addresses and Names
  76. TITLE+= (DNS lookup utility)
  77. DEPENDS+= +libunbound
  78. endef
  79. define Package/unbound-host/description
  80. This package contains the Unbound DNS lookup utility.
  81. endef
  82. define Package/libunbound
  83. $(call Package/unbound/Default)
  84. SECTION:=libs
  85. CATEGORY:=Libraries
  86. TITLE+= (library)
  87. endef
  88. define Package/libunbound/description
  89. This package contains the Unbound shared library.
  90. endef
  91. CONFIGURE_ARGS += \
  92. --disable-gost \
  93. --enable-allsymbols \
  94. --with-libexpat="$(STAGING_DIR)/usr" \
  95. --with-ssl="$(STAGING_DIR)/usr" \
  96. --without-pthreads
  97. define Package/unbound/conffiles
  98. /etc/unbound/unbound.conf
  99. endef
  100. define Build/InstallDev
  101. $(INSTALL_DIR) $(1)/usr/include
  102. $(CP) $(PKG_INSTALL_DIR)/usr/include/unbound.h $(1)/usr/include/
  103. $(INSTALL_DIR) $(1)/usr/lib
  104. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunbound.{so*,a,la} $(1)/usr/lib/
  105. endef
  106. define Package/unbound/install
  107. $(INSTALL_DIR) $(1)/usr/sbin
  108. $(CP) \
  109. $(PKG_INSTALL_DIR)/usr/sbin/unbound \
  110. $(PKG_INSTALL_DIR)/usr/sbin/unbound-checkconf \
  111. $(1)/usr/sbin/
  112. $(INSTALL_DIR) $(1)/etc/unbound
  113. $(INSTALL_CONF) \
  114. $(PKG_INSTALL_DIR)/etc/unbound/unbound.conf \
  115. $(1)/etc/unbound/
  116. $(INSTALL_CONF) ./files/root.key $(1)/etc/unbound/
  117. $(INSTALL_CONF) ./files/named.cache $(1)/etc/unbound/
  118. $(INSTALL_DIR) $(1)/etc/init.d
  119. $(INSTALL_BIN) ./files/unbound.init $(1)/etc/init.d/unbound
  120. endef
  121. define Package/unbound-anchor/install
  122. $(INSTALL_DIR) $(1)/usr/sbin
  123. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/unbound-anchor $(1)/usr/sbin/
  124. endef
  125. define Package/unbound-control/install
  126. $(INSTALL_DIR) $(1)/usr/sbin
  127. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/unbound-control $(1)/usr/sbin/
  128. endef
  129. define Package/unbound-control-setup/install
  130. $(INSTALL_DIR) $(1)/usr/sbin
  131. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/unbound-control-setup $(1)/usr/sbin/
  132. endef
  133. define Package/unbound-host/install
  134. $(INSTALL_DIR) $(1)/usr/sbin
  135. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/unbound-host $(1)/usr/sbin/
  136. endef
  137. define Package/libunbound/install
  138. $(INSTALL_DIR) $(1)/usr/lib
  139. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunbound.so.* $(1)/usr/lib/
  140. endef
  141. $(eval $(call BuildPackage,unbound))
  142. $(eval $(call BuildPackage,unbound-anchor))
  143. $(eval $(call BuildPackage,unbound-control))
  144. $(eval $(call BuildPackage,unbound-control-setup))
  145. $(eval $(call BuildPackage,unbound-host))
  146. $(eval $(call BuildPackage,libunbound))