2024-12-20 17:52:34 +04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-12-20 18:15:57 +04:00
|
|
|
source .build.sh
|
2024-12-20 17:52:34 +04:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo '==> Checking deps'
|
|
|
|
which git
|
|
|
|
which autoreconf
|
|
|
|
which make
|
|
|
|
which gcc || which clang
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo '==> Cloning repo'
|
2024-12-20 18:15:57 +04:00
|
|
|
clone https://gitlab.isc.org/isc-projects/bind9.git bind9
|
2024-12-20 17:52:34 +04:00
|
|
|
|
|
|
|
cd bind9
|
2024-12-20 18:15:57 +04:00
|
|
|
trap 'cd ..' EXIT
|
2024-12-20 19:25:20 +04:00
|
|
|
set_cflags
|
2024-12-20 17:52:34 +04:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo '==> autoreconf -fi'
|
|
|
|
autoreconf -fi
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo '==> ./configure (check deps, generate config)'
|
|
|
|
./configure \
|
|
|
|
--with-jemalloc \
|
|
|
|
--disable-doh \
|
|
|
|
--disable-geoip \
|
|
|
|
--with-libxml2=no \
|
|
|
|
--with-json-c=no \
|
|
|
|
--with-libsystemd=no \
|
|
|
|
--with-zlib=no
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo '==> make'
|
2024-12-20 18:15:57 +04:00
|
|
|
make_maxthreads
|
2024-12-20 17:52:34 +04:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo '==> Done'
|