40 lines
598 B
Bash
Executable file
40 lines
598 B
Bash
Executable file
#!/bin/bash
|
|
|
|
source .build.sh
|
|
|
|
echo
|
|
echo '==> Checking deps'
|
|
which git
|
|
which autoreconf
|
|
which make
|
|
which gcc || which clang
|
|
|
|
echo
|
|
echo '==> Cloning repo'
|
|
clone https://gitlab.isc.org/isc-projects/bind9.git bind9
|
|
|
|
cd bind9
|
|
trap 'cd ..' EXIT
|
|
export CFLAGS="-O3" CPPFLAGS="-O3"
|
|
|
|
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'
|
|
make_maxthreads
|
|
|
|
echo
|
|
echo '==> Done'
|