From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- www-servers/spawn-fcgi/Manifest | 11 ++ www-servers/spawn-fcgi/files/spawn-fcgi.confd | 73 ++++++++++++++ www-servers/spawn-fcgi/files/spawn-fcgi.initd-r1 | 116 ++++++++++++++++++++++ www-servers/spawn-fcgi/files/spawn-fcgi.initd-r2 | 116 ++++++++++++++++++++++ www-servers/spawn-fcgi/metadata.xml | 14 +++ www-servers/spawn-fcgi/spawn-fcgi-1.6.3-r1.ebuild | 32 ++++++ www-servers/spawn-fcgi/spawn-fcgi-1.6.3-r2.ebuild | 32 ++++++ www-servers/spawn-fcgi/spawn-fcgi-1.6.4.ebuild | 32 ++++++ 8 files changed, 426 insertions(+) create mode 100644 www-servers/spawn-fcgi/Manifest create mode 100644 www-servers/spawn-fcgi/files/spawn-fcgi.confd create mode 100644 www-servers/spawn-fcgi/files/spawn-fcgi.initd-r1 create mode 100644 www-servers/spawn-fcgi/files/spawn-fcgi.initd-r2 create mode 100644 www-servers/spawn-fcgi/metadata.xml create mode 100644 www-servers/spawn-fcgi/spawn-fcgi-1.6.3-r1.ebuild create mode 100644 www-servers/spawn-fcgi/spawn-fcgi-1.6.3-r2.ebuild create mode 100644 www-servers/spawn-fcgi/spawn-fcgi-1.6.4.ebuild (limited to 'www-servers/spawn-fcgi') diff --git a/www-servers/spawn-fcgi/Manifest b/www-servers/spawn-fcgi/Manifest new file mode 100644 index 000000000000..24d09ea04df5 --- /dev/null +++ b/www-servers/spawn-fcgi/Manifest @@ -0,0 +1,11 @@ +AUX spawn-fcgi.confd 2238 SHA256 8f2a0ff785f4a857d855471b5eee9120c9d7a0efd69988bb2d66d09664b5b0ed SHA512 0b0d5754de17dd691ead380a93526aa7fbdd432359b248ce06f030daefb1ad96e4a81fe5319557fb66602baccb45a0febf6417ec7b79eee91e1e070d9a852b90 WHIRLPOOL 6ae197ada539a6b426db84b60fca25a81cca8d55344cffdec60167f138e599887b30e355d9b356880ea4985c4ea14baba3fe6492e35648280ba6a701709b8e00 +AUX spawn-fcgi.initd-r1 3090 SHA256 19679a0a40f956f4e70d786280c713ba9c0c5d36d2c06cadfae8556f092db492 SHA512 e7336da885a19497247648c9b2e04044005285f8b989386d6d5441dbf284ebffa9df062e6e23cd0ae635232abaa2d41ff408b0c913683a6240929c5d1ec8a624 WHIRLPOOL d1f61b2d90b7d700cd53e30878182ddeb0bf59750e8d90a7baae74c60fb7f2b8008438c3acb980be9b4a5e846a1668490af339205e981ee88b65f60d5ab8b10e +AUX spawn-fcgi.initd-r2 3082 SHA256 6bda1dcf17b26f1dd20f67828004c57b308f54befbbb4772374623ab541f4c1d SHA512 86a82debd752709af3abd6056b31839a87d4dd14e990e5256a97e40b25c2293c113fc672b24ef7f2122b3d7b43de0d3434248240bf56c616ea2cbafcb5c82a29 WHIRLPOOL 251cc5d3fcbf48acb8561341fc51d89c71cd2ab1d375491f6f7be0f248430f4ab01c3993f4d7741165d790f2f7e82c91356a676f16cb27621d948b819b70d9d7 +DIST spawn-fcgi-1.6.3.tar.bz2 77607 SHA256 e6721dc0fa59bb00e05f160406815d53c95e81ac28f7e52fbd36497584f846cd SHA512 136a198cbcda0d3ae4e445eac2ccdcc5483801514ce77542c630d615a7a19a68864b9d7d79733adb16347ba64c833afbf2a18df82937107a6bc8467f630b03b4 WHIRLPOOL c424426e39f5151de29491b6e0900a546fcf7fb31a7b226c7246a79a5af62357d7dfddc9179aceb02d993fa09529e973794f70ece961336bb760763663080176 +DIST spawn-fcgi-1.6.4.tar.xz 79944 SHA256 423b0c317e0084773b483985cc21930c4b8dfcb411f7353d6ee6fc41d9cb9d45 SHA512 e2b317997b56f852ad644b80fe36fa08376ae81f93566e181c31a3b6764de2eeb32a2e10e420136d8536487c575678ca52a33f7cb3488aadf7185fbd0196bee0 WHIRLPOOL c62857e0f534c09d67bf8d0c7bd16e9931827453778b56b7e6fe4383570e46452027ad4e982778b558dcc08bf0af25178c2205048f494aba9690ed3ad1baeff2 +EBUILD spawn-fcgi-1.6.3-r1.ebuild 784 SHA256 fbedf662972870bd64ab635dc9b975b509588a55108a9182821befc994987228 SHA512 402d57c189dfb2bdf1181f84ddc52cacfe31b663cf56fc80c7dac1a5d41f33e81df242ba752acd3d3822214f9a11ae38b4acd283a4e95f3fa7801d163065087c WHIRLPOOL 4d4ee3fee6d92ff3ad456fbec8a92d0528d9c46a73b11d2ec3ba5c38441c295065cd7192f6c8fea3150aac3c17fd4b6eeed78dc09cba02b16c1ab66d49b4f201 +EBUILD spawn-fcgi-1.6.3-r2.ebuild 756 SHA256 7be347b22ba9db03220c3f9bc694f318ce6cbc737c6633b4422100a2ba7cdef2 SHA512 b249896cdf9ae55680803f1b7a91bb08d106e2ea084e529ff9312eb45755d1c0d095121752e13eb95d45e991316a80831d08665c459a83f5537e8f272b089e94 WHIRLPOOL 1550f6f64c829033d65e878a5c1268e2205fdc9b83bf845beba534029575b700faa93e63d482c28de82005b81d42aca5c1250ea41954149cf95787b5fe818263 +EBUILD spawn-fcgi-1.6.4.ebuild 755 SHA256 fdf3a7bc64410dc576be0eeb8e5e4362abc3d9535487241e9c198228d1866f07 SHA512 48019e1e463067b5164e2e5557be78217cdf636bffdea8af0fdeeeef5b5231f7a51a7d71f40ae187bcab99c94201a536da92666e466174f1cc558ff30d997525 WHIRLPOOL 30b0bf9c74429b9204bc326acbc3c7f6d5a09c8b9cfb677fb31d574d77259154bfbf439bc288f138ec9dea7e30c224537e8d0538497a18c2c25afda005723ebd +MISC ChangeLog 2566 SHA256 59029f0f2886c016ba375a14ac0b05fd5d4056f66ef9b46cb4036a11c7a11838 SHA512 c10d04c396eb7323e6273e968a839392b6d4f6c025d5af077d6f82b14a171fb458e85bd352073b0edb7f85265eb34e24dbec51e7d7181bdb8ab348cf3be90f2d WHIRLPOOL 2627c8a56b18f65f4e9b337015851385c549aba7c5030ee0907a4110eca3e70aeb633796042b19214f4ab6ec4a3bbe0f98afe9f3eba650c603e63b2c050dbf30 +MISC ChangeLog-2015 5884 SHA256 b109f041397f6da7bf934596f74032c55438eff830bc842bb66dbbcdf4805c56 SHA512 a9d6d3fe9c2edbf4b85257ff710f37818ef7087813111614931f3a57e7137c694db0cec427202af680294eeafd0fb981d4bbcb1d7f64ffe3210d5ff64b499fe0 WHIRLPOOL 997544fc665d3e13194a8b89e86332f3780eb0124edf083c810efc615407d6e0ccec445bcbfc945b00306d5a7566bf56d91e80024845f698945c721a26460bf6 +MISC metadata.xml 455 SHA256 9d368d9a4b11a1a7e615df9e75620c4c8a76f4273eebfe63b0c354ce24e5494f SHA512 df0148838ae2d49436a428059e56e35618eda77cbf6cb95e39b58384556650664ac56a125c8c244ae2804c48d3433a384c274426a943bae15420aee2a808e439 WHIRLPOOL 686394c2309343c8381bef96a0eb4b4a6be343ccea260d3735e39c163e1be680085447a28aee3e0b759cacda6b91b3c0ba80274334bf9908f32e0c584ae54009 diff --git a/www-servers/spawn-fcgi/files/spawn-fcgi.confd b/www-servers/spawn-fcgi/files/spawn-fcgi.confd new file mode 100644 index 000000000000..3e7f103a8fe2 --- /dev/null +++ b/www-servers/spawn-fcgi/files/spawn-fcgi.confd @@ -0,0 +1,73 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# DO NOT MODIFY THIS FILE DIRECTLY! CREATE A COPY AND MODIFY THAT INSTEAD! + +# The FCGI process can be made available through a filesystem socket or +# through a inet socket. One and only one of the two types must be choosen. +# Default is the inet socket. + +# The filename specified by +# FCGI_SOCKET will be suffixed with a number for each child process, for +# example, fcgi.socket-1. +# Leave empty to use an IP socket (default). See below. Enabling this, +# disables the IP socket. +# +FCGI_SOCKET= + +# When using FCGI_PORT, connections will only be accepted from the following +# address. The default is 127.0.0.1. Use 0.0.0.0 to bind to all addresses. +# +FCGI_ADDRESS=127.0.0.1 + +# The port specified by FCGI_PORT is the port used +# by the first child process. If this is set to 1234 then subsequent child +# processes will use 1235, 1236, etc. +# +FCGI_PORT=1234 + +# The path to your FastCGI application. These sometimes carry the .fcgi +# extension but not always. For PHP, you should usually point this to +# /usr/bin/php-cgi. +# +#FCGI_PROGRAM=/usr/bin/php-cgi +FCGI_PROGRAM= + +# The number of child processes to spawn. The default is 1. +# +FCGI_CHILDREN=1 + +# If you want to run your application inside a chroot then specify the +# directory here. Leave this blank otherwise. +# +FCGI_CHROOT= + +# If you want to run your application from a specific directiory specify +# it here. Leave this blank otherwise. +# +FCGI_CHDIR= + +# The user and group to run your application as. If you do not specify these, +# the application will be run as root:root. +# +FCGI_USER= +FCGI_GROUP= + +# Additional options you might want to pass to spawn-fcgi +# +#FCGI_EXTRA_OPTIONS= + +# If your application requires additional environment variables, you may +# specify them here. See PHP example below. +# +ALLOWED_ENV="PATH" + +# PHP ONLY :: These two options are specific to PHP. The first is the number +# of child processes to spawn. The second is the number of requests to be +# served by a single PHP process before it is restarted. +# +#PHP_FCGI_CHILDREN=5 +#PHP_FCGI_MAX_REQUESTS=500 +# +# For this to work you would set +# ALLOWED_ENV="PATH PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS" diff --git a/www-servers/spawn-fcgi/files/spawn-fcgi.initd-r1 b/www-servers/spawn-fcgi/files/spawn-fcgi.initd-r1 new file mode 100644 index 000000000000..74879c2eb6fc --- /dev/null +++ b/www-servers/spawn-fcgi/files/spawn-fcgi.initd-r1 @@ -0,0 +1,116 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +PROGNAME=${SVCNAME#*.} +SPAWNFCGI=/usr/bin/spawn-fcgi +PIDPATH=/var/run/spawn-fcgi +PIDFILE=${PIDPATH}/${PROGNAME} + +depend() { + need net +} + +start() { + local X E OPTIONS i RETVAL FCGI_PROGRAM_EXEC + FCGI_PROGRAM_EXEC=$(echo ${FCGI_PROGRAM} | awk "{print \$1}") + + if [ "${SVCNAME}" = "spawn-fcgi" ]; then + eerror "You are not supposed to run this script directly. Create a symlink" + eerror "for the FastCGI application you want to run as well as a copy of the" + eerror "configuration file and modify it appropriately like so..." + eerror + eerror " ln -s spawn-fcgi /etc/init.d/spawn-fcgi.trac" + eerror " cp /etc/conf.d/spawn-fcgi /etc/conf.d/spawn-fcgi.trac" + eerror " `basename "${EDITOR}"` /etc/conf.d/spawn-fcgi.trac" + eerror + return 1 + fi + + if [ ! -z "${FCGI_SOCKET}" ] && [ ! -z "${FCGI_PORT}" ]; then + eerror "Only one of the two may be defined:" + eerror " FCGI_SOCKET=${FCGI_SOCKET}" + eerror " FCGI_PORT=${FCGI_PORT}" + return 1 + fi + + if [ -z "${FCGI_PROGRAM}" ]; then + eerror "You need to specify which \$FCGI_PROGRAM" + eerror "you want to start." + eerror "Please adjust /etc/conf.d/spawn-fcgi.${PROGNAME}" + return 1 + fi + + if [ ! -x "${FCGI_PROGRAM_EXEC}" ]; then + eerror "The file specified as \$FCGI_PROGRAM" + eerror "does not exist or is not executable." + eerror "Please adjust /etc/conf.d/spawn-fcgi.${PROGNAME}" + return 1 + fi + + if [ -z "${FCGI_ADDRESS}" ]; then + FCGI_ADDRESS=127.0.0.1 + fi + + if [ -z "${FCGI_CHILDREN}" ]; then + FCGI_CHILDREN=1 + fi + + if [ -n "${FCGI_CHROOT}" ]; then + OPTIONS="${OPTIONS} -c ${FCGI_CHROOT}" + fi + + if [ -n "${FCGI_DIR}" ]; then + OPTIONS="${OPTIONS} -d ${FCGI_DIR}" + fi + + if [ -n "${FCGI_USER}" ] && [ "${FCGI_USER}" != "root" ]; then + OPTIONS="${OPTIONS} -u ${FCGI_USER}" + fi + + if [ -n "${FCGI_GROUP}" ] && [ "${FCGI_GROUP}" != "root" ]; then + OPTIONS="${OPTIONS} -g ${FCGI_GROUP}" + fi + + if [ -n "${FCGI_EXTRA_OPTIONS}" ]; then + OPTIONS="${OPTIONS} ${FCGI_EXTRA_OPTIONS}" + fi + + unset E + for i in ${ALLOWED_ENV}; do + local j + eval j=$(echo \$"$i") + [ -n "${j}" ] && E="${E} ${i}=${j}" + done + + ebegin "Starting FastCGI application ${PROGNAME}" + checkpath -q -d -m 700 /var/run/spawn-fcgi + X=0 + while [ $X -lt ${FCGI_CHILDREN} ]; do + X=$(($X+1)) + local P SOCKET_OPTION INET_OPTION + P=${PIDFILE}-${X}.pid + [ -n "${FCGI_SOCKET}" ] && SOCKET_OPTION="-s ${FCGI_SOCKET}-${X}" + [ -n "${FCGI_PORT}" ] && INET_OPTION="-a ${FCGI_ADDRESS} -p $((${FCGI_PORT} + ${X} - 1))" + + env -i ${E} /sbin/start-stop-daemon --start --pidfile ${P} --exec ${SPAWNFCGI} \ + --name ${FCGI_PROGRAM_EXEC} -- ${SOCKET_OPTION} ${INET_OPTION} \ + -P ${P} ${OPTIONS} -- ${FCGI_PROGRAM} + RETVAL=$? + + # Stop on error. Don't want to spawn a mess! + [ "${RETVAL}" != "0" ] && break + done + eend ${RETVAL} +} + +stop() { + local X RETVAL=0 + + ebegin "Stopping FastCGI application ${PROGNAME}" + for X in ${PIDFILE}-[0-9]*.pid ; do + start-stop-daemon --stop --pidfile ${X} || \ + { RETVAL=$? && break ; } + done + eend ${RETVAL} +} diff --git a/www-servers/spawn-fcgi/files/spawn-fcgi.initd-r2 b/www-servers/spawn-fcgi/files/spawn-fcgi.initd-r2 new file mode 100644 index 000000000000..e7941a125a58 --- /dev/null +++ b/www-servers/spawn-fcgi/files/spawn-fcgi.initd-r2 @@ -0,0 +1,116 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +PROGNAME=${SVCNAME#*.} +SPAWNFCGI=/usr/bin/spawn-fcgi +PIDPATH=/run/spawn-fcgi +PIDFILE=${PIDPATH}/${PROGNAME} + +depend() { + need net +} + +start() { + local X E OPTIONS i RETVAL FCGI_PROGRAM_EXEC + FCGI_PROGRAM_EXEC=$(echo ${FCGI_PROGRAM} | awk "{print \$1}") + + if [ "${SVCNAME}" = "spawn-fcgi" ]; then + eerror "You are not supposed to run this script directly. Create a symlink" + eerror "for the FastCGI application you want to run as well as a copy of the" + eerror "configuration file and modify it appropriately like so..." + eerror + eerror " ln -s spawn-fcgi /etc/init.d/spawn-fcgi.trac" + eerror " cp /etc/conf.d/spawn-fcgi /etc/conf.d/spawn-fcgi.trac" + eerror " `basename "${EDITOR}"` /etc/conf.d/spawn-fcgi.trac" + eerror + return 1 + fi + + if [ ! -z "${FCGI_SOCKET}" ] && [ ! -z "${FCGI_PORT}" ]; then + eerror "Only one of the two may be defined:" + eerror " FCGI_SOCKET=${FCGI_SOCKET}" + eerror " FCGI_PORT=${FCGI_PORT}" + return 1 + fi + + if [ -z "${FCGI_PROGRAM}" ]; then + eerror "You need to specify which \$FCGI_PROGRAM" + eerror "you want to start." + eerror "Please adjust /etc/conf.d/spawn-fcgi.${PROGNAME}" + return 1 + fi + + if [ ! -x "${FCGI_PROGRAM_EXEC}" ]; then + eerror "The file specified as \$FCGI_PROGRAM" + eerror "does not exist or is not executable." + eerror "Please adjust /etc/conf.d/spawn-fcgi.${PROGNAME}" + return 1 + fi + + if [ -z "${FCGI_ADDRESS}" ]; then + FCGI_ADDRESS=127.0.0.1 + fi + + if [ -z "${FCGI_CHILDREN}" ]; then + FCGI_CHILDREN=1 + fi + + if [ -n "${FCGI_CHROOT}" ]; then + OPTIONS="${OPTIONS} -c ${FCGI_CHROOT}" + fi + + if [ -n "${FCGI_DIR}" ]; then + OPTIONS="${OPTIONS} -d ${FCGI_DIR}" + fi + + if [ -n "${FCGI_USER}" ] && [ "${FCGI_USER}" != "root" ]; then + OPTIONS="${OPTIONS} -u ${FCGI_USER}" + fi + + if [ -n "${FCGI_GROUP}" ] && [ "${FCGI_GROUP}" != "root" ]; then + OPTIONS="${OPTIONS} -g ${FCGI_GROUP}" + fi + + if [ -n "${FCGI_EXTRA_OPTIONS}" ]; then + OPTIONS="${OPTIONS} ${FCGI_EXTRA_OPTIONS}" + fi + + unset E + for i in ${ALLOWED_ENV}; do + local j + eval j=$(echo \$"$i") + [ -n "${j}" ] && E="${E} ${i}=${j}" + done + + ebegin "Starting FastCGI application ${PROGNAME}" + checkpath -q -d -m 700 /run/spawn-fcgi + X=0 + while [ $X -lt ${FCGI_CHILDREN} ]; do + X=$(($X+1)) + local P SOCKET_OPTION INET_OPTION + P=${PIDFILE}-${X}.pid + [ -n "${FCGI_SOCKET}" ] && SOCKET_OPTION="-s ${FCGI_SOCKET}-${X}" + [ -n "${FCGI_PORT}" ] && INET_OPTION="-a ${FCGI_ADDRESS} -p $((${FCGI_PORT} + ${X} - 1))" + + env -i ${E} /sbin/start-stop-daemon --start --pidfile ${P} --exec ${SPAWNFCGI} \ + --name ${FCGI_PROGRAM_EXEC} -- ${SOCKET_OPTION} ${INET_OPTION} \ + -P ${P} ${OPTIONS} -- ${FCGI_PROGRAM} + RETVAL=$? + + # Stop on error. Don't want to spawn a mess! + [ "${RETVAL}" != "0" ] && break + done + eend ${RETVAL} +} + +stop() { + local X RETVAL=0 + + ebegin "Stopping FastCGI application ${PROGNAME}" + for X in ${PIDFILE}-[0-9]*.pid ; do + start-stop-daemon --stop --pidfile ${X} || \ + { RETVAL=$? && break ; } + done + eend ${RETVAL} +} diff --git a/www-servers/spawn-fcgi/metadata.xml b/www-servers/spawn-fcgi/metadata.xml new file mode 100644 index 000000000000..27f1ebb9d05d --- /dev/null +++ b/www-servers/spawn-fcgi/metadata.xml @@ -0,0 +1,14 @@ + + + + + spawn-fcgi is used to spawn FastCGI applications + + Features + -------- + - binds to IPv4 and Unix domain sockets + - supports privilege separation: chmod/chown socket, drop to uid/gid + - supports chroot + - supports daemontools supervise + + diff --git a/www-servers/spawn-fcgi/spawn-fcgi-1.6.3-r1.ebuild b/www-servers/spawn-fcgi/spawn-fcgi-1.6.3-r1.ebuild new file mode 100644 index 000000000000..7fba4ede0c9a --- /dev/null +++ b/www-servers/spawn-fcgi/spawn-fcgi-1.6.3-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +DESCRIPTION="A FCGI spawner for lighttpd and cherokee and other webservers" +HOMEPAGE="http://redmine.lighttpd.net/projects/spawn-fcgi" +SRC_URI="http://www.lighttpd.net/download/${P}.tar.bz2" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86" +IUSE="ipv6" + +DEPEND="" +RDEPEND="!<=www-servers/lighttpd-1.4.20 + !<=www-servers/cherokee-0.98.1" + +src_configure() { + econf $(use_enable ipv6) +} + +src_install() { + emake DESTDIR="${D}" install + dodoc README NEWS + + newconfd "${FILESDIR}"/spawn-fcgi.confd spawn-fcgi + newinitd "${FILESDIR}"/spawn-fcgi.initd-r1 spawn-fcgi + + docinto examples + dodoc doc/run-generic doc/run-php doc/run-rails +} diff --git a/www-servers/spawn-fcgi/spawn-fcgi-1.6.3-r2.ebuild b/www-servers/spawn-fcgi/spawn-fcgi-1.6.3-r2.ebuild new file mode 100644 index 000000000000..a19ec429e424 --- /dev/null +++ b/www-servers/spawn-fcgi/spawn-fcgi-1.6.3-r2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DESCRIPTION="A FCGI spawner for lighttpd and cherokee and other webservers" +HOMEPAGE="http://redmine.lighttpd.net/projects/spawn-fcgi" +SRC_URI="http://www.lighttpd.net/download/${P}.tar.bz2" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" +IUSE="ipv6" + +DEPEND="" +RDEPEND=" + !<=www-servers/lighttpd-1.4.20 + !<=www-servers/cherokee-0.98.1" + +src_configure() { + econf $(use_enable ipv6) +} + +src_install() { + default + + newconfd "${FILESDIR}"/spawn-fcgi.confd spawn-fcgi + newinitd "${FILESDIR}"/spawn-fcgi.initd-r2 spawn-fcgi + + docinto examples + dodoc doc/run-generic doc/run-php doc/run-rails +} diff --git a/www-servers/spawn-fcgi/spawn-fcgi-1.6.4.ebuild b/www-servers/spawn-fcgi/spawn-fcgi-1.6.4.ebuild new file mode 100644 index 000000000000..4068e674e390 --- /dev/null +++ b/www-servers/spawn-fcgi/spawn-fcgi-1.6.4.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DESCRIPTION="A FCGI spawner for lighttpd and cherokee and other webservers" +HOMEPAGE="http://redmine.lighttpd.net/projects/spawn-fcgi" +SRC_URI="http://www.lighttpd.net/download/${P}.tar.xz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" +IUSE="ipv6" + +DEPEND="" +RDEPEND=" + !<=www-servers/lighttpd-1.4.20 + !<=www-servers/cherokee-0.98.1" + +src_configure() { + econf $(use_enable ipv6) +} + +src_install() { + default + + newconfd "${FILESDIR}"/spawn-fcgi.confd spawn-fcgi + newinitd "${FILESDIR}"/spawn-fcgi.initd-r2 spawn-fcgi + + docinto examples + dodoc doc/run-generic doc/run-php doc/run-rails +} -- cgit v1.2.3