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
:=Eric Luehrsen
<ericluehrsen@hotmail.com
>
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
19 PKG_SOURCE_URL
:=http
://www.unbound.net
/downloads
20 PKG_HASH
:=972b14dc33093e672652a7b2b5f159bab2198b0fe9c9e1c5707e1895d4d4b390
22 PKG_BUILD_DEPENDS
:=libexpat
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/unbound
/Default
30 TITLE
:=Validating Recursive DNS Server
31 URL
:=http
://www.unbound.net
/
35 define Package
/unbound
36 $(call Package
/unbound
/Default
)
39 SUBMENU
:=IP Addresses and Names
40 USERID
:=unbound
=553:unbound
=553
45 define Package
/unbound
/description
46 This package contains the Unbound daemon.
49 define Package
/unbound-anchor
50 $(call Package
/unbound
/Default
)
53 SUBMENU
:=IP Addresses and Names
54 TITLE
+= (DSKEY utility
)
55 DEPENDS
+= +unbound
+libexpat
58 define Package
/unbound-anchor
/description
59 This package contains the Unbound anchor utility.
62 define Package
/unbound-control
63 $(call Package
/unbound
/Default
)
66 SUBMENU
:=IP Addresses and Names
67 TITLE
+= (control utility
)
71 define Package
/unbound-control
/description
72 This package contains the Unbound control utility.
75 define Package
/unbound-control-setup
76 $(call Package
/unbound
/Default
)
79 SUBMENU
:=IP Addresses and Names
80 TITLE
+= (control setup
)
81 DEPENDS
+= +unbound-control
+openssl-util
84 define Package
/unbound-control-setup
/description
85 This package contains the Unbound control setup utility.
88 define Package
/unbound-host
89 $(call Package
/unbound
/Default
)
92 SUBMENU
:=IP Addresses and Names
93 TITLE
+= (lookup utility
)
97 define Package
/unbound-host
/description
98 This package contains the Unbound DNS lookup utility.
101 define Package
/libunbound
102 $(call Package
/unbound
/Default
)
106 DEPENDS
+= +libpthread
109 define Package
/libunbound
/description
110 This package contains the Unbound shared library.
116 --enable-allsymbols \
117 --with-libexpat
="$(STAGING_DIR)/usr" \
118 --with-ssl
="$(STAGING_DIR)/usr" \
119 --with-pidfile
=/var
/run
/unbound.pid \
122 define Package
/unbound
/conffiles
124 /etc
/unbound
/unbound.conf
125 /etc
/unbound
/unbound_ext.conf
126 /etc
/unbound
/unbound_srv.conf
129 define Build
/InstallDev
130 $(INSTALL_DIR
) $(1)/usr
/include
131 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/unbound.h
$(1)/usr
/include/
132 $(INSTALL_DIR
) $(1)/usr
/lib
133 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/libunbound.
{so
*,a
,la
} $(1)/usr
/lib
/
136 define Package
/unbound
/install
137 $(INSTALL_DIR
) $(1)/usr
/sbin
139 $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound \
140 $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-checkconf \
142 $(INSTALL_DIR
) $(1)/etc
/unbound
144 $(PKG_INSTALL_DIR
)/etc
/unbound
/unbound.conf \
145 $(1)/etc
/unbound
/unbound.conf
146 $(INSTALL_DATA
) .
/files
/root.key
$(1)/etc
/unbound
/root.key
147 $(INSTALL_DATA
) .
/files
/unbound_ext.conf
$(1)/etc
/unbound
/unbound_ext.conf
148 $(INSTALL_DATA
) .
/files
/unbound_srv.conf
$(1)/etc
/unbound
/unbound_srv.conf
149 $(INSTALL_DIR
) $(1)/etc
/config
150 $(INSTALL_DATA
) .
/files
/unbound.uci
$(1)/etc
/config
/unbound
151 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/ntp
152 $(INSTALL_BIN
) .
/files
/unbound.ntpd
$(1)/etc
/hotplug.d
/ntp
/25-unbound
153 $(INSTALL_DIR
) $(1)/etc
/init.d
154 $(INSTALL_BIN
) .
/files
/unbound.init
$(1)/etc
/init.d
/unbound
155 $(INSTALL_DIR
) $(1)/usr
/lib
/unbound
156 $(INSTALL_BIN
) .
/files
/odhcpd.sh
$(1)/usr
/lib
/unbound
/odhcpd.sh
157 $(INSTALL_DATA
) .
/files
/odhcpd.awk
$(1)/usr
/lib
/unbound
/odhcpd.awk
158 $(INSTALL_DATA
) .
/files
/dnsmasq.sh
$(1)/usr
/lib
/unbound
/dnsmasq.sh
159 $(INSTALL_DATA
) .
/files
/iptools.sh
$(1)/usr
/lib
/unbound
/iptools.sh
160 $(INSTALL_DATA
) .
/files
/rootzone.sh
$(1)/usr
/lib
/unbound
/rootzone.sh
161 $(INSTALL_DATA
) .
/files
/unbound.sh
$(1)/usr
/lib
/unbound
/unbound.sh
164 define Package
/unbound-anchor
/install
165 $(INSTALL_DIR
) $(1)/usr
/sbin
166 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-anchor
$(1)/usr
/sbin
/
169 define Package
/unbound-control
/install
170 $(INSTALL_DIR
) $(1)/usr
/sbin
171 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-control
$(1)/usr
/sbin
/
174 define Package
/unbound-control-setup
/install
175 $(INSTALL_DIR
) $(1)/usr
/sbin
176 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-control-setup
$(1)/usr
/sbin
/
179 define Package
/unbound-host
/install
180 $(INSTALL_DIR
) $(1)/usr
/sbin
181 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-host
$(1)/usr
/sbin
/
184 define Package
/libunbound
/install
185 $(INSTALL_DIR
) $(1)/usr
/lib
186 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/libunbound.so.
* $(1)/usr
/lib
/
189 $(eval
$(call BuildPackage
,unbound
))
190 $(eval
$(call BuildPackage
,unbound-anchor
))
191 $(eval
$(call BuildPackage
,unbound-control
))
192 $(eval
$(call BuildPackage
,unbound-control-setup
))
193 $(eval
$(call BuildPackage
,unbound-host
))
194 $(eval
$(call BuildPackage
,libunbound
))