Date: Sun, 12 Apr 2009 18:47:36 GMT From: "Dmitry V. Reshetnikov" <genserg@hotmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/133665: new port Message-ID: <200904121847.n3CIla2r065040@www.freebsd.org> Resent-Message-ID: <200904121850.n3CIo0UK016042@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 133665 >Category: ports >Synopsis: new port >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: Sun Apr 12 18:50:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Dmitry V. Reshetnikov >Release: FreeBSD 7.2-BETA1 >Organization: >Environment: FreeBSD epsilon.home.local 7.2-BETA1 FreeBSD 7.2-BETA1 #0: Tue Mar 31 21:01:09 UTC 2009 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: spawn-fcgi is used to spawn fastcgi applications http://www.lighttpd.net/ >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # /usr/ports/www/spawn-fcgi # /usr/ports/www/spawn-fcgi/files # /usr/ports/www/spawn-fcgi/files/spawn-fcgi.sh.in # /usr/ports/www/spawn-fcgi/Makefile # /usr/ports/www/spawn-fcgi/distinfo # /usr/ports/www/spawn-fcgi/pkg-descr # echo c - /usr/ports/www/spawn-fcgi mkdir -p /usr/ports/www/spawn-fcgi > /dev/null 2>&1 echo c - /usr/ports/www/spawn-fcgi/files mkdir -p /usr/ports/www/spawn-fcgi/files > /dev/null 2>&1 echo x - /usr/ports/www/spawn-fcgi/files/spawn-fcgi.sh.in sed 's/^X//' >/usr/ports/www/spawn-fcgi/files/spawn-fcgi.sh.in << 'cf19d96f67141d43221a0b5885a6e94f' X#!/bin/sh X# X X# PROVIDE: spawn_fcgi X# REQUIRE: %%REQUIRE%% X# BEFORE: LOGIN X# KEYWORD: shutdown X X. %%RC_SUBR%% X Xname="spawn_fcgi" Xrcvar=`set_rcvar` X Xload_rc_config $name X X: ${spawn_fcgi_enable="NO"} X: ${spawn_fcgi_app=""} X: ${spawn_fcgi_pidfile="/var/run/spawn-fcgi.pid"} X: ${spawn_fcgi_user="www"} X: ${spawn_fcgi_group="www"} X: ${spawn_fcgi_bindaddr="127.0.0.1"} X: ${spawn_fcgi_bindport="9000"} X: ${spawn_fcgi_children="5"} X: ${spawn_fcgi_max_requests="1000"} X: ${spawn_fcgi_allowed_env=""} X X Xcommand="/usr/local/bin/spawn-fcgi" Xcommand_args="-u ${spawn_fcgi_user} -g ${spawn_fcgi_group} -a ${spawn_fcgi_bindaddr} -p ${spawn_fcgi_bindport} -P ${spawn_fcgi_pidfile} -- ${spawn_fcgi_app}" Xpidfile=${spawn_fcgi_pidfile} X X_allowed_env="PATH USER PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS FCGI_WEB_SERVER_ADDRS" X_allowed_env="${_allowed_env} ${spawn_fcgi_allowed_env}" X Xstart_precmd="${name}_start_precmd" Xstop_cmd="${name}_stop_cmd" Xstop_postcmd="${name}_stop_postcmd" X Xspawn_fcgi_start_precmd() X{ X touch ${pidfile} X chown ${spawn_fcgi_user}:${spawn_fcgi_group} ${pidfile} X export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin X export PHP_FCGI_CHILDREN=${spawn_fcgi_children} X export PHP_FCGI_MAX_REQUESTS=${spawn_fastcgi_max_requests} X export USER=${spawn_fcgi_user} X E= X for i in ${_allowed_env}; do X eval _val="\$$i" X if [ "${_val}_x" != "_x" ]; then X eval _add="$i=$_val" X E="${E} ${_add}" X fi X done X command="env - ${E} ${command}" X} X Xspawn_fcgi_stop_cmd() X{ X read rc_pid < ${pidfile} X kill ${sig_stop} ${rc_pid} X} X Xspawn_fcgi_stop_postcmd() X{ X rm -f ${pidfile} X} X Xload_rc_config $name X Xrun_rc_command "$1" cf19d96f67141d43221a0b5885a6e94f echo x - /usr/ports/www/spawn-fcgi/Makefile sed 's/^X//' >/usr/ports/www/spawn-fcgi/Makefile << '963400cd2b91b8b605b7fa982b1b1570' X# New ports collection makefile for: spawn-fcgi X# Date created: 17 Mar 2009 X# Whom: genserg@hotmail.com X# X# $FreeBSD$ X# X XPORTNAME= spawn-fcgi XPORTVERSION= 1.6.0 XPORTREVISION= 0 XCATEGORIES= www XMASTER_SITES= http://www.lighttpd.net/download/ \ X http://mirrors.cat.pdx.edu/lighttpd/ X XMAINTAINER= genserg@hotmail.com XCOMMENT= spawn-fcgi is used to spawn fastcgi applications X XUSE_BZIP2= yes XGNU_CONFIGURE= yes XUSE_RC_SUBR= spawn-fcgi.sh X XCFLAGS+= -I${LOCALBASE}/include XLDFLAGS+= -L${LOCALBASE}/lib X XMAN1= spawn-fcgi.1 X XPLIST_FILES= bin/spawn-fcgi X X.include <bsd.port.pre.mk> X XSUB_LIST+= REQUIRE="DAEMON" X X.include <bsd.port.post.mk> 963400cd2b91b8b605b7fa982b1b1570 echo x - /usr/ports/www/spawn-fcgi/distinfo sed 's/^X//' >/usr/ports/www/spawn-fcgi/distinfo << 'afc86d9e33089d9ee669e5ff15afa6c9' XMD5 (spawn-fcgi-1.6.0.tar.bz2) = 06fcafdb87aeb5dc9b8f0f91632ae748 XSHA256 (spawn-fcgi-1.6.0.tar.bz2) = 8321de784b3c4d3108d49795029aae2acdc6b2eee8fce7c2837989762f9e04f3 XSIZE (spawn-fcgi-1.6.0.tar.bz2) = 69691 afc86d9e33089d9ee669e5ff15afa6c9 echo x - /usr/ports/www/spawn-fcgi/pkg-descr sed 's/^X//' >/usr/ports/www/spawn-fcgi/pkg-descr << '31ab8357cf4a001f3203d6c3e783607b' XWWW: http://www.lighttpd.net/ 31ab8357cf4a001f3203d6c3e783607b exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904121847.n3CIla2r065040>