termux-packages/packages/dnsutils/build.sh

55 lines
1.3 KiB
Bash
Raw Normal View History

2015-09-18 06:23:12 +02:00
TERMUX_PKG_HOMEPAGE=https://www.isc.org/downloads/bind/
TERMUX_PKG_DESCRIPTION="Clients provided with BIND"
TERMUX_PKG_VERSION=9.12.2-P1
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=9c4b55c2b8a2052ce488ebaeca1b715721d1a6cbffd7da3634c41287b86954a4
TERMUX_PKG_SRCURL="ftp://ftp.isc.org/isc/bind9/${TERMUX_PKG_VERSION}/bind-${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_DEPENDS="openssl, readline, resolv-conf"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--with-ecdsa=no
--with-gost=no
--with-gssapi=no
--with-libjson=no
--with-libtool
--with-libxml2=no
--with-openssl=$TERMUX_PREFIX
--with-randomdev=/dev/random
--with-readline=-lreadline
--with-eddsa=no
"
2015-09-18 06:23:12 +02:00
2016-09-04 00:45:08 +02:00
termux_step_pre_configure () {
export BUILD_AR=ar
export BUILD_CC=gcc
export BUILD_CFLAGS=
export BUILD_CPPFLAGS=
export BUILD_LDFLAGS=
export BUILD_RANLIB=
2015-09-18 06:23:12 +02:00
2016-09-04 00:45:08 +02:00
_RESOLV_CONF=$TERMUX_PREFIX/etc/resolv.conf
CFLAGS+=" $CPPFLAGS -DRESOLV_CONF=\\\"$_RESOLV_CONF\\\""
LDFLAGS+=" -llog"
}
2015-09-18 06:23:12 +02:00
termux_step_make () {
2015-09-18 15:54:15 +02:00
make -C lib/isc
make -C lib/dns
make -C lib/isccc
make -C lib/isccfg
make -C lib/bind9
make -C lib/irs
2015-09-18 15:54:15 +02:00
make -C bin/dig
2016-06-04 01:13:24 +02:00
make -C bin/nsupdate
2015-09-18 06:23:12 +02:00
}
termux_step_make_install () {
2015-09-18 15:54:15 +02:00
make -C lib/isc install
make -C lib/dns install
make -C lib/isccc install
make -C lib/isccfg install
make -C lib/bind9 install
make -C lib/irs install
2015-09-18 06:23:12 +02:00
make -C bin/dig install
2016-06-04 01:13:24 +02:00
make -C bin/nsupdate install
2015-09-18 06:23:12 +02:00
}