ports/77740: [patch] www/mod_fastcgi allow select NO_SUEXEC_FOR_AP_USER_N_GROUP
Vladimir Tananko
bs at artcon.ru
Sat Feb 19 17:50:14 UTC 2005
>Number: 77740
>Category: ports
>Synopsis: [patch] www/mod_fastcgi allow select NO_SUEXEC_FOR_AP_USER_N_GROUP
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sat Feb 19 17:50:13 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Vladimir Tananko
>Release: FreeBSD 5.3-RELEASE-p2 i386
>Organization:
Art-Constructor
>Environment:
System: FreeBSD Midget.abcnet.ru 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #1: Sat Dec 25 16:52:39 MSK 2004 bs at Midget.abcnet.ru:/usr/obj/usr/src/sys/Midget i386
>Description:
mod_fastcgi ( 2.4.3 ) provide the NO_SUEXEC_FOR_AP_USER_N_GROUP
macro for building mod_fastcgi with the Apache 1.3 suexec
behaviour (don't use suexec if httpd's user and group match
that needed for the application).
The patch allows to use this macro as shown below.
cd /usr/ports/www/mod_fastcgi
make NO_SUEXEC_FOR_AP=yes
>How-To-Repeat:
n/a
>Fix:
--- www/mod_fastcgi/Makefile.orig Sat Feb 19 19:25:44 2005
+++ www/mod_fastcgi/Makefile Sat Feb 19 19:49:20 2005
@@ -28,6 +28,12 @@
PLIST_SUB= APACHE=
.endif
+.if defined(NO_SUEXEC_FOR_AP)
+APXSOPT+= -DNO_SUEXEC_FOR_AP_USER_N_GROUP
+.else
+APXSOPT=
+.endif
+
do-patch:
.if defined(WITH_APACHE2)
@${REINPLACE_CMD} -e "s|/usr/local/apache2|${PREFIX}/share/apache2|g" ${WRKSRC}/${MAKEFILE}
@@ -35,7 +41,7 @@
cd ${WRKSRC} ; ${MV} Makefile.tmpl Makefile ;
do-build:
- cd ${WRKSRC} ; ${LOCALBASE}/sbin/apxs -o mod_fastcgi.so -c *.c
+ cd ${WRKSRC} ; ${LOCALBASE}/sbin/apxs -o mod_fastcgi.so -c ${APXSOPT} *.c
do-install:
cd ${WRKSRC} ; ${LOCALBASE}/sbin/apxs -i -a -n fastcgi mod_fastcgi.so
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list