mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
unbound: refactor build options to select switches
The two unique packages "Unbound light" and "Unbound heavy" were not working well due to the fact that Unbound is mostly its library. Tools and helpers would crash. Instead a reasonable default Unbound is built. Also up select options like python are added. libevent and libpthreads are options to down select. Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
This commit is contained in:
@@ -547,7 +547,7 @@ unbound_zone() {
|
||||
##############################################################################
|
||||
|
||||
unbound_conf() {
|
||||
local rt_mem rt_conn rt_buff modulestring domain ifsubnet
|
||||
local rt_mem rt_conn rt_buff modulestring domain ifsubnet moduleopts
|
||||
|
||||
{
|
||||
# server: for this whole function
|
||||
@@ -768,9 +768,17 @@ unbound_conf() {
|
||||
|
||||
|
||||
# Assembly of module-config: options is tricky; order matters
|
||||
moduleopts="$( /usr/sbin/unbound -V )"
|
||||
modulestring="iterator"
|
||||
|
||||
|
||||
case $moduleopts in
|
||||
*with-python*)
|
||||
modulestring="python $modulestring"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
if [ "$UB_B_DNSSEC" -gt 0 ] ; then
|
||||
if [ "$UB_B_NTP_BOOT" -gt 0 ] ; then
|
||||
# DNSSEC chicken and egg with getting NTP time
|
||||
@@ -789,6 +797,13 @@ unbound_conf() {
|
||||
fi
|
||||
|
||||
|
||||
case $moduleopts in
|
||||
*enable-subnet*)
|
||||
modulestring="subnetcache $modulestring"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
if [ "$UB_B_DNS64" -gt 0 ] ; then
|
||||
echo " dns64-prefix: $UB_IP_DNS64" >> $UB_CORE_CONF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user