vim: Update patch number
[termux-packages] / packages / dnsutils / build.sh
1 TERMUX_PKG_HOMEPAGE=https://www.isc.org/downloads/bind/
2 TERMUX_PKG_DESCRIPTION="Clients provided with BIND"
3 TERMUX_PKG_VERSION=9.10.3
4 TERMUX_PKG_BUILD_REVISION=4
5 TERMUX_PKG_SRCURL="https://www.isc.org/downloads/file/bind-9-10-3/?version=tar-gz"
6 TERMUX_PKG_FOLDERNAME="bind-${TERMUX_PKG_VERSION}"
7 TERMUX_PKG_DEPENDS="openssl"
8 TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --with-gssapi=no --with-randomdev=/dev/random -with-ecdsa=no --with-gost=no --with-libxml2=no --with-libtool"
9
10 export BUILD_AR=ar
11 export BUILD_CC=gcc
12 export BUILD_CFLAGS=
13 export BUILD_CPPFLAGS=
14 export BUILD_LDFLAGS=
15 export BUILD_RANLIB=
16
17 _RESOLV_CONF=$TERMUX_PREFIX/etc/resolv.conf
18 CFLAGS+=" $CPPFLAGS -DRESOLV_CONF=\\\"$_RESOLV_CONF\\\""
19 LDFLAGS+=" -llog"
20
21 termux_step_make () {
22 make -C lib/isc
23 make -C lib/dns
24 make -C lib/isccc
25 make -C lib/isccfg
26 make -C lib/bind9
27 make -C lib/lwres
28 make -C bin/dig
29 }
30
31 termux_step_make_install () {
32 make -C lib/isc install
33 make -C lib/dns install
34 make -C lib/isccc install
35 make -C lib/isccfg install
36 make -C lib/bind9 install
37 make -C lib/lwres install
38 make -C bin/dig install
39
40 printf "nameserver 8.8.8.8\nnameserver 8.8.4.4" > $_RESOLV_CONF
41 }