Enable MPMs select.

It is disabled by my misunderstanding.
The default binary is not changed.
This commit is contained in:
ryoon 2014-02-22 17:28:34 +00:00
parent f6eef36f27
commit cb82777c9e
3 changed files with 16 additions and 14 deletions

View file

@ -1,8 +1,8 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1 2012/08/26 12:37:34 ryoon Exp $
$NetBSD: MESSAGE,v 1.2 2014/02/22 17:28:34 ryoon Exp $
After apache-2.4.3, --enable-mpms-shared='event prefork worker' is
passed to configure script, then three multi-process model is built
After apache-2.4.3, --enable-mpms-shared='${MPMS}' is
passed to configure script, then these multi-process model is built
and you can select the model in configuraton file.
The mod_cgi.so module conflicts with non-prefork multi-process model,

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.12 2013/12/01 10:02:34 ryoon Exp $
@comment $NetBSD: PLIST,v 1.13 2014/02/22 17:28:34 ryoon Exp $
bin/ab
bin/apxs
bin/dbmmanage
@ -133,9 +133,9 @@ ${PLIST.lua}lib/httpd/mod_lua.so
lib/httpd/mod_macro.so
lib/httpd/mod_mime.so
lib/httpd/mod_mime_magic.so
lib/httpd/mod_mpm_event.so
lib/httpd/mod_mpm_prefork.so
lib/httpd/mod_mpm_worker.so
${PLIST.event}lib/httpd/mod_mpm_event.so
${PLIST.prefork}lib/httpd/mod_mpm_prefork.so
${PLIST.worker}lib/httpd/mod_mpm_worker.so
lib/httpd/mod_negotiation.so
${PLIST.privileges}lib/httpd/mod_privileges.so
lib/httpd/mod_proxy.so

View file

@ -1,8 +1,9 @@
# $NetBSD: options.mk,v 1.8 2013/06/04 22:08:20 fhajny Exp $
# $NetBSD: options.mk,v 1.9 2014/02/22 17:28:34 ryoon Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.apache
PKG_SUPPORTED_OPTIONS= lua suexec apache-mpm-event apache-mpm-prefork apache-mpm-worker
PKG_SUGGESTED_OPTIONS= apache-mpm-prefork
PKG_SUGGESTED_OPTIONS= apache-mpm-event apache-mpm-prefork \
apache-mpm-worker
.if ${OPSYS} == "SunOS" && !empty(OS_VERSION:M5.1[0-9])
PKG_SUPPORTED_OPTIONS+= privileges
@ -24,23 +25,24 @@ PKG_SUPPORTED_OPTIONS+= privileges
#
PLIST_VARS+= worker prefork event
CONFIGURE_ARGS+= --enable-mpms-shared='event prefork worker'
.if !empty(PKG_OPTIONS:Mapache-mpm-event)
CONFIGURE_ARGS+= --with-mpm=event
MPMS+= event
PLIST.event= yes
.endif
.if !empty(PKG_OPTIONS:Mapache-mpm-worker)
CONFIGURE_ARGS+= --with-mpm=worker
MPMS+= worker
PLIST.worker= yes
.endif
.if !empty(PKG_OPTIONS:Mapache-mpm-prefork)
CONFIGURE_ARGS+= --with-mpm=prefork
MPMS+= prefork
PLIST.prefork= yes
.endif
CONFIGURE_ARGS+= --enable-mpms-shared='${MPMS}'
MESSAGE_SUBST+= MPMS=${MPMS:Q}
BUILD_DEFS+= APACHE_MODULES
PLIST_VARS+= suexec