2 # Copyright (C) 2010-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_LICENSE
:=BSD-3-Clause
15 PKG_LICENSE_FILES
:=LICENSE
16 PKG_MAINTAINER
:=Michael Hanselmann
<public@hansmi.ch
>
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
19 PKG_SOURCE_URL
:=http
://www.unbound.net
/downloads
20 PKG_MD5SUM
:=1c34282bae0c625b86374ee9caaef6f7
22 PKG_BUILD_DEPENDS
:=libexpat
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/unbound
/Default
30 TITLE
:=A validating
, recursive
& caching DNS resolver
31 URL
:=http
://www.unbound.net
/
35 define Package
/unbound
36 $(call Package
/unbound
/Default
)
39 SUBMENU
:=IP Addresses and Names
44 define Package
/unbound
/description
45 This package contains the Unbound daemon.
48 define Package
/unbound-anchor
49 $(call Package
/unbound
/Default
)
52 SUBMENU
:=IP Addresses and Names
53 TITLE
+= (anchor utility
)
54 DEPENDS
+= +unbound
+libexpat
57 define Package
/unbound-anchor
/description
58 This package contains the Unbound anchor utility.
61 define Package
/unbound-control
62 $(call Package
/unbound
/Default
)
65 SUBMENU
:=IP Addresses and Names
66 TITLE
+= (control utility
)
70 define Package
/unbound-control
/description
71 This package contains the Unbound control utility.
74 define Package
/unbound-control-setup
75 $(call Package
/unbound
/Default
)
78 SUBMENU
:=IP Addresses and Names
79 TITLE
+= (control setup utility
)
80 DEPENDS
+= +unbound-control
+openssl-util
83 define Package
/unbound-control-setup
/description
84 This package contains the Unbound control setup utility.
87 define Package
/unbound-host
88 $(call Package
/unbound
/Default
)
91 SUBMENU
:=IP Addresses and Names
92 TITLE
+= (DNS lookup utility
)
96 define Package
/unbound-host
/description
97 This package contains the Unbound DNS lookup utility.
100 define Package
/libunbound
101 $(call Package
/unbound
/Default
)
107 define Package
/libunbound
/description
108 This package contains the Unbound shared library.
113 --enable-allsymbols \
114 --with-libexpat
="$(STAGING_DIR)/usr" \
115 --with-ssl
="$(STAGING_DIR)/usr" \
118 define Package
/unbound
/conffiles
119 /etc
/unbound
/unbound.conf
122 define Build
/InstallDev
123 $(INSTALL_DIR
) $(1)/usr
/include
124 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/unbound.h
$(1)/usr
/include/
125 $(INSTALL_DIR
) $(1)/usr
/lib
126 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libunbound.
{so
*,a
,la
} $(1)/usr
/lib
/
129 define Package
/unbound
/install
130 $(INSTALL_DIR
) $(1)/usr
/sbin
132 $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound \
133 $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-checkconf \
135 $(INSTALL_DIR
) $(1)/etc
/unbound
137 $(PKG_INSTALL_DIR
)/etc
/unbound
/unbound.conf \
139 $(INSTALL_CONF
) .
/files
/root.key
$(1)/etc
/unbound
/
140 $(INSTALL_CONF
) .
/files
/named.cache
$(1)/etc
/unbound
/
141 $(INSTALL_DIR
) $(1)/etc
/init.d
142 $(INSTALL_BIN
) .
/files
/unbound.init
$(1)/etc
/init.d
/unbound
145 define Package
/unbound-anchor
/install
146 $(INSTALL_DIR
) $(1)/usr
/sbin
147 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-anchor
$(1)/usr
/sbin
/
150 define Package
/unbound-control
/install
151 $(INSTALL_DIR
) $(1)/usr
/sbin
152 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-control
$(1)/usr
/sbin
/
155 define Package
/unbound-control-setup
/install
156 $(INSTALL_DIR
) $(1)/usr
/sbin
157 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-control-setup
$(1)/usr
/sbin
/
160 define Package
/unbound-host
/install
161 $(INSTALL_DIR
) $(1)/usr
/sbin
162 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-host
$(1)/usr
/sbin
/
165 define Package
/libunbound
/install
166 $(INSTALL_DIR
) $(1)/usr
/lib
167 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libunbound.so.
* $(1)/usr
/lib
/
170 $(eval
$(call BuildPackage
,unbound
))
171 $(eval
$(call BuildPackage
,unbound-anchor
))
172 $(eval
$(call BuildPackage
,unbound-control
))
173 $(eval
$(call BuildPackage
,unbound-control-setup
))
174 $(eval
$(call BuildPackage
,unbound-host
))
175 $(eval
$(call BuildPackage
,libunbound
))