2021-11-26 05:04:09 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://unbound.net/
|
|
|
|
TERMUX_PKG_DESCRIPTION="A validating, recursive, caching DNS resolver"
|
|
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-04-08 10:21:42 +02:00
|
|
|
TERMUX_PKG_VERSION=1.15.0
|
2022-04-11 15:00:05 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2021-11-26 05:04:09 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://nlnetlabs.nl/downloads/unbound/unbound-${TERMUX_PKG_VERSION}.tar.gz
|
2022-04-08 10:21:42 +02:00
|
|
|
TERMUX_PKG_SHA256=a480dc6c8937447b98d161fe911ffc76cfaffa2da18788781314e81339f1126f
|
2022-04-11 15:00:05 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libevent, libexpat, libnghttp2, openssl"
|
2022-04-08 10:21:42 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2021-11-26 05:04:09 +01:00
|
|
|
|
2022-04-11 15:00:05 +02:00
|
|
|
# `pythonmodule` makes core lib/libunbound.so depend on python. Do not enable it.
|
2021-11-26 05:04:09 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
ac_cv_func_chown=no
|
|
|
|
ac_cv_func_chroot=no
|
|
|
|
ac_cv_func_getpwnam=no
|
|
|
|
--enable-event-api
|
|
|
|
--enable-ipsecmod
|
|
|
|
--enable-linux-ip-local-port-range
|
|
|
|
--enable-tfo-server
|
|
|
|
--with-libevent=$TERMUX_PREFIX
|
|
|
|
--with-libexpat=$TERMUX_PREFIX
|
|
|
|
--without-libhiredis
|
|
|
|
--without-libmnl
|
2022-04-08 10:21:42 +02:00
|
|
|
--with-pyunbound
|
2022-04-11 15:00:05 +02:00
|
|
|
--without-pythonmodule
|
2021-11-26 05:04:09 +01:00
|
|
|
--with-libnghttp2=$TERMUX_PREFIX
|
|
|
|
--with-ssl=$TERMUX_PREFIX
|
|
|
|
--with-pidfile=$TERMUX_PREFIX/var/run/unbound.pid
|
|
|
|
--with-username=
|
|
|
|
"
|
|
|
|
|
2022-04-08 10:21:42 +02:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
_PYTHON_VERSION=$(. $TERMUX_SCRIPTDIR/packages/python/build.sh; echo $_MAJOR_VERSION)
|
|
|
|
termux_setup_python_crossenv
|
|
|
|
pushd $TERMUX_PYTHON_CROSSENV_SRCDIR
|
|
|
|
_CROSSENV_PREFIX=$TERMUX_PKG_BUILDDIR/python-crossenv-prefix
|
|
|
|
python${_PYTHON_VERSION} -m crossenv \
|
|
|
|
$TERMUX_PREFIX/bin/python${_PYTHON_VERSION} \
|
|
|
|
${_CROSSENV_PREFIX}
|
|
|
|
popd
|
|
|
|
. ${_CROSSENV_PREFIX}/bin/activate
|
|
|
|
|
|
|
|
export PYTHON_SITE_PKG=$TERMUX_PREFIX/lib/python${_PYTHON_VERSION}/site-packages
|
|
|
|
}
|
|
|
|
|
2021-11-26 05:04:09 +01:00
|
|
|
termux_step_post_massage() {
|
|
|
|
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/var/run"
|
|
|
|
}
|