summaryrefslogtreecommitdiffstats
path: root/www/apache21/Makefile
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2002-07-21 02:23:33 +0000
committerperky <perky@FreeBSD.org>2002-07-21 02:23:33 +0000
commit62dfcfbed8bc70f5e537df2b2838706925d7e4cb (patch)
tree37adbde8dc91915d8c2614d52e61ffa08d7f5295 /www/apache21/Makefile
parent35bdb974b41e365e8eb8adf401e786b3d978de10 (diff)
downloadFreeBSD-ports-62dfcfbed8bc70f5e537df2b2838706925d7e4cb.zip
FreeBSD-ports-62dfcfbed8bc70f5e537df2b2838706925d7e4cb.tar.gz
- Add a small hack for worker MPM [1]
(worker MPM with this hack seems to work without visible problems. and still requires -DFORCE_THREADING_MPM to build for worker MPM.) - Fix plist for worker MPM - Comment out fancy modules from default httpd.conf Tested on: ref5.freebsd.org, several 4-stable machines [1]
Diffstat (limited to 'www/apache21/Makefile')
-rw-r--r--www/apache21/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/www/apache21/Makefile b/www/apache21/Makefile
index ce5b5b6..873d8af 100644
--- a/www/apache21/Makefile
+++ b/www/apache21/Makefile
@@ -73,13 +73,22 @@ PLIST_SUB+= SUEXEC="@comment "
PKGNAMESUFFIX= -${WITH_MPM}
WITH_THREADS= yes
.if !defined(FORCE_THREADING_MPM)
-FORBIDDEN= "doesn't work with threading MPMs on FreeBSD. If you are\
- brave enough, make again with FORCE_THREADING_MPM=yes"
+FORBIDDEN= "doesn't support threads on FreeBSD, officially. If you are\
+ prepared to risk unintended problems, make again with\
+ -DFORCE_THREADING_MPM"
.endif
+.if ${WITH_MPM} == "worker"
+PLIST_SUB+= PREFORK="@comment " WORKER=""
+.else
+PLIST_SUB+= PREFORK="@comment " WORKER="@comment "
+.endif
+.else
+PLIST_SUB+= PREFORK="" WORKER="@comment "
.endif
.if defined(WITH_THREADS)
CONFIGURE_ARGS+= --enable-threads
+CFLAGS+= -DFREEBSD_THREAD_HACK
.endif
.if !defined(WITHOUT_SSL) && exists(/usr/lib/libcrypto.so)
OpenPOWER on IntegriCloud