summaryrefslogtreecommitdiffstats
path: root/www/mod_pcgi2/files
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2002-07-13 18:38:33 +0000
committerperky <perky@FreeBSD.org>2002-07-13 18:38:33 +0000
commit77348417c2e0515d8ad516c178a526199ef50e2d (patch)
treea90acf1385772b7c282e83d2d5f89a851cab4609 /www/mod_pcgi2/files
parent4e32bd4b9e9535d613d527895844128ea581bbdd (diff)
downloadFreeBSD-ports-77348417c2e0515d8ad516c178a526199ef50e2d.zip
FreeBSD-ports-77348417c2e0515d8ad516c178a526199ef50e2d.tar.gz
Add mod_pcgi2 2.0.1, Persistent CGI module for Apache and Zope.
PR: 38269 Submitted by: perky
Diffstat (limited to 'www/mod_pcgi2/files')
-rw-r--r--www/mod_pcgi2/files/mod_pcgi2.conf.dist16
-rw-r--r--www/mod_pcgi2/files/patch-mod_pcgi2.c32
2 files changed, 48 insertions, 0 deletions
diff --git a/www/mod_pcgi2/files/mod_pcgi2.conf.dist b/www/mod_pcgi2/files/mod_pcgi2.conf.dist
new file mode 100644
index 0000000..99226ba
--- /dev/null
+++ b/www/mod_pcgi2/files/mod_pcgi2.conf.dist
@@ -0,0 +1,16 @@
+<IfModule mod_pcgi2.c>
+ PCGI_NAME Zope
+ PCGI_MODULE_PATH %%ZOPEBASEDIR%%/lib/python/Zope
+ PCGI_PUBLISHER %%ZOPEBASEDIR%%/pcgi/pcgi_publisher.py
+ PCGI_EXE %%PYTHON_CMD%%
+ PCGI_SOCKET_FILE %%ZOPEBASEDIR%%/var/pcgi.soc
+ PCGI_PID_FILE %%ZOPEBASEDIR%%/var/pcgi.pid
+ PCGI_ERROR_LOG %%ZOPEBASEDIR%%/var/pcgi.log
+ PCGI_DISPLAY_ERRORS 1
+
+ <Location /zope>
+ SetHandler pcgi-handler
+ PCGI_ROOT /
+ PCGI_SetEnv SiteRootPATH /
+ </Location>
+</IfModule>
diff --git a/www/mod_pcgi2/files/patch-mod_pcgi2.c b/www/mod_pcgi2/files/patch-mod_pcgi2.c
new file mode 100644
index 0000000..c5339c5
--- /dev/null
+++ b/www/mod_pcgi2/files/patch-mod_pcgi2.c
@@ -0,0 +1,32 @@
+--- mod_pcgi2.c.orig Wed May 8 21:15:01 2002
++++ mod_pcgi2.c Sun May 19 09:30:33 2002
+@@ -166,12 +166,12 @@
+
+
+ /* Merge resource records */
+-#define CREATE_pcgi_mergef(name, addr, maxsz) static void pcgi_merge_##name##(pcgiResource *r, pcgiResource *base, pcgiResource *overrides) \
++#define CREATE_pcgi_mergef(name, addr, maxsz) static void pcgi_merge_##name(pcgiResource *r, pcgiResource *base, pcgiResource *overrides) \
+ { \
+- if (overrides->##addr##[0]) { \
+- strncpy(r->##addr##, overrides->##addr##, maxsz); \
+- } else if (base->##addr##[0]) { \
+- strncpy(r->##addr##, base->##addr##, maxsz); \
++ if (overrides->addr[0]) { \
++ strncpy(r->addr, overrides->addr, maxsz); \
++ } else if (base->addr[0]) { \
++ strncpy(r->addr, base->addr, maxsz); \
+ } \
+ }
+
+@@ -314,9 +314,9 @@
+
+
+ /* Parse command parameters */
+-#define CREATE_pcgi_setf(name, addr, maxsz) static const char *pcgi_set_##name##(cmd_parms *parms, void *r, const char *arg) \
++#define CREATE_pcgi_setf(name, addr, maxsz) static const char *pcgi_set_##name(cmd_parms *parms, void *r, const char *arg) \
+ { \
+- strncpy(((pcgiResource *)r)->##addr##, arg, maxsz); \
++ strncpy(((pcgiResource *)r)->addr, arg, maxsz); \
+ return NULL; \
+ }
+
OpenPOWER on IntegriCloud