diff options
author | osa <osa@FreeBSD.org> | 2015-05-27 07:10:52 +0800 |
---|---|---|
committer | osa <osa@FreeBSD.org> | 2015-05-27 07:10:52 +0800 |
commit | 3f2cab3645b06fc6e36974ee5cc80647a4a8619c (patch) | |
tree | a8c8102796416a4286bb01e023ed516c52f68522 /www/nginx/Makefile | |
parent | dda5105d6b372df259df9837b51c119cbca885c1 (diff) | |
download | freebsd-ports-gnome-3f2cab3645b06fc6e36974ee5cc80647a4a8619c.tar.gz freebsd-ports-gnome-3f2cab3645b06fc6e36974ee5cc80647a4a8619c.tar.zst freebsd-ports-gnome-3f2cab3645b06fc6e36974ee5cc80647a4a8619c.zip |
Add third-party postgres module back.
Based on patch from: Alexander Ushakov <alexander@tauruna.ru>
Diffstat (limited to 'www/nginx/Makefile')
-rw-r--r-- | www/nginx/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
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' \ |