Date: Sun, 3 Apr 2011 23:02:29 GMT From: Chris Tandiono <christandiono@tbp.berkeley.edu> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/156163: [patch] Include substitution filter module option for www/nginx www/nginx-devel Message-ID: <201104032302.p33N2TtX014689@red.freebsd.org> Resent-Message-ID: <201104032310.p33NAAwc042304@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 156163 >Category: ports >Synopsis: [patch] Include substitution filter module option for www/nginx www/nginx-devel >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Apr 03 23:10:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Chris Tandiono >Release: 8.1-RELEASE-p2 >Organization: TBP CA-A IT >Environment: FreeBSD hostname.local 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: I would like to have the option to use the substitution filter module ( http://wiki.nginx.org/HttpSubsModule#Nginx_Substitutions_Filter_module ) in nginx and nginx-devel without having to manually download, extract, and add the module myself. Patch is attached. The bzipped tar is hosted in my home dir; I couldn't figure out how to make Google Code give me the file except for the instructions here: http://code.google.com/p/substitutions4nginx/source/checkout This module is different from the httpsubs module already configurable in the Makefile. >How-To-Repeat: Attempt to install nginx or nginx-devel with the substitution filters module. >Fix: patch attached Patch attached with submission follows: diff --git a/Makefile b/Makefile index 0488526..f3bbf84 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,7 @@ OPTIONS= DEBUG "Enable nginx debugging" off \ HTTP_PUSH_MODULE "3rd party push module" off \ HTTP_REDIS_MODULE "3rd party http_redis module" off \ HTTP_RESPONSE_MODULE "3rd party http_response module" off \ + HTTP_SUB_FILTER_MODULE "3rd party subs filter module" off \ HTTP_UPLOAD_MODULE "3rd party upload module" off \ HTTP_UPLOAD_PROGRESS "3rd party uploadprogress module" off \ HTTP_UPSTREAM_FAIR "3rd party upstream fair module" off \ @@ -329,6 +330,13 @@ CONFIGURE_ARGS+=--with-http_stub_status_module CONFIGURE_ARGS+=--with-http_sub_module .endif +.if defined(WITH_HTTP_SUB_FILTER_MODULE) +NGINX_SUB_FILTER_MODULE_VERSION= r44 +MASTER_SITES+= https://tbp.berkeley.edu/~christandiono/ports/:sub_filter +DISTFILES+= substitutions4nginx-read-only-${NGINX_SUB_FILTER_MODULE_VERSION}.tar.bz2:sub_filter +CONFIGURE_ARGS+=--add-module=${WRKDIR}/substitutions4nginx-read-only +.endif + .if defined(WITH_HTTP_UPLOAD_MODULE) NGINX_UPLOAD_MODULE_VERSION= 2.2.0 MASTER_SITES+= http://www.grid.net.ru/nginx/download/:upload diff --git a/distinfo b/distinfo index 6e63707..2405daa 100644 --- a/distinfo +++ b/distinfo @@ -54,3 +54,5 @@ SHA256 (ngx_supervisord-1.4.tar.gz) = 0954a4efb1b955692acf523e169221146d6aa93ad1 SIZE (ngx_supervisord-1.4.tar.gz) = 19351 SHA256 (nginx_udplog_module-1.0.0.tar.gz) = e0c0bfa524c3a675ad6c08b916d08e57ef45f9818cb8a0d848c2c83785c6e659 SIZE (nginx_udplog_module-1.0.0.tar.gz) = 6284 +SHA256 (substitutions4nginx-read-only-r44.tar.bz2) = 296fa0014f24354996514c7b8da32a8b611251cbd1341e18737a7a269816b6b9 +SIZE (substitutions4nginx-read-only-r44.tar.bz2) = 63096 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104032302.p33N2TtX014689>