ports/www/nginx/files/extra-patch-naxsi_config
Jochen Neumeister f054a3856d www/nginx: Update to 1.26.0
Adoption of the changes of nginx-devel during the devel phase 1.25.x

Changelogs: https://nginx.org/en/CHANGES-1.26

Sponsored by:	Netzkommund GmbH
2024-06-15 09:14:52 +02: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