Date: Tue, 30 Jun 2009 13:21:35 +0200 (CEST) From: Martin Matuska <mm@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: genserg@hotmail.com Subject: ports/136185: [PATCH] www/spawn-fcgi: more flags to rc script Message-ID: <20090630112135.D1DC6E406@mail.vx.sk> Resent-Message-ID: <200906301130.n5UBU18T013387@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090630112135.D1DC6E406>