summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2004-08-12 20:51:15 +0000
committerknu <knu@FreeBSD.org>2004-08-12 20:51:15 +0000
commit0e9e6bb47214c43e621e404c3ea9e5df34aac0b7 (patch)
tree01142362cf85a84af1708b8006327d6300ed3666 /www
parent00dd976fd82520355cef7783d8ab7c51f4809eea (diff)
downloadFreeBSD-ports-0e9e6bb47214c43e621e404c3ea9e5df34aac0b7.zip
FreeBSD-ports-0e9e6bb47214c43e621e404c3ea9e5df34aac0b7.tar.gz
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/
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/mod_fcgid/Makefile27
-rw-r--r--www/mod_fcgid/distinfo2
-rw-r--r--www/mod_fcgid/files/patch-fcgid_conf.c11
-rw-r--r--www/mod_fcgid/files/patch-fcgid_proc_unix.c7
-rw-r--r--www/mod_fcgid/pkg-descr12
-rw-r--r--www/mod_fcgid/pkg-message10
-rw-r--r--www/mod_fcgid/pkg-plist4
8 files changed, 74 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index e4c5d37..50429f0 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -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
diff --git a/www/mod_fcgid/Makefile b/www/mod_fcgid/Makefile
new file mode 100644
index 0000000..9254b2c
--- /dev/null
+++ b/www/mod_fcgid/Makefile
@@ -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>
diff --git a/www/mod_fcgid/distinfo b/www/mod_fcgid/distinfo
new file mode 100644
index 0000000..f69170e
--- /dev/null
+++ b/www/mod_fcgid/distinfo
@@ -0,0 +1,2 @@
+MD5 (mod_fcgid.0.80.tar.gz) = 553cf737f242cc657d9fab0c6e62602f
+SIZE (mod_fcgid.0.80.tar.gz) = 43616
diff --git a/www/mod_fcgid/files/patch-fcgid_conf.c b/www/mod_fcgid/files/patch-fcgid_conf.c
new file mode 100644
index 0000000..6255ce0
--- /dev/null
+++ b/www/mod_fcgid/files/patch-fcgid_conf.c
@@ -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
diff --git a/www/mod_fcgid/files/patch-fcgid_proc_unix.c b/www/mod_fcgid/files/patch-fcgid_proc_unix.c
new file mode 100644
index 0000000..a3dbe8b
--- /dev/null
+++ b/www/mod_fcgid/files/patch-fcgid_proc_unix.c
@@ -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"
diff --git a/www/mod_fcgid/pkg-descr b/www/mod_fcgid/pkg-descr
new file mode 100644
index 0000000..884c78d
--- /dev/null
+++ b/www/mod_fcgid/pkg-descr
@@ -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/
diff --git a/www/mod_fcgid/pkg-message b/www/mod_fcgid/pkg-message
new file mode 100644
index 0000000..17a1326
--- /dev/null
+++ b/www/mod_fcgid/pkg-message
@@ -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>
+************************************************************
diff --git a/www/mod_fcgid/pkg-plist b/www/mod_fcgid/pkg-plist
new file mode 100644
index 0000000..bc85ebc
--- /dev/null
+++ b/www/mod_fcgid/pkg-plist
@@ -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
OpenPOWER on IntegriCloud