mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
Add mod_pcgi2 2.0.1, Persistent CGI module for Apache and Zope.
PR: 38269 Submitted by: perky
This commit is contained in:
parent
1eee9917e7
commit
e0e83cffe3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62904
@ -179,6 +179,7 @@
|
||||
SUBDIR += mod_mp3
|
||||
SUBDIR += mod_mylo
|
||||
SUBDIR += mod_mysqluserdir
|
||||
SUBDIR += mod_pcgi2
|
||||
SUBDIR += mod_perl
|
||||
SUBDIR += mod_php3
|
||||
SUBDIR += mod_php4
|
||||
|
68
www/mod_pcgi2/Makefile
Normal file
68
www/mod_pcgi2/Makefile
Normal file
@ -0,0 +1,68 @@
|
||||
# New ports collection makefile for: mod_pcgi2
|
||||
# Date created: 19 May 2002
|
||||
# Whom: Hye-Shik Chang
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= mod_pcgi2
|
||||
PORTVERSION= 2.0.1
|
||||
CATEGORIES= www zope
|
||||
MASTER_SITES= http://www.zope.org/Members/phd/mod_pcgi2/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
||||
|
||||
MAINTAINER= perky@FreeBSD.org
|
||||
|
||||
RUN_DEPENDS= ${LOCALBASE}/${SZOPEBASEDIR}/z2.py:${PORTSDIR}/www/zope
|
||||
|
||||
.if defined(WITH_APACHE13)
|
||||
BUILD_DEPENDS= ${LOCALBASE}/include/apache/httpd.h:${PORTSDIR}/www/apache13
|
||||
RUN_DEPENDS= ${LOCALBASE}/include/apache/httpd.h:${PORTSDIR}/www/apache13
|
||||
.else
|
||||
BUILD_DEPENDS= ${LOCALBASE}/include/apache2/httpd.h:${PORTSDIR}/www/apache2
|
||||
RUN_DEPENDS= ${LOCALBASE}/include/apache2/httpd.h:${PORTSDIR}/www/apache2
|
||||
.endif
|
||||
|
||||
USE_PYTHON= yes
|
||||
|
||||
# You can change this in the environment if you like.
|
||||
SZOPEBASEDIR?= www/Zope
|
||||
APXS?= ${LOCALBASE}/sbin/apxs
|
||||
|
||||
# Don't change these
|
||||
ZOPEBASEDIR= ${LOCALBASE}/${SZOPEBASEDIR}
|
||||
WRKSRC= ${WRKDIR}/pcgi2
|
||||
BUILDOPT= -DMOD_PCGI2 -DUNIX -DHAVE_UNION_SEMUN
|
||||
SOURCES= mod_pcgi2.c parseinfo.c pcgi-wrapper.c
|
||||
PLIST_SUB= APXS="${APXS}" APACHEVER="${APACHEVER}"
|
||||
MSG_SUB= -e 's,%%CONFFILE%%,etc/${APACHEVER}/mod_pcgi2.conf,' \
|
||||
-e 's,%%PREFIX%%,${PREFIX},'
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
|
||||
.if defined(WITH_APACHE13)
|
||||
APACHEVER= apache
|
||||
.else
|
||||
APACHEVER= apache2
|
||||
BUILDOPT+= -DAPACHE2 -Wc,-shared
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
@${SED} -e 's,%%PYTHON_CMD%%,${PYTHON_CMD},g' \
|
||||
-e 's,%%ZOPEBASEDIR%%,${ZOPEBASEDIR},g' \
|
||||
${FILESDIR}/mod_pcgi2.conf.dist >${WRKDIR}/mod_pcgi2.conf
|
||||
@${SED} ${MSG_SUB} pkg-message > ${PKGMESSAGE}
|
||||
|
||||
do-build:
|
||||
@cd ${WRKSRC} && ${APXS} -c -o mod_pcgi2.so ${BUILDOPT} ${SOURCES}
|
||||
|
||||
do-install:
|
||||
.if defined(WITH_APACHE13)
|
||||
@${APXS} -ia -n pcgi2 ${WRKSRC}/mod_pcgi2.so
|
||||
.else
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/mod_pcgi2.so ${PREFIX}/libexec/${APACHEVER}/
|
||||
@${APXS} -ea -n pcgi2 libexec/${APACHEVER}/mod_pcgi2.so
|
||||
.endif
|
||||
@${INSTALL_DATA} ${WRKDIR}/mod_pcgi2.conf ${PREFIX}/etc/${APACHEVER}/
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
1
www/mod_pcgi2/distinfo
Normal file
1
www/mod_pcgi2/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (mod_pcgi2-2.0.1-src.tar.gz) = 5721f2e957aac842a56087e082aab6e0
|
16
www/mod_pcgi2/files/mod_pcgi2.conf.dist
Normal file
16
www/mod_pcgi2/files/mod_pcgi2.conf.dist
Normal file
@ -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>
|
32
www/mod_pcgi2/files/patch-mod_pcgi2.c
Normal file
32
www/mod_pcgi2/files/patch-mod_pcgi2.c
Normal file
@ -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; \
|
||||
}
|
||||
|
1
www/mod_pcgi2/pkg-comment
Normal file
1
www/mod_pcgi2/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Persistent CGI module for Apache and Zope
|
5
www/mod_pcgi2/pkg-descr
Normal file
5
www/mod_pcgi2/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
The mod_pcgi2 is a module for Apache to handle Persistent CGI
|
||||
protocol which is supported by Zope to circumvent some of the
|
||||
process launch overhead.
|
||||
|
||||
WWW: http://www.zope.org/Members/phd/mod_pcgi2/
|
8
www/mod_pcgi2/pkg-message
Normal file
8
www/mod_pcgi2/pkg-message
Normal file
@ -0,0 +1,8 @@
|
||||
-
|
||||
Please, adjust the %%PREFIX%%/%%CONFFILE%%
|
||||
to your liking and add
|
||||
|
||||
include %%CONFFILE%%
|
||||
|
||||
to the Apache's config file.
|
||||
-
|
4
www/mod_pcgi2/pkg-plist
Normal file
4
www/mod_pcgi2/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
etc/%%APACHEVER%%/mod_pcgi2.conf
|
||||
libexec/%%APACHEVER%%/mod_pcgi2.so
|
||||
@exec %%APXS%% -e -a -n pcgi2 %D/%f
|
||||
@unexec %%APXS%% -e -A -n pcgi2 %D/%f
|
Loading…
Reference in New Issue
Block a user