From 77348417c2e0515d8ad516c178a526199ef50e2d Mon Sep 17 00:00:00 2001 From: perky Date: Sat, 13 Jul 2002 18:38:33 +0000 Subject: Add mod_pcgi2 2.0.1, Persistent CGI module for Apache and Zope. PR: 38269 Submitted by: perky --- www/mod_pcgi2/files/mod_pcgi2.conf.dist | 16 ++++++++++++++++ www/mod_pcgi2/files/patch-mod_pcgi2.c | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 www/mod_pcgi2/files/mod_pcgi2.conf.dist create mode 100644 www/mod_pcgi2/files/patch-mod_pcgi2.c (limited to 'www/mod_pcgi2/files') 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 @@ + + 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 + + + SetHandler pcgi-handler + PCGI_ROOT / + PCGI_SetEnv SiteRootPATH / + + 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; \ + } + -- cgit v1.1