freebsd-ports/www/nginx-devel/files/extra-patch-naxsi_config
Sergey A. Osokin d83020dff1 www/nginx-devel: update 1.25.4 -> 1.25.5 (+)
Fix building third-party naxsi module.

<Changelog>

*) Feature: virtual servers in the stream module.

*) Feature: the ngx_stream_pass_module.

*) Feature: the "deferred", "accept_filter", and "setfib" parameters of
   the "listen" directive in the stream module.

*) Feature: cache line size detection for some architectures.
   Thanks to Piotr Sikora.

*) Feature: support for Homebrew on Apple Silicon.
   Thanks to Piotr Sikora.

*) Bugfix: Windows cross-compilation bugfixes and improvements.
   Thanks to Piotr Sikora.

*) Bugfix: unexpected connection closure while using 0-RTT in QUIC.
   Thanks to Vladimir Khomutov.

</Changelog>
2024-04-18 13:07:41 -04:00

26 lines
921 B
Text

--- ../naxsi-1.6/naxsi_src/config.orig 2023-09-27 09:43:18.644606000 -0400
+++ ../naxsi-1.6/naxsi_src/config 2023-09-27 09:44:37.585970000 -0400
@@ -24,11 +24,6 @@
"
# try to use libinjection as system library
-LIBINJECTION_CFLAGS="$(pkg-config --cflags libinjection)"
-LIBINJECTION_LIBS="$(pkg-config --libs libinjection)"
-LIBINJECTION_FOUND="$?"
-
-if [ "$LIBINJECTION_FOUND" != "0" ]; then
if [ ! -d "$ngx_addon_dir/libinjection/src/" ]; then
echo "Cannot find 'libinjection' submodule."
exit 1;
@@ -43,11 +38,6 @@
naxsi_sources="$naxsi_sources $ngx_addon_dir/libinjection_ngxbuild/$src_file"
done;
CFLAGS="$CFLAGS -DLIBINJECTION_VERSION=0 -I$ngx_addon_dir/libinjection_ngxbuild/"
-else
- echo "Using system libinjection"
- CFLAGS="$CFLAGS $LIBINJECTION_CFLAGS"
- ngx_feature_libs="$LIBINJECTION_LIBS"
-fi
# NGINX module condfiguration.
ngx_addon_name=naxsi