From dac9992061abed717a6fb4f0fa2ae3453ebdaebf Mon Sep 17 00:00:00 2001 From: "Philip M. Gollucci" Date: Fri, 14 May 2010 05:03:30 +0000 Subject: By default suexec doesn't enforces different resource limitations configured in login.conf(5). This is probably because resource limitations are handled differently on various different platforms. This modifies suexec behaviour to set resource limits for CGI's from /etc/login.conf before execing the customers CGI script. Doesn't affect default package, so no PORTREVISION bumps. I will follow up at dev@httpd.apache.org to see about adding this with #ifdefs. PR: ports/136091 Submitted by: Alexey V.Degtyarev With Hat: apache@ --- www/apache22/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'www/apache22/Makefile') diff --git a/www/apache22/Makefile b/www/apache22/Makefile index 516be1a5d8b8..50c4af76205c 100644 --- a/www/apache22/Makefile +++ b/www/apache22/Makefile @@ -67,6 +67,14 @@ OPTIONS= \ .include "${APACHEDIR}/Makefile.options" .endif +.if defined(WITH_SUEXEC_RSRCLIMIT) +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-suexec_rsrclimit +.if !defined(WITH_SUEXEC) +IGNORE= suEXEC resource limit patch requires mod_suexec.\ + Please (re)run 'make config' and choose SUEXEC option also +.endif +.endif + CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \ --enable-layout=FreeBSD \ --with-perl=${PERL5} \ -- cgit v1.2.3