Skip to content

Commit

Permalink
unbound: enable ipset support for the unbound-daemon-heavy variant.
Browse files Browse the repository at this point in the history
This patch enables ipset support in the unbound-daemon-heavy variant. See [1] for
instructions on how to use it.

Also fix a minor typo in the libunbound-light description.

[1] NLnetLabs/unbound#28

Signed-off-by: Stijn Segers <foss@volatilesystems.org>
  • Loading branch information
Stijn Segers authored and farmergreg committed Sep 8, 2020
1 parent 2d3fac4 commit 0a1fd1a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions net/unbound/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=unbound
PKG_VERSION:=1.10.0
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://nlnetlabs.nl/downloads/unbound
Expand Down Expand Up @@ -52,14 +52,15 @@ define Package/unbound-daemon-heavy
$(call Package/unbound/Default)
TITLE+= (daemon, heavy traffic)
URL:=https://nlnetlabs.nl/documentation/unbound/howto-optimise
DEPENDS+= +libunbound-heavy +libpthread +libevent2 +libevent2-pthreads
DEPENDS+= +libunbound-heavy +libpthread +libevent2 +libevent2-pthreads +libmnl
VARIANT:=heavy
PROVIDES:=unbound-daemon
endef

define Package/unbound-daemon-heavy/description
This package contains the Unbound daemon including 'libevent' and
'libpthread' to better handle large networks with heavy query loads.
It also offers ipset support.
endef

define Package/libunbound-light
Expand All @@ -75,7 +76,7 @@ endef

define Package/libunbound-light/description
This package contains the Unbound shared library with basic includes
necessary to meet the needs of UCI/LuCI configuration optoins.
necessary to meet the needs of UCI/LuCI configuration options.
endef

define Package/libunbound-heavy
Expand All @@ -85,14 +86,15 @@ define Package/libunbound-heavy
SUBMENU:=Networking
TITLE+= (library, heavy traffic)
URL:=https://nlnetlabs.nl/documentation/unbound/howto-optimise
DEPENDS+= +libpthread +libevent2 +libevent2-pthreads
DEPENDS+= +libpthread +libevent2 +libevent2-pthreads +libmnl
VARIANT:=heavy
PROVIDES:=libunbound
endef

define Package/libunbound-heavy/description
This package contains the Unbound shared library including 'libevent' and
'libpthread' to better handle large networks with heavy query loads.
'libpthread' to better handle large networks with heavy query loads. It
also offers ipset support.
endef

define Package/unbound-anchor
Expand Down Expand Up @@ -161,8 +163,10 @@ CONFIGURE_ARGS += \

ifeq ($(BUILD_VARIANT),heavy)
CONFIGURE_ARGS += \
--enable-ipset \
--with-pthreads \
--with-libevent="$(STAGING_DIR)/usr" \
--with-libmnl="$(STAGING_DIR)/usr" \
--enable-event-api
else
CONFIGURE_ARGS += \
Expand Down

0 comments on commit 0a1fd1a

Please sign in to comment.