Add one more third-party module:
o) ngx_postgres-0.8 - upstream module that allows nginx to communicate directly with PostgreSQL database. Bump PORTREVISION is unnecessary, because these modules are disabled by default.
This commit is contained in:
parent
4ddf65715f
commit
bf2d6ad661
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=277603
@ -74,6 +74,7 @@ OPTIONS= DEBUG "Enable nginx debugging" off \
|
||||
LUA_MODULE "3rd party lua module" off \
|
||||
MEMC_MODULE "3rd party memc (memcached) module" off \
|
||||
PASSENGER_MODULE "3rd party passenger module" off \
|
||||
POSTGRES_MODULE "3rd party postgresql module" off \
|
||||
REDIS2_MODULE "3rd party redis2 module" off \
|
||||
SLOWFS_CACHE_MODULE "3rd party slowfs_cache module" off \
|
||||
SRCACHE_MODULE "3rd party srcache module" off \
|
||||
@ -446,6 +447,15 @@ CFLAGS+= -DNDEBUG
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if defined(WITH_POSTGRES_MODULE)
|
||||
USE_PGSQL= yes
|
||||
NGINX_POSTGRES_MODULE_VERSION= 0.8
|
||||
MASTER_SITES+= http://labs.frickle.com/files/:postgres
|
||||
DISTFILES+= ngx_postgres-${NGINX_POSTGRES_MODULE_VERSION}.tar.gz:postgres
|
||||
CONFIGURE_ARGS+=--add-module=${WRKDIR}/ngx_postgres-${NGINX_POSTGRES_MODULE_VERSION}
|
||||
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-ngx_postgres::config
|
||||
.endif
|
||||
|
||||
.if defined(WITH_REDIS2_MODULE)
|
||||
NGINX_REDIS2_MODULE_VERSION= 0.07rc5
|
||||
GIT_REDIS2_MODULE_VERSION= 0-g1e01aca
|
||||
@ -567,6 +577,11 @@ post-patch:
|
||||
@${REINPLACE_CMD} 's!-lpthread!${PTHREAD_LIBS}!g' \
|
||||
${WRKDIR}/passenger-${PASSENGER_VERSION}/lib/phusion_passenger/platform_info/compiler.rb
|
||||
.endif
|
||||
.if defined(WITH_POSTGRES_MODULE)
|
||||
@${REINPLACE_CMD} \
|
||||
's!%%PREFIX%%!${PREFIX}!' \
|
||||
${WRKDIR}/ngx_postgres-${NGINX_POSTGRES_MODULE_VERSION}/config
|
||||
.endif
|
||||
.if defined(WITH_SUPERVISORD_MODULE)
|
||||
( cd ${WRKDIR}/nginx_upstream_fair-${NGINX_UPSTREAM_FAIR_VERSION} && \
|
||||
${PATCH} -p0 < \
|
||||
|
@ -54,6 +54,8 @@ SHA256 (agentzh-memc-nginx-module-v0.12-0-g4f1952c.tar.gz) = e0f604e20312bbd30ac
|
||||
SIZE (agentzh-memc-nginx-module-v0.12-0-g4f1952c.tar.gz) = 36414
|
||||
SHA256 (passenger-3.0.7.tar.gz) = 021972c7f4fecd80042e7fc1d8f19ee3008a5491a3b1d34958b2b7ed42bddc85
|
||||
SIZE (passenger-3.0.7.tar.gz) = 2830376
|
||||
SHA256 (ngx_postgres-0.8.tar.gz) = 321de5ddfe95da45550a2b1d29cfcd425ed7d7d63edb0e086406486675d04283
|
||||
SIZE (ngx_postgres-0.8.tar.gz) = 40108
|
||||
SHA256 (agentzh-redis2-nginx-module-v0.07rc5-0-g1e01aca.tar.gz) = bfd620e32a155ea2178b7c1ce8b9c969476cf1bae119bca5a9d20d3775007335
|
||||
SIZE (agentzh-redis2-nginx-module-v0.07rc5-0-g1e01aca.tar.gz) = 22317
|
||||
SHA256 (ngx_slowfs_cache-1.6.tar.gz) = cc0505dbba30153691ff7b3a7353804d5ceb9a519a407b938cae49e9913a7bcc
|
||||
|
19
www/nginx-devel/files/extra-patch-ngx_postgres::config
Normal file
19
www/nginx-devel/files/extra-patch-ngx_postgres::config
Normal file
@ -0,0 +1,19 @@
|
||||
--- ../ngx_postgres-0.8/config.orig 2011-07-12 19:06:52.000000000 +0400
|
||||
+++ ../ngx_postgres-0.8/config 2011-07-12 19:07:42.000000000 +0400
|
||||
@@ -29,12 +29,12 @@
|
||||
|
||||
if [ $ngx_found = no ]; then
|
||||
# FreeBSD
|
||||
- ngx_feature="libpq library in /usr/local/"
|
||||
- ngx_feature_path="/usr/local/include"
|
||||
+ ngx_feature="libpq library in %%PREFIX%%/"
|
||||
+ ngx_feature_path="%%PREFIX%%/include"
|
||||
if [ $NGX_RPATH = YES ]; then
|
||||
- ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lpq"
|
||||
+ ngx_feature_libs="-R%%PREFIX%%/lib -L%%PREFIX%%/lib -lpq"
|
||||
else
|
||||
- ngx_feature_libs="-L/usr/local/lib -lpq"
|
||||
+ ngx_feature_libs="-L%%PREFIX%%/lib -lpq"
|
||||
fi
|
||||
. auto/feature
|
||||
fi
|
@ -73,6 +73,7 @@ OPTIONS= DEBUG "Enable nginx debugging" off \
|
||||
LUA_MODULE "3rd party lua module" off \
|
||||
MEMC_MODULE "3rd party memc (memcached) module" off \
|
||||
PASSENGER_MODULE "3rd party passenger module" off \
|
||||
POSTGRES_MODULE "3rd party postgresql module" off \
|
||||
REDIS2_MODULE "3rd party redis2 module" off \
|
||||
SLOWFS_CACHE_MODULE "3rd party slowfs_cache module" off \
|
||||
SRCACHE_MODULE "3rd party srcache module" off \
|
||||
@ -445,6 +446,15 @@ CFLAGS+= -DNDEBUG
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if defined(WITH_POSTGRES_MODULE)
|
||||
USE_PGSQL= yes
|
||||
NGINX_POSTGRES_MODULE_VERSION= 0.8
|
||||
MASTER_SITES+= http://labs.frickle.com/files/:postgres
|
||||
DISTFILES+= ngx_postgres-${NGINX_POSTGRES_MODULE_VERSION}.tar.gz:postgres
|
||||
CONFIGURE_ARGS+=--add-module=${WRKDIR}/ngx_postgres-${NGINX_POSTGRES_MODULE_VERSION}
|
||||
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-ngx_postgres::config
|
||||
.endif
|
||||
|
||||
.if defined(WITH_REDIS2_MODULE)
|
||||
NGINX_REDIS2_MODULE_VERSION= 0.07rc5
|
||||
GIT_REDIS2_MODULE_VERSION= 0-g1e01aca
|
||||
@ -566,6 +576,11 @@ post-patch:
|
||||
@${REINPLACE_CMD} 's!-lpthread!${PTHREAD_LIBS}!g' \
|
||||
${WRKDIR}/passenger-${PASSENGER_VERSION}/lib/phusion_passenger/platform_info/compiler.rb
|
||||
.endif
|
||||
.if defined(WITH_POSTGRES_MODULE)
|
||||
@${REINPLACE_CMD} \
|
||||
's!%%PREFIX%%!${PREFIX}!' \
|
||||
${WRKDIR}/ngx_postgres-${NGINX_POSTGRES_MODULE_VERSION}/config
|
||||
.endif
|
||||
.if defined(WITH_SUPERVISORD_MODULE)
|
||||
( cd ${WRKDIR}/nginx_upstream_fair-${NGINX_UPSTREAM_FAIR_VERSION} && \
|
||||
${PATCH} -p0 < \
|
||||
|
@ -54,6 +54,8 @@ SHA256 (agentzh-memc-nginx-module-v0.12-0-g4f1952c.tar.gz) = e0f604e20312bbd30ac
|
||||
SIZE (agentzh-memc-nginx-module-v0.12-0-g4f1952c.tar.gz) = 36414
|
||||
SHA256 (passenger-3.0.7.tar.gz) = 021972c7f4fecd80042e7fc1d8f19ee3008a5491a3b1d34958b2b7ed42bddc85
|
||||
SIZE (passenger-3.0.7.tar.gz) = 2830376
|
||||
SHA256 (ngx_postgres-0.8.tar.gz) = 321de5ddfe95da45550a2b1d29cfcd425ed7d7d63edb0e086406486675d04283
|
||||
SIZE (ngx_postgres-0.8.tar.gz) = 40108
|
||||
SHA256 (agentzh-redis2-nginx-module-v0.07rc5-0-g1e01aca.tar.gz) = bfd620e32a155ea2178b7c1ce8b9c969476cf1bae119bca5a9d20d3775007335
|
||||
SIZE (agentzh-redis2-nginx-module-v0.07rc5-0-g1e01aca.tar.gz) = 22317
|
||||
SHA256 (ngx_slowfs_cache-1.6.tar.gz) = cc0505dbba30153691ff7b3a7353804d5ceb9a519a407b938cae49e9913a7bcc
|
||||
|
19
www/nginx/files/extra-patch-ngx_postgres::config
Normal file
19
www/nginx/files/extra-patch-ngx_postgres::config
Normal file
@ -0,0 +1,19 @@
|
||||
--- ../ngx_postgres-0.8/config.orig 2011-07-12 19:06:52.000000000 +0400
|
||||
+++ ../ngx_postgres-0.8/config 2011-07-12 19:07:42.000000000 +0400
|
||||
@@ -29,12 +29,12 @@
|
||||
|
||||
if [ $ngx_found = no ]; then
|
||||
# FreeBSD
|
||||
- ngx_feature="libpq library in /usr/local/"
|
||||
- ngx_feature_path="/usr/local/include"
|
||||
+ ngx_feature="libpq library in %%PREFIX%%/"
|
||||
+ ngx_feature_path="%%PREFIX%%/include"
|
||||
if [ $NGX_RPATH = YES ]; then
|
||||
- ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lpq"
|
||||
+ ngx_feature_libs="-R%%PREFIX%%/lib -L%%PREFIX%%/lib -lpq"
|
||||
else
|
||||
- ngx_feature_libs="-L/usr/local/lib -lpq"
|
||||
+ ngx_feature_libs="-L%%PREFIX%%/lib -lpq"
|
||||
fi
|
||||
. auto/feature
|
||||
fi
|
Loading…
Reference in New Issue
Block a user