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.

176 lines
4.3 KiB

  1. #
  2. # Copyright (C) 2010-2014 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.4.22
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=BSD-3-Clause
  12. PKG_LICENSE_FILE:=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:=59728c74fef8783f8bad1d7451eba97f
  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-ecdsa \
  93. --disable-gost \
  94. --enable-allsymbols \
  95. --with-libexpat="$(STAGING_DIR)/usr" \
  96. --with-ssl="$(STAGING_DIR)/usr" \
  97. --without-pthreads
  98. define Package/unbound/conffiles
  99. /etc/unbound/unbound.conf
  100. endef
  101. define Build/InstallDev
  102. $(INSTALL_DIR) $(1)/usr/include
  103. $(CP) $(PKG_INSTALL_DIR)/usr/include/unbound.h $(1)/usr/include/
  104. $(INSTALL_DIR) $(1)/usr/lib
  105. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunbound.{so*,a,la} $(1)/usr/lib/
  106. endef
  107. define Package/unbound/install
  108. $(INSTALL_DIR) $(1)/usr/sbin
  109. $(CP) \
  110. $(PKG_INSTALL_DIR)/usr/sbin/unbound \
  111. $(PKG_INSTALL_DIR)/usr/sbin/unbound-checkconf \
  112. $(1)/usr/sbin/
  113. $(INSTALL_DIR) $(1)/etc/unbound
  114. $(INSTALL_CONF) \
  115. $(PKG_INSTALL_DIR)/etc/unbound/unbound.conf \
  116. $(1)/etc/unbound/
  117. $(INSTALL_CONF) ./files/root.key $(1)/etc/unbound/
  118. $(INSTALL_CONF) ./files/named.cache $(1)/etc/unbound/
  119. $(INSTALL_DIR) $(1)/etc/init.d
  120. $(INSTALL_BIN) ./files/unbound.init $(1)/etc/init.d/unbound
  121. endef
  122. define Package/unbound-anchor/install
  123. $(INSTALL_DIR) $(1)/usr/sbin
  124. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/unbound-anchor $(1)/usr/sbin/
  125. endef
  126. define Package/unbound-control/install
  127. $(INSTALL_DIR) $(1)/usr/sbin
  128. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/unbound-control $(1)/usr/sbin/
  129. endef
  130. define Package/unbound-control-setup/install
  131. $(INSTALL_DIR) $(1)/usr/sbin
  132. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/unbound-control-setup $(1)/usr/sbin/
  133. endef
  134. define Package/unbound-host/install
  135. $(INSTALL_DIR) $(1)/usr/sbin
  136. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/unbound-host $(1)/usr/sbin/
  137. endef
  138. define Package/libunbound/install
  139. $(INSTALL_DIR) $(1)/usr/lib
  140. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunbound.so.* $(1)/usr/lib/
  141. endef
  142. $(eval $(call BuildPackage,unbound))
  143. $(eval $(call BuildPackage,unbound-anchor))
  144. $(eval $(call BuildPackage,unbound-control))
  145. $(eval $(call BuildPackage,unbound-control-setup))
  146. $(eval $(call BuildPackage,unbound-host))
  147. $(eval $(call BuildPackage,libunbound))