mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-14 23:06:40 +00:00
41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
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"
|
|
TERMUX_PKG_VERSION="1.22.0"
|
|
TERMUX_PKG_SRCURL=https://nlnetlabs.nl/downloads/unbound/unbound-${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=c5dd1bdef5d5685b2cedb749158dd152c52d44f65529a34ac15cd88d4b1b3d43
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="libevent, libnghttp2, openssl, resolv-conf"
|
|
TERMUX_PKG_BUILD_DEPENDS="python, swig"
|
|
TERMUX_PKG_BREAKS="unbound (<< 1.17.1-1)"
|
|
TERMUX_PKG_REPLACES="unbound (<< 1.17.1-1)"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_PYTHON_COMMON_DEPS="wheel"
|
|
TERMUX_PKG_PYTHON_BUILD_DEPS="swig"
|
|
|
|
# `pythonmodule` makes core lib/libunbound.so depend on python. Do not enable it.
|
|
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
|
|
--with-pyunbound
|
|
--without-pythonmodule
|
|
--with-libnghttp2=$TERMUX_PREFIX
|
|
--with-ssl=$TERMUX_PREFIX
|
|
--with-pidfile=$TERMUX_PREFIX/var/run/unbound.pid
|
|
--with-username=
|
|
"
|
|
|
|
termux_step_post_massage() {
|
|
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/var/run"
|
|
}
|