From cdda7e3aba7adaef12c3d598c494988820a501f1 Mon Sep 17 00:00:00 2001 From: Marcin Deranek Date: Fri, 30 Jun 2023 16:08:08 +0200 Subject: www-servers/nginx fork with updated lua modules --- .../nginx/files/http_brotli-detect-brotli-r3.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 www-servers/nginx/files/http_brotli-detect-brotli-r3.patch (limited to 'www-servers/nginx/files/http_brotli-detect-brotli-r3.patch') diff --git a/www-servers/nginx/files/http_brotli-detect-brotli-r3.patch b/www-servers/nginx/files/http_brotli-detect-brotli-r3.patch new file mode 100644 index 0000000..9ccb8c2 --- /dev/null +++ b/www-servers/nginx/files/http_brotli-detect-brotli-r3.patch @@ -0,0 +1,28 @@ +--- a/filter/config ++++ b/filter/config +@@ -42,22 +42,13 @@ fi + ngx_module_type=HTTP_FILTER + ngx_module_name=ngx_http_brotli_filter_module + +-brotli="$ngx_addon_dir/deps/brotli/c" +-if [ ! -f "$brotli/include/brotli/encode.h" ]; then +- brotli="/usr/local" +-fi +-if [ ! -f "$brotli/include/brotli/encode.h" ]; then +- brotli="/usr" +-fi ++brotli=$(pkg-config --variable=prefix libbrotlienc) ++ + if [ ! -f "$brotli/include/brotli/encode.h" ]; then + cat << END + + $0: error: \ +-Brotli library is missing from the $brotli directory. +- +-Please make sure that the git submodule has been checked out: +- +- cd $ngx_addon_dir && git submodule update --init && cd $PWD ++Brotli library not found. Don't you have app-arch/brotli installed? + + END + exit 1 -- cgit v1.2.3