diff --git a/packages/nginx/build.sh b/packages/nginx/build.sh index 9ff150a8fd..f6dc6b4e21 100644 --- a/packages/nginx/build.sh +++ b/packages/nginx/build.sh @@ -2,11 +2,11 @@ TERMUX_PKG_HOMEPAGE=https://www.nginx.org TERMUX_PKG_DESCRIPTION="Lightweight HTTP server" TERMUX_PKG_LICENSE="BSD 2-Clause" TERMUX_PKG_MAINTAINER="@termux" -TERMUX_PKG_VERSION=1.21.3 -TERMUX_PKG_REVISION=6 +TERMUX_PKG_VERSION=1.23.1 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=http://nginx.org/download/nginx-$TERMUX_PKG_VERSION.tar.gz -TERMUX_PKG_SHA256=14774aae0d151da350417efc4afda5cce5035056e71894836797e1f6e2d1175a -TERMUX_PKG_DEPENDS="libandroid-glob, libcrypt, pcre, openssl, zlib" +TERMUX_PKG_SHA256=5eee1bd1c23e3b9477a45532f1f36ae6178b43d571a9607e6953cef26d5df1e2 +TERMUX_PKG_DEPENDS="libandroid-glob, libcrypt, pcre2, openssl, zlib" TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_SERVICE_SCRIPT=("nginx" "mkdir -p $TERMUX_ANDROID_HOME/.nginx\nif [ -f \"$TERMUX_ANDROID_HOME/.nginx/nginx.conf\" ]; then CONFIG=\"$TERMUX_ANDROID_HOME/.nginx/nginx.conf\"; else CONFIG=\"$TERMUX_PREFIX/etc/nginx/nginx.conf\"; fi\nexec nginx -p ~/.nginx -g \"daemon off;\" -c \$CONFIG 2>&1") TERMUX_PKG_CONFFILES=" @@ -46,10 +46,7 @@ termux_step_configure() { --with-cpp=$CPP \ --with-cc-opt="$CPPFLAGS $CFLAGS" \ --with-ld-opt="$LDFLAGS" \ - --with-pcre \ - --with-pcre-jit \ --with-threads \ - --with-ipv6 \ --sbin-path="$TERMUX_PREFIX/bin/nginx" \ --conf-path="$TERMUX_PREFIX/etc/nginx/nginx.conf" \ --http-log-path="$TERMUX_PREFIX/var/log/nginx/access.log" \ @@ -65,6 +62,7 @@ termux_step_configure() { --with-http_ssl_module \ --with-http_v2_module \ --with-http_gunzip_module \ + --with-http_sub_module \ --with-stream \ --with-stream_ssl_module \ $DEBUG_FLAG