aboutsummaryrefslogtreecommitdiffstats
path: root/www/nginx-devel/Makefile
diff options
context:
space:
mode:
authorosa <osa@FreeBSD.org>2011-12-30 17:51:49 +0800
committerosa <osa@FreeBSD.org>2011-12-30 17:51:49 +0800
commit813f7c74e2d313e2ede171b85023e50859036e59 (patch)
tree18a8bf7038dd10558652c4c4b085d9a7b7439117 /www/nginx-devel/Makefile
parent0d8e5178f4343819c4812da63d3afc8e2587b98b (diff)
downloadfreebsd-ports-gnome-813f7c74e2d313e2ede171b85023e50859036e59.tar.gz
freebsd-ports-gnome-813f7c74e2d313e2ede171b85023e50859036e59.tar.zst
freebsd-ports-gnome-813f7c74e2d313e2ede171b85023e50859036e59.zip
Add three new third-party modules:
o) drizzle - an upstream module that talks to mysql and drizzle by libdrizzle; o) rds_csv - an output filter module to convert Resty-DBD-Streams (RDS) to Comma-Separated Values (CSV); o) rds_json - an output filter that formats Resty DBD Streams generated by ngx_drizzle and others to JSON. Do not bump PORTREVISION because these modules disabled by default.
Diffstat (limited to 'www/nginx-devel/Makefile')
-rw-r--r--www/nginx-devel/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile
index 0c3f8013c887..24b5997c2d27 100644
--- a/www/nginx-devel/Makefile
+++ b/www/nginx-devel/Makefile
@@ -71,12 +71,15 @@ OPTIONS= DEBUG "Enable nginx debugging" off \
HTTP_UPSTREAM_HASH "3rd party upstream hash module" off \
HTTP_ZIP_MODULE "3rd party http_zip module" off \
CHUNKIN_MODULE "3rd party chunkin module" off \
+ DRIZZLE_MODULE "3rd party drizzlie module" off \
GRIDFS_MODULE "3rd party gridfs module" off \
LUA_MODULE "3rd party lua module" off \
MEMC_MODULE "3rd party memc (memcached) module" off \
NAXSI_MODULE "3rd party naxsi module" off \
PASSENGER_MODULE "3rd party passenger module" off \
POSTGRES_MODULE "3rd party postgresql module" off \
+ RDS_CSV_MODULE "3rd party rds_csv module" off \
+ RDS_JSON_MODULE "3rd party rds_json module" off \
REDIS2_MODULE "3rd party redis2 module" off \
SET_MISC_MODULE "3rd party set_misc module" off \
SLOWFS_CACHE_MODULE "3rd party slowfs_cache module" off \
@@ -414,6 +417,17 @@ DISTFILES+= agentzh-chunkin-nginx-module-v${NGINX_CHUNKIN_MODULE_VERSION}-${GIT_
CONFIGURE_ARGS+=--add-module=${WRKDIR}/agentzh-chunkin-nginx-module-${GIT_CHUNKIN_MODULE_VERSION:S/^0-g//}
.endif
+.if defined(WITH_DRIZZLE_MODULE)
+LIB_DEPENDS+= drizzle.0:${PORTSDIR}/databases/drizzle
+NGINX_DRIZZLE_MODULE_VERSION= 0.1.2rc4
+GIT_DRIZZLE_MODULE_VERSION= 0-g46b744a
+FETCH_ARGS= -pRr
+MASTER_SITES+= https://github.com/chaoslawful/drizzle-nginx-module/tarball/v${NGINX_DRIZZLE_MODULE_VERSION}/:drizzle
+DISTFILES+= chaoslawful-drizzle-nginx-module-v${NGINX_DRIZZLE_MODULE_VERSION}-${GIT_DRIZZLE_MODULE_VERSION}.tar.gz:drizzle
+CONFIGURE_ARGS+=--add-module=${WRKDIR}/chaoslawful-drizzle-nginx-module-${GIT_DRIZZLE_MODULE_VERSION:S/^0-g//}
+EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-chaoslawful-drizzle-nginx-module::config
+.endif
+
.if defined(WITH_GRIDFS_MODULE)
NGINX_GRIDFS_MODULE_VERSION= 0.8
GIT_GRIDFS_MODULE_VERSION= 0-gb5f8113
@@ -487,6 +501,24 @@ CONFIGURE_ARGS+=--add-module=${WRKDIR}/ngx_postgres-${NGINX_POSTGRES_MODULE_VERS
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-ngx_postgres::config
.endif
+.if defined(WITH_RDS_CSV_MODULE)
+NGINX_RDS_CSV_MODULE_VERSION= 0.04
+GIT_RDS_CSV_MODULE_VERSION= 0-g4cd999b
+FETCH_ARGS= -pRr
+MASTER_SITES+= https://github.com/agentzh/rds-csv-nginx-module/tarball/v${NGINX_RDS_CSV_MODULE_VERSION}/:rdscsv
+DISTFILES+= agentzh-rds-csv-nginx-module-v${NGINX_RDS_CSV_MODULE_VERSION}-${GIT_RDS_CSV_MODULE_VERSION}.tar.gz:rdscsv
+CONFIGURE_ARGS+=--add-module=${WRKDIR}/agentzh-rds-csv-nginx-module-${GIT_RDS_CSV_MODULE_VERSION:S/^0-g//}
+.endif
+
+.if defined(WITH_RDS_JSON_MODULE)
+NGINX_RDS_JSON_MODULE_VERSION= 0.12rc7
+GIT_RDS_JSON_MODULE_VERSION= 0-g253db2b
+FETCH_ARGS= -pRr
+MASTER_SITES+= https://github.com/agentzh/rds-json-nginx-module/tarball/v${NGINX_RDS_JSON_MODULE_VERSION}/:rdsjson
+DISTFILES+= agentzh-rds-json-nginx-module-v${NGINX_RDS_JSON_MODULE_VERSION}-${GIT_RDS_JSON_MODULE_VERSION}.tar.gz:rdsjson
+CONFIGURE_ARGS+=--add-module=${WRKDIR}/agentzh-rds-json-nginx-module-${GIT_RDS_JSON_MODULE_VERSION:S/^0-g//}
+.endif
+
.if defined(WITH_REDIS2_MODULE)
NGINX_REDIS2_MODULE_VERSION= 0.07
GIT_REDIS2_MODULE_VERSION= 0-g6f7fc37
@@ -639,6 +671,11 @@ post-patch:
's!^inline!static inline!' \
${WRKDIR}/mod_zip-${NGINX_ZIP_MODULE_VERSION}/ngx_http_zip_parsers.*
.endif
+.if defined(WITH_DRIZZLE_MODULE)
+ @${REINPLACE_CMD} \
+ 's!%%PREFIX%%!${PREFIX}!' \
+ ${WRKDIR}/chaoslawful-drizzle-nginx-module-${GIT_DRIZZLE_MODULE_VERSION:S/^0-g//}/config
+.endif
# Respect CFLAGS by remove needless --std=c99 flag
.if defined(WITH_GRIDFS_MODULE)
@${REINPLACE_CMD} \