1################################################################################ 2# 3# unbound 4# 5################################################################################ 6 7UNBOUND_VERSION = 1.13.2 8UNBOUND_SITE = https://www.unbound.net/downloads 9UNBOUND_DEPENDENCIES = host-pkgconf expat libevent openssl 10UNBOUND_LICENSE = BSD-3-Clause 11UNBOUND_LICENSE_FILES = LICENSE 12UNBOUND_CPE_ID_VENDOR = nlnetlabs 13UNBOUND_CONF_OPTS = \ 14 --disable-rpath \ 15 --disable-debug \ 16 --with-conf-file=/etc/unbound/unbound.conf \ 17 --with-pidfile=/var/run/unbound.pid \ 18 --with-rootkey-file=/etc/unbound/root.key \ 19 --enable-tfo-server \ 20 --with-libexpat=$(STAGING_DIR)/usr \ 21 --with-ssl=$(STAGING_DIR)/usr 22 23# uClibc-ng does not have MSG_FASTOPEN 24# so TCP Fast Open client mode disabled for it 25ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y) 26UNBOUND_CONF_OPTS += --disable-tfo-client 27else 28UNBOUND_CONF_OPTS += --enable-tfo-client 29endif 30 31ifeq ($(BR2_TOOLCHAIN_HAS_THREADS_NPTL),y) 32UNBOUND_CONF_OPTS += --with-pthreads 33else 34UNBOUND_CONF_OPTS += --without-pthreads 35endif 36 37ifeq ($(BR2_GCC_ENABLE_LTO),y) 38UNBOUND_CONF_OPTS += --enable-flto 39else 40UNBOUND_CONF_OPTS += --disable-flto 41endif 42 43ifeq ($(BR2_PACKAGE_UNBOUND_DNSCRYPT),y) 44UNBOUND_CONF_OPTS += --enable-dnscrypt 45UNBOUND_DEPENDENCIES += libsodium 46else 47UNBOUND_CONF_OPTS += --disable-dnscrypt 48endif 49 50define UNBOUND_INSTALL_INIT_SYSV 51 $(INSTALL) -D -m 755 package/unbound/S70unbound \ 52 $(TARGET_DIR)/etc/init.d/S70unbound 53endef 54 55$(eval $(autotools-package)) 56