@ -9,10 +9,10 @@ include $(TOPDIR)/rules.mk
PKG_NAME := unbound
PKG_VERSION := 1.9.1
PKG_RELEASE := 3
PKG_RELEASE := 4
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://www.unbound.net/downloads
PKG_SOURCE_URL := https://nlnetlabs.nl/downloads/unbound
PKG_HASH := c3c0bf9b86ccba4ca64f93dd4fe7351308ab54293f297a67de5a8914c1dc59c5
PKG_MAINTAINER := Eric Luehrsen <ericluehrsen@gmail.com>
@ -23,49 +23,102 @@ PKG_CPE_ID:=cpe:/a:nlnetlabs:unbound
PKG_BUILD_PARALLEL := 1
PKG_FIXUP := autoreconf
PKG_INSTALL := 1
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) -$( BUILD_VARIANT) /$( PKG_NAME) -$( PKG_VERSION)
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / u n b o u n d / D e f a u l t
TITLE:= Validating Recursive DNS Server
URL:= https://www.unbound.net/
DEPENDS:= +libopenssl +@OPENSSL_WITH_EC
e n d e f
d e f i n e P a c k a g e / u n b o u n d
$( call Package/unbound/Default)
SECTION:= net
CATEGORY:= Network
SUBMENU:= IP Addresses and Names
USERID:= unbound:unbound
TITLE += ( daemon)
TITLE:= Recursive DNS Server
URL:= https://nlnetlabs.nl/projects/unbound/about
DEPENDS:= +libopenssl +@OPENSSL_WITH_EC
e n d e f
d e f i n e P a c k a g e / u n b o u n d - d a e m o n
$( call Package/unbound/Default)
TITLE += ( daemon, light traffic)
DEPENDS += +libunbound
VARIANT:= light
e n d e f
d e f i n e P a c k a g e / u n b o u n d - d a e m o n / d e s c r i p t i o n
This package contains the Unbound daemon with basic includes
necessary to meet the needs of UCI/LuCI configuration optoins.
e n d e f
d e f i n e P a c k a g e / u n b o u n d / d e s c r i p t i o n
This package contains the Unbound daemon.
d e f i n e P a c k a g e / u n b o u n d - d a e m o n - h e a v y
$( call Package/unbound/Default)
TITLE += ( daemon, heavy traffic)
URL:= https://nlnetlabs.nl/documentation/unbound/howto-optimise
DEPENDS += +libunbound-heavy +libpthread +libevent2 +libevent2-pthreads
VARIANT:= heavy
PROVIDES:= unbound-daemon
e n d e f
d e f i n e P a c k a g e / u n b o u n d - d a e m o n - h e a v y / d e s c r i p t i o n
This package contains the Unbound daemon including 'libevent' and
'libpthread' to better handle large networks with heavy query loads.
e n d e f
d e f i n e P a c k a g e / l i b u n b o u n d
$( call Package/unbound/Default)
SECTION:= libs
CATEGORY:= Libraries
SUBMENU:= Networking
TITLE += ( library, light traffic)
VARIANT:= light
DEFAULT_VARIANT:= 1
e n d e f
d e f i n e P a c k a g e / l i b u n b o u n d / d e s c r i p t i o n
This package contains the Unbound shared library with basic includes
necessary to meet the needs of UCI/LuCI configuration optoins.
e n d e f
d e f i n e P a c k a g e / l i b u n b o u n d - h e a v y
$( call Package/unbound/Default)
SECTION:= libs
CATEGORY:= Libraries
SUBMENU:= Networking
TITLE += ( library, heavy traffic)
URL:= https://nlnetlabs.nl/documentation/unbound/howto-optimise
DEPENDS += +libpthread +libevent2 +libevent2-pthreads
VARIANT:= heavy
PROVIDES:= libunbound
e n d e f
d e f i n e P a c k a g e / l i b u n b o u n d - h e a v y / d e s c r i p t i o n
This package contains the Unbound shared library including 'libevent' and
'libpthread' to better handle large networks with heavy query loads.
e n d e f
d e f i n e P a c k a g e / u n b o u n d - a n c h o r
$( call Package/unbound/Default)
SECTION:= net
CATEGORY:= Network
SUBMENU:= IP Addresses and Names
TITLE += ( DSKEY utility)
DEPENDS += +unbound +libexpat
TITLE += ( root DSKEY)
DEPENDS += +unbound-daemon +libexpat
e n d e f
d e f i n e P a c k a g e / u n b o u n d - a n c h o r / d e s c r i p t i o n
This package contains the Unbound anchor utility.
e n d e f
d e f i n e P a c k a g e / u n b o u n d - c h e c k c o n f
$( call Package/unbound/Default)
TITLE += ( config checker)
DEPENDS += +unbound-daemon
e n d e f
d e f i n e P a c k a g e / u n b o u n d - c h e c k c o n f / d e s c r i p t i o n
This package contains the Unbound DNS configuration checker utility.
e n d e f
d e f i n e P a c k a g e / u n b o u n d - c o n t r o l
$( call Package/unbound/Default)
SECTION:= net
CATEGORY:= Network
SUBMENU:= IP Addresses and Names
TITLE += ( control utility)
DEPENDS += +unbound
TITLE += ( remote control)
DEPENDS += +unbound-daemon
e n d e f
d e f i n e P a c k a g e / u n b o u n d - c o n t r o l / d e s c r i p t i o n
@ -74,9 +127,6 @@ endef
d e f i n e P a c k a g e / u n b o u n d - c o n t r o l - s e t u p
$( call Package/unbound/Default)
SECTION:= net
CATEGORY:= Network
SUBMENU:= IP Addresses and Names
TITLE += ( control setup)
DEPENDS += +unbound-control +openssl-util
e n d e f
@ -87,10 +137,7 @@ endef
d e f i n e P a c k a g e / u n b o u n d - h o s t
$( call Package/unbound/Default)
SECTION:= net
CATEGORY:= Network
SUBMENU:= IP Addresses and Names
TITLE += ( lookup utility)
TITLE += ( DNS lookup)
DEPENDS += +libunbound
e n d e f
@ -98,18 +145,6 @@ define Package/unbound-host/description
This package contains the Unbound DNS lookup utility.
e n d e f
d e f i n e P a c k a g e / l i b u n b o u n d
$( call Package/unbound/Default)
SECTION:= libs
CATEGORY:= Libraries
TITLE += ( library)
DEPENDS += +libpthread
e n d e f
d e f i n e P a c k a g e / l i b u n b o u n d / d e s c r i p t i o n
This package contains the Unbound shared library.
e n d e f
CONFIGURE_ARGS += \
--disable-dsa \
--disable-gost \
@ -124,26 +159,41 @@ CONFIGURE_ARGS += \
--with-conf-file= /var/lib/unbound/unbound.conf \
--with-pidfile= /var/run/unbound.pid
d e f i n e P a c k a g e / u n b o u n d / c o n f f i l e s
i f e q ( $( BUILD_VARIANT ) , h e a v y )
CONFIGURE_ARGS += \
--with-pthreads \
--with-libevent= " $( STAGING_DIR) /usr " \
--enable-event-api
e l s e
CONFIGURE_ARGS += \
--without-pthreads \
--without-solaris-threads \
--without-libevent
e n d i f
d e f i n e P a c k a g e / u n b o u n d - d a e m o n / c o n f f i l e s
/ e t c / c o n f i g / u n b o u n d
/ e t c / u n b o u n d / u n b o u n d . c o n f
/ e t c / u n b o u n d / u n b o u n d _ e x t . c o n f
/ e t c / u n b o u n d / u n b o u n d _ s r v . c o n f
e n d e f
P a c k a g e / u n b o u n d - d a e m o n - h e a v y / conffiles = $( Package/unbound-daemon/conffiles)
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/include/unbound.h $( 1) /usr/include/
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/lib/libunbound.{ so*,a,la} $( 1) /usr/lib/
$( INSTALL_DIR) $( 1) /usr/include
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/include/unbound.h $( 1) /usr/include/
i f e q ( $( BUILD_VARIANT ) , h e a v y )
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/include/unbound-event.h $( 1) /usr/include/
e n d i f
e n d e f
d e f i n e P a c k a g e / u n b o u n d / i n s t a l l
d e f i n e P a c k a g e / u n b o u n d - d a e m o n / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) \
$( PKG_INSTALL_DIR) /usr/sbin/unbound \
$( PKG_INSTALL_DIR) /usr/sbin/unbound-checkconf \
$( 1) /usr/sbin/
$( PKG_INSTALL_DIR) /usr/sbin/unbound $( 1) /usr/sbin/
$( INSTALL_DIR) $( 1) /etc/unbound
$( INSTALL_DATA) \
$( PKG_INSTALL_DIR) /var/lib/unbound/unbound.conf \
@ -167,11 +217,25 @@ define Package/unbound/install
$( INSTALL_DATA) ./files/unbound.sh $( 1) /usr/lib/unbound/unbound.sh
e n d e f
P a c k a g e / u n b o u n d - d a e m o n - h e a v y / install = $( Package/unbound-daemon/install)
d e f i n e P a c k a g e / l i b u n b o u n d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/lib/libunbound.so.* $( 1) /usr/lib/
e n d e f
P a c k a g e / l i b u n b o u n d - h e a v y / install = $( Package/libunbound/install)
d e f i n e P a c k a g e / u n b o u n d - a n c h o r / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin/unbound-anchor $( 1) /usr/sbin/
e n d e f
d e f i n e P a c k a g e / u n b o u n d - c h e c k c o n f / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin/unbound-checkconf $( 1) /usr/sbin/
e n d e f
d e f i n e P a c k a g e / u n b o u n d - c o n t r o l / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin/unbound-control $( 1) /usr/sbin/
@ -187,15 +251,13 @@ define Package/unbound-host/install
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin/unbound-host $( 1) /usr/sbin/
e n d e f
d e f i n e P a c k a g e / l i b u n b o u n d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/lib/libunbound.so.* $( 1) /usr/lib/
e n d e f
$( eval $ ( call BuildPackage ,unbound ) )
$( eval $ ( call BuildPackage ,unbound -daemon ) )
$( eval $ ( call BuildPackage ,unbound -daemon -heavy ) )
$( eval $ ( call BuildPackage ,libunbound ) )
$( eval $ ( call BuildPackage ,libunbound -heavy ) )
$( eval $ ( call BuildPackage ,unbound -anchor ) )
$( eval $ ( call BuildPackage ,unbound -checkconf ) )
$( eval $ ( call BuildPackage ,unbound -control ) )
$( eval $ ( call BuildPackage ,unbound -control -setup ) )
$( eval $ ( call BuildPackage ,unbound -host ) )
$( eval $ ( call BuildPackage ,libunbound ) )