2 # Copyright (C) 2010-2014 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
:=ed4c46476dcfb8a507cc08b1ba12a8f1
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.
114 --enable-allsymbols \
115 --with-libexpat
="$(STAGING_DIR)/usr" \
116 --with-ssl
="$(STAGING_DIR)/usr" \
119 define Package
/unbound
/conffiles
120 /etc
/unbound
/unbound.conf
123 define Build
/InstallDev
124 $(INSTALL_DIR
) $(1)/usr
/include
125 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/unbound.h
$(1)/usr
/include/
126 $(INSTALL_DIR
) $(1)/usr
/lib
127 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libunbound.
{so
*,a
,la
} $(1)/usr
/lib
/
130 define Package
/unbound
/install
131 $(INSTALL_DIR
) $(1)/usr
/sbin
133 $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound \
134 $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-checkconf \
136 $(INSTALL_DIR
) $(1)/etc
/unbound
138 $(PKG_INSTALL_DIR
)/etc
/unbound
/unbound.conf \
140 $(INSTALL_CONF
) .
/files
/root.key
$(1)/etc
/unbound
/
141 $(INSTALL_CONF
) .
/files
/named.cache
$(1)/etc
/unbound
/
142 $(INSTALL_DIR
) $(1)/etc
/init.d
143 $(INSTALL_BIN
) .
/files
/unbound.init
$(1)/etc
/init.d
/unbound
146 define Package
/unbound-anchor
/install
147 $(INSTALL_DIR
) $(1)/usr
/sbin
148 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-anchor
$(1)/usr
/sbin
/
151 define Package
/unbound-control
/install
152 $(INSTALL_DIR
) $(1)/usr
/sbin
153 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-control
$(1)/usr
/sbin
/
156 define Package
/unbound-control-setup
/install
157 $(INSTALL_DIR
) $(1)/usr
/sbin
158 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-control-setup
$(1)/usr
/sbin
/
161 define Package
/unbound-host
/install
162 $(INSTALL_DIR
) $(1)/usr
/sbin
163 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-host
$(1)/usr
/sbin
/
166 define Package
/libunbound
/install
167 $(INSTALL_DIR
) $(1)/usr
/lib
168 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libunbound.so.
* $(1)/usr
/lib
/
171 $(eval
$(call BuildPackage
,unbound
))
172 $(eval
$(call BuildPackage
,unbound-anchor
))
173 $(eval
$(call BuildPackage
,unbound-control
))
174 $(eval
$(call BuildPackage
,unbound-control-setup
))
175 $(eval
$(call BuildPackage
,unbound-host
))
176 $(eval
$(call BuildPackage
,libunbound
))