FreeBSD Bugzilla – Attachment 21953 Details for
Bug 38269
New port: www/mod_pcgi2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 5.86 KB, created by
Hye-Shik Chang
on 2002-05-19 02:50:01 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
Hye-Shik Chang
Created:
2002-05-19 02:50:01 UTC
Size:
5.86 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># mod_pcgi2 ># mod_pcgi2/Makefile ># mod_pcgi2/distinfo ># mod_pcgi2/pkg-comment ># mod_pcgi2/pkg-descr ># mod_pcgi2/pkg-message ># mod_pcgi2/pkg-plist ># mod_pcgi2/files ># mod_pcgi2/files/mod_pcgi2.conf ># mod_pcgi2/files/patch-mod_pcgi2.c ># >echo c - mod_pcgi2 >mkdir -p mod_pcgi2 > /dev/null 2>&1 >echo x - mod_pcgi2/Makefile >sed 's/^X//' >mod_pcgi2/Makefile << 'END-of-mod_pcgi2/Makefile' >X# New ports collection makefile for: mod_pcgi2 >X# Date created: 19 May 2002 >X# Whom: perky@fallin.lv >X# >X# $FreeBSD$ >X# >X >XPORTNAME= mod_pcgi2 >XPORTVERSION= 2.0.1 >XCATEGORIES= www zope >XMASTER_SITES= http://www.zope.org/Members/phd/mod_pcgi2/ >XDISTNAME= ${PORTNAME}-${PORTVERSION}-src >X >XMAINTAINER= perky@fallin.lv >X >XRUN_DEPENDS= ${LOCALBASE}/${SZOPEBASEDIR}/z2.py:${PORTSDIR}/www/zope >X >X.if defined(WITH_APACHE13) >XBUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 >XRUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 >X.else >XBUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache2 >XRUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache2 >X.endif >X >XUSE_PYTHON= yes >X >X# You can change this in the environment if you like. >XSZOPEBASEDIR?= www/Zope >XAPXS?= ${LOCALBASE}/sbin/apxs >X >X# Don't change these >XZOPEBASEDIR= ${LOCALBASE}/${SZOPEBASEDIR} >XWRKSRC= ${WRKDIR}/pcgi2 >XBUILDOPT= -DMOD_PCGI2 -DUNIX -DHAVE_UNION_SEMUN >XSOURCES= mod_pcgi2.c parseinfo.c pcgi-wrapper.c >XPLIST_SUB= APXS="${APXS}" APACHEVER="${APACHEVER}" >XMSG_SUB= -e 's,%%CONFFILE%%,etc/${APACHEVER}/mod_pcgi2.conf,' \ >X -e 's,%%PREFIX%%,${PREFIX},' >XPKGMESSAGE= ${WRKDIR}/pkg-message >X >X.if defined(WITH_APACHE13) >XAPACHEVER= apache >X.else >XAPACHEVER= apache2 >XBUILDOPT+= -DAPACHE2 -Wc,-shared >X.endif >X >Xpost-extract: >X @${SED} -e 's,%%PYTHON_CMD%%,${PYTHON_CMD},g' \ >X -e 's,%%ZOPEBASEDIR%%,${ZOPEBASEDIR},g' \ >X ${FILESDIR}/mod_pcgi2.conf >${WRKDIR}/mod_pcgi2.conf >X @${SED} ${MSG_SUB} pkg-message > ${PKGMESSAGE} >X >Xdo-build: >X @cd ${WRKSRC} && ${APXS} -c -o mod_pcgi2.so ${BUILDOPT} ${SOURCES} >X >Xdo-install: >X.if defined(WITH_APACHE13) >X @${APXS} -ia -n pcgi2 ${WRKSRC}/mod_pcgi2.so >X.else >X @${INSTALL_PROGRAM} ${WRKSRC}/mod_pcgi2.so ${PREFIX}/libexec/${APACHEVER}/ >X @${APXS} -ea -n pcgi2 libexec/${APACHEVER}/mod_pcgi2.so >X.endif >X @${INSTALL_DATA} ${WRKDIR}/mod_pcgi2.conf ${PREFIX}/etc/${APACHEVER}/ >X @${CAT} ${PKGMESSAGE} >X >X.include <bsd.port.mk> >END-of-mod_pcgi2/Makefile >echo x - mod_pcgi2/distinfo >sed 's/^X//' >mod_pcgi2/distinfo << 'END-of-mod_pcgi2/distinfo' >XMD5 (mod_pcgi2-2.0.1-src.tar.gz) = 5721f2e957aac842a56087e082aab6e0 >END-of-mod_pcgi2/distinfo >echo x - mod_pcgi2/pkg-comment >sed 's/^X//' >mod_pcgi2/pkg-comment << 'END-of-mod_pcgi2/pkg-comment' >XPersistent CGI module for Apache and Zope >END-of-mod_pcgi2/pkg-comment >echo x - mod_pcgi2/pkg-descr >sed 's/^X//' >mod_pcgi2/pkg-descr << 'END-of-mod_pcgi2/pkg-descr' >XThe mod_pcgi2 is a module for Apache to handle Persistent CGI >Xprotocol which is supported by Zope to circumvent some of the >Xprocess launch overhead. >X >XWWW: http://www.zope.org/Members/phd/mod_pcgi2/ >END-of-mod_pcgi2/pkg-descr >echo x - mod_pcgi2/pkg-message >sed 's/^X//' >mod_pcgi2/pkg-message << 'END-of-mod_pcgi2/pkg-message' >X- >X Please, adjust the %%PREFIX%%/%%CONFFILE%% >X to your liking and add >X >X include %%CONFFILE%% >X >X to the Apache's config file. >X- >END-of-mod_pcgi2/pkg-message >echo x - mod_pcgi2/pkg-plist >sed 's/^X//' >mod_pcgi2/pkg-plist << 'END-of-mod_pcgi2/pkg-plist' >Xetc/%%APACHEVER%%/mod_pcgi2.conf >Xlibexec/%%APACHEVER%%/mod_pcgi2.so >X@exec %%APXS%% -e -a -n pcgi2 %D/%f >X@unexec %%APXS%% -e -A -n pcgi2 %D/%f >END-of-mod_pcgi2/pkg-plist >echo c - mod_pcgi2/files >mkdir -p mod_pcgi2/files > /dev/null 2>&1 >echo x - mod_pcgi2/files/mod_pcgi2.conf >sed 's/^X//' >mod_pcgi2/files/mod_pcgi2.conf << 'END-of-mod_pcgi2/files/mod_pcgi2.conf' >X<IfModule mod_pcgi2.c> >X PCGI_NAME Zope >X PCGI_MODULE_PATH %%ZOPEBASEDIR%%/lib/python/Zope >X PCGI_PUBLISHER %%ZOPEBASEDIR%%/pcgi/pcgi_publisher.py >X PCGI_EXE %%PYTHON_CMD%% >X PCGI_SOCKET_FILE %%ZOPEBASEDIR%%/var/pcgi.soc >X PCGI_PID_FILE %%ZOPEBASEDIR%%/var/pcgi.pid >X PCGI_ERROR_LOG %%ZOPEBASEDIR%%/var/pcgi.log >X PCGI_DISPLAY_ERRORS 1 >X >X <Location /zope> >X SetHandler pcgi-handler >X PCGI_ROOT / >X PCGI_SetEnv SiteRootPATH / >X </Location> >X</IfModule> >END-of-mod_pcgi2/files/mod_pcgi2.conf >echo x - mod_pcgi2/files/patch-mod_pcgi2.c >sed 's/^X//' >mod_pcgi2/files/patch-mod_pcgi2.c << 'END-of-mod_pcgi2/files/patch-mod_pcgi2.c' >X--- mod_pcgi2.c.orig Wed May 8 21:15:01 2002 >X+++ mod_pcgi2.c Sun May 19 09:30:33 2002 >X@@ -166,12 +166,12 @@ >X >X >X /* Merge resource records */ >X-#define CREATE_pcgi_mergef(name, addr, maxsz) static void pcgi_merge_##name##(pcgiResource *r, pcgiResource *base, pcgiResource *overrides) \ >X+#define CREATE_pcgi_mergef(name, addr, maxsz) static void pcgi_merge_##name(pcgiResource *r, pcgiResource *base, pcgiResource *overrides) \ >X { \ >X- if (overrides->##addr##[0]) { \ >X- strncpy(r->##addr##, overrides->##addr##, maxsz); \ >X- } else if (base->##addr##[0]) { \ >X- strncpy(r->##addr##, base->##addr##, maxsz); \ >X+ if (overrides->addr[0]) { \ >X+ strncpy(r->addr, overrides->addr, maxsz); \ >X+ } else if (base->addr[0]) { \ >X+ strncpy(r->addr, base->addr, maxsz); \ >X } \ >X } >X >X@@ -314,9 +314,9 @@ >X >X >X /* Parse command parameters */ >X-#define CREATE_pcgi_setf(name, addr, maxsz) static const char *pcgi_set_##name##(cmd_parms *parms, void *r, const char *arg) \ >X+#define CREATE_pcgi_setf(name, addr, maxsz) static const char *pcgi_set_##name(cmd_parms *parms, void *r, const char *arg) \ >X { \ >X- strncpy(((pcgiResource *)r)->##addr##, arg, maxsz); \ >X+ strncpy(((pcgiResource *)r)->addr, arg, maxsz); \ >X return NULL; \ >X } >X >END-of-mod_pcgi2/files/patch-mod_pcgi2.c >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 38269
: 21953