mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-15 05:22:59 +02:00
For details see: https://nlnetlabs.nl/projects/unbound/download/#unbound-1-16-1 "Features Fix #704: [FR] Statistics counter for number of outgoing UDP queries sent; introduces 'num.query.udpout' to the 'unbound-control stats' command. Bug Fixes makedist.sh picks up 32bit libssp-0.dll when 32bit compile. Fix for edns client subnet to respect not looking in its cache when instructed to do so (e.g., prefetch). Merge PR #688: Rpz url notify issue. Note in the unbound.conf text that NOTIFY is allowed from the 'url:' addresses for auth and rpz zones. Remove unused LDNS function check for GOST Engine unloading. Fix for loading locally stored zones that have lines with blanks or blanks and comments. Fix #663: use after free issue with edns options. Clarify -v flag manpage entry (#705) Fix test program dohclient close to use portability routine. Show the output of the exact .rpl run that failed with 'make test'. Fix for cached 0 TTL records to not trigger prefetching when serve-expired-client-timeout is set. Add debug option to the mini_tdir.sh test code. Fix to not count cached NXDOMAIN for MAX_TARGET_NX. Allow fallback to the parent side when MAX_TARGET_NX is reached. This will also allow MAX_TARGET_NX more NXDOMAINs. iana portlist update. Fix detection of libz on windows compile with static option. Fix compile warning for windows compile. Merge PR #706: NXNS fallback. From #706: Cached NXDOMAIN does not increase the target nx responses. From #706: Don't generate parent side queries if we already have the lame records in cache. From #706: When a lame address is the best choice, don't try to generate target queries when the missing targets are all lame. Merge PR #671 from Petr Menšík: Disable ED25519 and ED448 in FIPS mode on openssl3. Merge PR #660 from Petr Menšík: Sha1 runtime insecure. For #660: formatting, less verbose logging, add EDE information. Fix for correct openssl error when adding windows CA certificates to the openssl trust store. Improve val_sigcrypt.c::algo_needs_missing for one loop pass. Reintroduce documentation and more EDE support for val_sigcrypt.c::dnskeyset_verify_rrset_sig. Fix bug introduced in 'improve val_sigcrypt.c::algo_needs_missing for one loop pass'. Merge PR #668 from Cristian Rodríguez: Set IP_BIND_ADDRESS_NO_PORT on outbound tcp sockets." Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org> Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
115 lines
4.2 KiB
Plaintext
115 lines
4.2 KiB
Plaintext
###############################################################################
|
|
# #
|
|
# IPFire.org - A linux based firewall #
|
|
# Copyright (C) 2007-2022 IPFire Team <info@ipfire.org> #
|
|
# #
|
|
# This program is free software: you can redistribute it and/or modify #
|
|
# it under the terms of the GNU General Public License as published by #
|
|
# the Free Software Foundation, either version 3 of the License, or #
|
|
# (at your option) any later version. #
|
|
# #
|
|
# This program is distributed in the hope that it will be useful, #
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
# GNU General Public License for more details. #
|
|
# #
|
|
# You should have received a copy of the GNU General Public License #
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
|
|
# #
|
|
###############################################################################
|
|
|
|
###############################################################################
|
|
# Definitions
|
|
###############################################################################
|
|
|
|
include Config
|
|
|
|
VER = 1.16.1
|
|
|
|
THISAPP = unbound-$(VER)
|
|
DL_FILE = $(THISAPP).tar.gz
|
|
DL_FROM = $(URL_IPFIRE)
|
|
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
|
TARGET = $(DIR_INFO)/$(THISAPP)
|
|
|
|
###############################################################################
|
|
# Top-level Rules
|
|
###############################################################################
|
|
|
|
objects = $(DL_FILE)
|
|
|
|
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
|
|
|
$(DL_FILE)_BLAKE2 = 722e2d88f66f35459b71cd339f451bf803c836827f9f74540c4ae500b7f682f0e8c89bda34915fb8df289cc524486fab2a04018717e1ae7ad62006be68af1cad
|
|
|
|
install : $(TARGET)
|
|
|
|
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
|
|
|
|
download :$(patsubst %,$(DIR_DL)/%,$(objects))
|
|
|
|
b2 : $(subst %,%_BLAKE2,$(objects))
|
|
|
|
###############################################################################
|
|
# Downloading, checking, b2sum
|
|
###############################################################################
|
|
|
|
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
|
|
@$(CHECK)
|
|
|
|
$(patsubst %,$(DIR_DL)/%,$(objects)) :
|
|
@$(LOAD)
|
|
|
|
$(subst %,%_BLAKE2,$(objects)) :
|
|
@$(B2SUM)
|
|
|
|
###############################################################################
|
|
# Installation Details
|
|
###############################################################################
|
|
|
|
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
|
@$(PREBUILD)
|
|
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
|
|
cd $(DIR_APP) && \
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--with-pidfile=/var/run/unbound.pid \
|
|
--with-rootkey-file=/var/lib/unbound/root.key \
|
|
--disable-static \
|
|
--with-libevent \
|
|
--enable-event-api \
|
|
--enable-tfo-client \
|
|
--enable-tfo-server \
|
|
ac_cv_func_getentropy=no
|
|
|
|
cd $(DIR_APP) && make $(MAKETUNING)
|
|
cd $(DIR_APP) && make install
|
|
|
|
# Install configuration
|
|
install -v -m 644 $(DIR_SRC)/config/unbound/unbound.conf \
|
|
/etc/unbound/unbound.conf
|
|
touch /etc/unbound/{dhcp-leases,forward}.conf
|
|
-mkdir -pv /etc/unbound/local.d
|
|
|
|
# Install root hints
|
|
install -v -m 644 $(DIR_SRC)/config/unbound/root.hints \
|
|
/etc/unbound/root.hints
|
|
|
|
# Install DHCP leases bridge
|
|
install -v -m 755 $(DIR_SRC)/config/unbound/unbound-dhcp-leases-bridge \
|
|
/usr/sbin/unbound-dhcp-leases-bridge
|
|
|
|
# Install key
|
|
-mkdir -pv /var/lib/unbound
|
|
install -v -m 644 $(DIR_SRC)/config/unbound/root.key \
|
|
/var/lib/unbound/root.key
|
|
chown -Rv nobody.nobody /var/lib/unbound
|
|
|
|
# Ship ICANN's certificates to validate DNS trust anchors
|
|
install -v -m 644 $(DIR_SRC)/config/unbound/icannbundle.pem \
|
|
/etc/unbound/icannbundle.pem
|
|
|
|
@rm -rf $(DIR_APP)
|
|
@$(POSTBUILD)
|