1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Add www/mod_fcgid, an alternative FastCGI module for Apache2.

mod_fcgid has a new process management strategy, which concentrates on
reducing the number of fastcgi server, and kick out the corrupt
fastcgi server as soon as possible.

The bad news is that it does not currently support suEXEC, and the
good news is that it has PHP support.  Check out the web site for
details.

Licence: GPL
WWW: http://fastcgi.coremail.cn/
This commit is contained in:
Akinori MUSHA 2004-08-12 20:51:15 +00:00
parent 0665a0ab4e
commit a937c65931
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116068
8 changed files with 74 additions and 0 deletions

View File

@ -262,6 +262,7 @@
SUBDIR += mod_extract_forwarded
SUBDIR += mod_extract_forwarded2
SUBDIR += mod_fastcgi
SUBDIR += mod_fcgid
SUBDIR += mod_filter
SUBDIR += mod_frontpage
SUBDIR += mod_geoip

27
www/mod_fcgid/Makefile Normal file
View File

@ -0,0 +1,27 @@
# New ports collection makefile for: mod_fcgid for Apache2
# Date created: 13 August 2004
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= mod_fcgid
PORTVERSION= 0.80
CATEGORIES= www
MASTER_SITES= http://fastcgi.coremail.cn/
DISTNAME= ${PORTNAME}.${PORTVERSION}
MAINTAINER= knu@FreeBSD.org
COMMENT= An alternative FastCGI module for Apache2
USE_APACHE= yes
WITH_APACHE2= yes
MAKE_ARGS= top_dir="${LOCALBASE}/share/apache2" INCLUDES="-I${LOCALBASE}/include/apache2"
INSTALL_TARGET= install-modules
post-install:
${MKDIR} -m 700 /var/run/fcgidsock
${CHOWN} www:www /var/run/fcgidsock
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

2
www/mod_fcgid/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (mod_fcgid.0.80.tar.gz) = 553cf737f242cc657d9fab0c6e62602f
SIZE (mod_fcgid.0.80.tar.gz) = 43616

View File

@ -0,0 +1,11 @@
--- fcgid_conf.c.orig Mon Jul 26 07:08:03 2004
+++ fcgid_conf.c Fri Aug 13 05:04:44 2004
@@ -15,7 +15,7 @@
#define DEFAULT_ERROR_SCAN_INTERVAL 3
#define DEFAULT_ZOMBIE_SCAN_INTERVAL 3
#define DEFAULT_PROC_LIFETIME (60*60)
-#define DEFAULT_SOCKET_PREFIX "logs/fcgidsock"
+#define DEFAULT_SOCKET_PREFIX "/var/run/fcgidsock"
#define DEFAULT_SPAWNSOCRE_UPLIMIT 10
#define DEFAULT_SPAWN_SCORE 1
#define DEFAULT_TERMINATION_SCORE 2

View File

@ -0,0 +1,7 @@
--- arch/unix/fcgid_proc_unix.c.orig Mon Jul 26 07:08:03 2004
+++ arch/unix/fcgid_proc_unix.c Fri Aug 13 04:53:49 2004
@@ -1,3 +1,4 @@
+#include <sys/types.h>
#include <sys/un.h>
#include "httpd.h"
#include "apr_thread_proc.h"

12
www/mod_fcgid/pkg-descr Normal file
View File

@ -0,0 +1,12 @@
mod_fcgid -- an alternative FastCGI module for Apache2
mod_fcgid has a new process management strategy, which concentrates on
reducing the number of fastcgi server, and kick out the corrupt
fastcgi server as soon as possible.
The bad news is that it does not currently support suEXEC, and the
good news is that it has PHP support. Check out the web site for
details.
Licence: GPL
WWW: http://fastcgi.coremail.cn/

10
www/mod_fcgid/pkg-message Normal file
View File

@ -0,0 +1,10 @@
************************************************************
To enable this module, add something like the following
lines to your server configuration file:
LoadModule fcgid_module libexec/apache2/mod_fcgid.so
<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
</IfModule>
************************************************************

4
www/mod_fcgid/pkg-plist Normal file
View File

@ -0,0 +1,4 @@
libexec/apache2/mod_fcgid.so
@exec /bin/mkdir -p -m 700 /var/run/fcgidsock
@exec /bin/chown www:www /var/run/fcgidsock
@unexec /bin/rmdir /var/run/fcgidsock 2>/dev/null || true