From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jun 30 11:30:02 2009 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 34B0C1065674 for ; Tue, 30 Jun 2009 11:30:02 +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 0F3D78FC19 for ; Tue, 30 Jun 2009 11:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n5UBU1AT013388 for ; Tue, 30 Jun 2009 11:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n5UBU18T013387; Tue, 30 Jun 2009 11:30:01 GMT (envelope-from gnats) Resent-Date: Tue, 30 Jun 2009 11:30:01 GMT Resent-Message-Id: <200906301130.n5UBU18T013387@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, Martin Matuska Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35C26106566C for ; Tue, 30 Jun 2009 11:21:39 +0000 (UTC) (envelope-from mm@mail.vx.sk) Received: from mail.vx.sk (core.vx.sk [188.40.32.143]) by mx1.freebsd.org (Postfix) with ESMTP id EC80D8FC0C for ; Tue, 30 Jun 2009 11:21:38 +0000 (UTC) (envelope-from mm@mail.vx.sk) Received: from localhost (localhost [127.0.0.1]) by mail.vx.sk (Postfix) with ESMTP id 03FD4E417; Tue, 30 Jun 2009 13:21:38 +0200 (CEST) Received: from mail.vx.sk ([127.0.0.1]) by localhost (mail.vx.sk [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mywN6urYici7; Tue, 30 Jun 2009 13:21:35 +0200 (CEST) Received: by mail.vx.sk (Postfix, from userid 1001) id D1DC6E406; Tue, 30 Jun 2009 13:21:35 +0200 (CEST) Message-Id: <20090630112135.D1DC6E406@mail.vx.sk> Date: Tue, 30 Jun 2009 13:21:35 +0200 (CEST) From: Martin Matuska To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: genserg@hotmail.com Subject: ports/136185: [PATCH] www/spawn-fcgi: more flags to rc script 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: Tue, 30 Jun 2009 11:30:02 -0000 >Number: 136185 >Category: ports >Synopsis: [PATCH] www/spawn-fcgi: more flags to rc script >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jun 30 11:30:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Martin Matuska >Release: FreeBSD 7.2-STABLE >Organization: >Environment: >Description: - Add variables to rc script: spawn_fcgi_app_args: arguments to be passed to the application (e.g. custom PHP configuration file) spawn_fcgi_bindsocket: unix domain socket to bind to (instead of TCP socket) Port maintainer (genserg@hotmail.com) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- spawn-fcgi-1.6.2_2.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/www/spawn-fcgi/Makefile,v retrieving revision 1.3 diff -u -r1.3 Makefile --- Makefile 22 Apr 2009 14:35:56 -0000 1.3 +++ Makefile 30 Jun 2009 11:19:25 -0000 @@ -7,7 +7,7 @@ PORTNAME= spawn-fcgi PORTVERSION= 1.6.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MASTER_SITES= http://www.lighttpd.net/download/ Index: files/spawn-fcgi.sh.in =================================================================== RCS file: /home/pcvs/ports/www/spawn-fcgi/files/spawn-fcgi.sh.in,v retrieving revision 1.3 diff -u -r1.3 spawn-fcgi.sh.in --- files/spawn-fcgi.sh.in 22 Apr 2009 14:35:56 -0000 1.3 +++ files/spawn-fcgi.sh.in 30 Jun 2009 11:19:25 -0000 @@ -15,19 +15,27 @@ : ${spawn_fcgi_enable="NO"} : ${spawn_fcgi_app="%%LOCALBASE%%/bin/php-cgi"} +: ${spawn_fcgi_app_args=""} : ${spawn_fcgi_pidfile="/var/run/spawn-fcgi.pid"} : ${spawn_fcgi_user="www"} : ${spawn_fcgi_group="www"} : ${spawn_fcgi_bindaddr="127.0.0.1"} : ${spawn_fcgi_bindport="9000"} +: ${spawn_fcgi_bindsocket=""} : ${spawn_fcgi_children="5"} : ${spawn_fcgi_max_requests="1000"} : ${spawn_fcgi_web_server_addrs=""} : ${spawn_fcgi_allowed_env=""} : ${spawn_fcgi_path_env="/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin"} +if [ -z "${spawn_fcgi_bindsocket}" ]; then + _spawn_fcgi_bind="-a ${spawn_fcgi_bindaddr} -p ${spawn_fcgi_bindport}" +else + _spawn_fcgi_bind="-s ${spawn_fcgi_bindsocket}" +fi + command="/usr/local/bin/spawn-fcgi" -command_args="-u ${spawn_fcgi_user} -g ${spawn_fcgi_group} -a ${spawn_fcgi_bindaddr} -p ${spawn_fcgi_bindport} -P ${spawn_fcgi_pidfile} -- ${spawn_fcgi_app}" +command_args="-u ${spawn_fcgi_user} -g ${spawn_fcgi_group} ${_spawn_fcgi_bind} -P ${spawn_fcgi_pidfile} -- ${spawn_fcgi_app} ${spawn_fcgi_app_args}" pidfile=${spawn_fcgi_pidfile} procname=${spawn_fcgi_app} --- spawn-fcgi-1.6.2_2.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: