From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Apr 3 23:10:11 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0168E106566C for ; Sun, 3 Apr 2011 23:10:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B40A88FC17 for ; Sun, 3 Apr 2011 23:10:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p33NAAP6042305 for ; Sun, 3 Apr 2011 23:10:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p33NAAwc042304; Sun, 3 Apr 2011 23:10:10 GMT (envelope-from gnats) Resent-Date: Sun, 3 Apr 2011 23:10:10 GMT Resent-Message-Id: <201104032310.p33NAAwc042304@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Chris Tandiono Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB1C0106566C for ; Sun, 3 Apr 2011 23:02:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id C1E788FC18 for ; Sun, 3 Apr 2011 23:02:29 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p33N2TTS014717 for ; Sun, 3 Apr 2011 23:02:29 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p33N2TtX014689; Sun, 3 Apr 2011 23:02:29 GMT (envelope-from nobody) Message-Id: <201104032302.p33N2TtX014689@red.freebsd.org> Date: Sun, 3 Apr 2011 23:02:29 GMT From: Chris Tandiono To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/156163: [patch] Include substitution filter module option for www/nginx www/nginx-devel X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Apr 2011 23:10:11 -0000 >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: