ports/www/angie-module-postgres/files/patch-ngx_postgres-dynamic
Oleg A. Mamontov 2043de1ccc www/angie-module-postgres: Angie postgres dynamic module
This is an upstream module that allows Angie to communicate directly with
PostgreSQL database.

PR:		Angie postgres dynamic module
2023-09-10 12:13:01 -04:00

26 lines
1.9 KiB
Text

--- ../ngx_postgres-1.0rc7/config.orig
+++ ../ngx_postgres-1.0rc7/config
@@ -205,6 +205,16 @@
ngx_addon_name=ngx_postgres
+if [ -f auto/module ] ; then
+ ngx_module_type=HTTP
+ ngx_module_name=ngx_postgres_module
+ ngx_module_incs=$ngx_feature_path
+ ngx_module_libs=$ngx_feature_libs
+ ngx_module_srcs="$NGX_ADDON_SRCS $ngx_addon_dir/src/ngx_postgres_escape.c $ngx_addon_dir/src/ngx_postgres_handler.c $ngx_addon_dir/src/ngx_postgres_keepalive.c $ngx_addon_dir/src/ngx_postgres_module.c $ngx_addon_dir/src/ngx_postgres_output.c $ngx_addon_dir/src/ngx_postgres_processor.c $ngx_addon_dir/src/ngx_postgres_rewrite.c $ngx_addon_dir/src/ngx_postgres_upstream.c $ngx_addon_dir/src/ngx_postgres_util.c $ngx_addon_dir/src/ngx_postgres_variable.c"
+ . auto/module
+
+else
+
HTTP_MODULES="$HTTP_MODULES ngx_postgres_module"
CORE_INCS="$CORE_INCS $ngx_feature_path"
@@ -213,4 +223,6 @@
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/src/ngx_postgres_escape.c $ngx_addon_dir/src/ngx_postgres_handler.c $ngx_addon_dir/src/ngx_postgres_keepalive.c $ngx_addon_dir/src/ngx_postgres_module.c $ngx_addon_dir/src/ngx_postgres_output.c $ngx_addon_dir/src/ngx_postgres_processor.c $ngx_addon_dir/src/ngx_postgres_rewrite.c $ngx_addon_dir/src/ngx_postgres_upstream.c $ngx_addon_dir/src/ngx_postgres_util.c $ngx_addon_dir/src/ngx_postgres_variable.c"
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $ngx_addon_dir/src/ngx_postgres_escape.h $ngx_addon_dir/src/ngx_postgres_handler.h $ngx_addon_dir/src/ngx_postgres_keepalive.h $ngx_addon_dir/src/ngx_postgres_module.h $ngx_addon_dir/src/ngx_postgres_output.h $ngx_addon_dir/src/ngx_postgres_processor.h $ngx_addon_dir/src/ngx_postgres_rewrite.h $ngx_addon_dir/src/ngx_postgres_upstream.h $ngx_addon_dir/src/ngx_postgres_util.h $ngx_addon_dir/src/ngx_postgres_variable.h $ngx_addon_dir/src/ngx_postgres_ddebug.h $ngx_addon_dir/src/resty_dbd_stream.h"
+fi
+
have=NGX_POSTGRES_MODULE . auto/have