From 3f2cab3645b06fc6e36974ee5cc80647a4a8619c Mon Sep 17 00:00:00 2001 From: osa Date: Tue, 26 May 2015 23:10:52 +0000 Subject: Add third-party postgres module back. Based on patch from: Alexander Ushakov --- www/nginx/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'www/nginx/Makefile') diff --git a/www/nginx/Makefile b/www/nginx/Makefile index d7596696ddc0..5334f1782a2c 100644 --- a/www/nginx/Makefile +++ b/www/nginx/Makefile @@ -89,6 +89,7 @@ OPTIONS_DEFINE= \ MODSECURITY \ NAXSI \ PASSENGER \ + POSTGRES \ RDS_CSV \ RDS_JSON \ REDIS2 \ @@ -173,6 +174,7 @@ MEMC_DESC= 3rd party memc (memcached) module MODSECURITY_DESC= 3rd party mod_security module NAXSI_DESC= 3rd party naxsi module PASSENGER_DESC= 3rd party passenger module +POSTGRES_DESC= 3rd party postgres module RDS_CSV_DESC= 3rd party rds_csv module RDS_JSON_DESC= 3rd party rds_json module REDIS2_DESC= 3rd party redis2 module @@ -624,6 +626,16 @@ CFLAGS+= -DNDEBUG .endif .endif +.if ${PORT_OPTIONS:MPOSTGRES} +USES+= pgsql +NGINX_POSTGRES_VERSION= 1.0rc5 +GIT_NGINX_POSTGRES_VERSION= 1-g49855a0 +MASTER_SITES+= https://github.com/FRiCKLE/ngx_postgres/tarball/${GIT_NGINX_POSTGRES_VERSION:S/^1-g//}/:postgres +DISTFILES+= FRiCKLE-ngx_postgres-${NGINX_POSTGRES_VERSION}-${GIT_NGINX_POSTGRES_VERSION}.tar.gz:postgres +CONFIGURE_ARGS+=--add-module=${WRKDIR}/FRiCKLE-ngx_postgres-${GIT_NGINX_POSTGRES_VERSION:S/^1-g//} +EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-ngx_postgres-config +.endif + .if ${PORT_OPTIONS:MRDS_CSV} NGINX_RDS_CSV_VERSION= 0.05 GIT_RDS_CSV_VERSION= 0-g607e26b @@ -852,6 +864,11 @@ post-patch: s!-Iext/libeio!!' \ ${WRKDIR}/passenger-${PASSENGER_VERSION}/build/common_library.rb .endif +.if ${PORT_OPTIONS:MPOSTGRES} + @${REINPLACE_CMD} \ + 's!%%PREFIX%%!${LOCALBASE}!g' \ + ${WRKDIR}/FRiCKLE-ngx_postgres-${GIT_NGINX_POSTGRES_VERSION:S/^1-g//}/config +.endif .if ${PORT_OPTIONS:MSFLOW} @${REINPLACE_CMD} \ 's!%%PREFIX%%!${LOCALBASE}!g' \ -- cgit