Enable MPMs select. It is disabled by my misunderstanding. The default binary is not changed.diff -r1.1 -r1.2 pkgsrc/www/apache24/MESSAGE
(ryoon)
@@ -1,11 +1,11 @@ | @@ -1,11 +1,11 @@ | |||
1 | =========================================================================== | 1 | =========================================================================== | |
2 | $NetBSD: MESSAGE,v 1.1 2012/08/26 12:37:34 ryoon Exp $ | 2 | $NetBSD: MESSAGE,v 1.2 2014/02/22 17:28:34 ryoon Exp $ | |
3 | 3 | |||
4 | After apache-2.4.3, --enable-mpms-shared='event prefork worker' is | 4 | After apache-2.4.3, --enable-mpms-shared='${MPMS}' is | |
5 | passed to configure script, then three multi-process model is built | 5 | passed to configure script, then these multi-process model is built | |
6 | and you can select the model in configuraton file. | 6 | and you can select the model in configuraton file. | |
7 | 7 | |||
8 | The mod_cgi.so module conflicts with non-prefork multi-process model, | 8 | The mod_cgi.so module conflicts with non-prefork multi-process model, | |
9 | and mod_cgi.so module is not built anymore. | 9 | and mod_cgi.so module is not built anymore. | |
10 | You can use mod_cgid.so module instead. | 10 | You can use mod_cgid.so module instead. | |
11 | =========================================================================== | 11 | =========================================================================== |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.12 2013/12/01 10:02:34 ryoon Exp $ | 1 | @comment $NetBSD: PLIST,v 1.13 2014/02/22 17:28:34 ryoon Exp $ | |
2 | bin/ab | 2 | bin/ab | |
3 | bin/apxs | 3 | bin/apxs | |
4 | bin/dbmmanage | 4 | bin/dbmmanage | |
5 | bin/htdbm | 5 | bin/htdbm | |
6 | bin/htdigest | 6 | bin/htdigest | |
7 | bin/htpasswd | 7 | bin/htpasswd | |
8 | bin/httxt2dbm | 8 | bin/httxt2dbm | |
9 | bin/logresolve | 9 | bin/logresolve | |
10 | bin/mkcert | 10 | bin/mkcert | |
11 | include/httpd/ap_compat.h | 11 | include/httpd/ap_compat.h | |
12 | include/httpd/ap_config.h | 12 | include/httpd/ap_config.h | |
13 | include/httpd/ap_config_auto.h | 13 | include/httpd/ap_config_auto.h | |
14 | include/httpd/ap_config_layout.h | 14 | include/httpd/ap_config_layout.h | |
@@ -123,29 +123,29 @@ lib/httpd/mod_info.so | @@ -123,29 +123,29 @@ lib/httpd/mod_info.so | |||
123 | lib/httpd/mod_lbmethod_bybusyness.so | 123 | lib/httpd/mod_lbmethod_bybusyness.so | |
124 | lib/httpd/mod_lbmethod_byrequests.so | 124 | lib/httpd/mod_lbmethod_byrequests.so | |
125 | lib/httpd/mod_lbmethod_bytraffic.so | 125 | lib/httpd/mod_lbmethod_bytraffic.so | |
126 | lib/httpd/mod_lbmethod_heartbeat.so | 126 | lib/httpd/mod_lbmethod_heartbeat.so | |
127 | ${PLIST.ldap}lib/httpd/mod_ldap.so | 127 | ${PLIST.ldap}lib/httpd/mod_ldap.so | |
128 | lib/httpd/mod_log_config.so | 128 | lib/httpd/mod_log_config.so | |
129 | lib/httpd/mod_log_debug.so | 129 | lib/httpd/mod_log_debug.so | |
130 | lib/httpd/mod_log_forensic.so | 130 | lib/httpd/mod_log_forensic.so | |
131 | lib/httpd/mod_logio.so | 131 | lib/httpd/mod_logio.so | |
132 | ${PLIST.lua}lib/httpd/mod_lua.so | 132 | ${PLIST.lua}lib/httpd/mod_lua.so | |
133 | lib/httpd/mod_macro.so | 133 | lib/httpd/mod_macro.so | |
134 | lib/httpd/mod_mime.so | 134 | lib/httpd/mod_mime.so | |
135 | lib/httpd/mod_mime_magic.so | 135 | lib/httpd/mod_mime_magic.so | |
136 | lib/httpd/mod_mpm_event.so | 136 | ${PLIST.event}lib/httpd/mod_mpm_event.so | |
137 | lib/httpd/mod_mpm_prefork.so | 137 | ${PLIST.prefork}lib/httpd/mod_mpm_prefork.so | |
138 | lib/httpd/mod_mpm_worker.so | 138 | ${PLIST.worker}lib/httpd/mod_mpm_worker.so | |
139 | lib/httpd/mod_negotiation.so | 139 | lib/httpd/mod_negotiation.so | |
140 | ${PLIST.privileges}lib/httpd/mod_privileges.so | 140 | ${PLIST.privileges}lib/httpd/mod_privileges.so | |
141 | lib/httpd/mod_proxy.so | 141 | lib/httpd/mod_proxy.so | |
142 | lib/httpd/mod_proxy_ajp.so | 142 | lib/httpd/mod_proxy_ajp.so | |
143 | lib/httpd/mod_proxy_balancer.so | 143 | lib/httpd/mod_proxy_balancer.so | |
144 | lib/httpd/mod_proxy_connect.so | 144 | lib/httpd/mod_proxy_connect.so | |
145 | lib/httpd/mod_proxy_express.so | 145 | lib/httpd/mod_proxy_express.so | |
146 | lib/httpd/mod_proxy_fcgi.so | 146 | lib/httpd/mod_proxy_fcgi.so | |
147 | lib/httpd/mod_proxy_fdpass.so | 147 | lib/httpd/mod_proxy_fdpass.so | |
148 | lib/httpd/mod_proxy_ftp.so | 148 | lib/httpd/mod_proxy_ftp.so | |
149 | lib/httpd/mod_proxy_http.so | 149 | lib/httpd/mod_proxy_http.so | |
150 | lib/httpd/mod_proxy_scgi.so | 150 | lib/httpd/mod_proxy_scgi.so | |
151 | lib/httpd/mod_proxy_wstunnel.so | 151 | lib/httpd/mod_proxy_wstunnel.so |
@@ -1,56 +1,58 @@ | @@ -1,56 +1,58 @@ | |||
1 | # $NetBSD: options.mk,v 1.8 2013/06/04 22:08:20 fhajny Exp $ | 1 | # $NetBSD: options.mk,v 1.9 2014/02/22 17:28:34 ryoon Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.apache | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.apache | |
4 | PKG_SUPPORTED_OPTIONS= lua suexec apache-mpm-event apache-mpm-prefork apache-mpm-worker | 4 | PKG_SUPPORTED_OPTIONS= lua suexec apache-mpm-event apache-mpm-prefork apache-mpm-worker | |
5 | PKG_SUGGESTED_OPTIONS= apache-mpm-prefork | 5 | PKG_SUGGESTED_OPTIONS= apache-mpm-event apache-mpm-prefork \ | |
6 | apache-mpm-worker | |||
6 | 7 | |||
7 | .if ${OPSYS} == "SunOS" && !empty(OS_VERSION:M5.1[0-9]) | 8 | .if ${OPSYS} == "SunOS" && !empty(OS_VERSION:M5.1[0-9]) | |
8 | PKG_SUPPORTED_OPTIONS+= privileges | 9 | PKG_SUPPORTED_OPTIONS+= privileges | |
9 | # Disabled until DTrace support is fully implemented/fixed | 10 | # Disabled until DTrace support is fully implemented/fixed | |
10 | # PKG_SUPPORTED_OPTIONS+= dtrace | 11 | # PKG_SUPPORTED_OPTIONS+= dtrace | |
11 | .endif | 12 | .endif | |
12 | 13 | |||
13 | .include "../../mk/bsd.options.mk" | 14 | .include "../../mk/bsd.options.mk" | |
14 | 15 | |||
15 | # Set the "Multi-Processing Model" used by Apache to handle requests. | 16 | # Set the "Multi-Processing Model" used by Apache to handle requests. | |
16 | # Valid values are: | 17 | # Valid values are: | |
17 | # event multi-threaded based in worker, designed | 18 | # event multi-threaded based in worker, designed | |
18 | # to allow more requests to be served | 19 | # to allow more requests to be served | |
19 | # simultaneously by passing off some processing | 20 | # simultaneously by passing off some processing | |
20 | # work to supporting threads. | 21 | # work to supporting threads. | |
21 | # BEWARE: does not work with SSL or input filters. | 22 | # BEWARE: does not work with SSL or input filters. | |
22 | # prefork non-threaded, pre-forking web server | 23 | # prefork non-threaded, pre-forking web server | |
23 | # worker hybrid multi-threaded multi-process web server | 24 | # worker hybrid multi-threaded multi-process web server | |
24 | # | 25 | # | |
25 | PLIST_VARS+= worker prefork event | 26 | PLIST_VARS+= worker prefork event | |
26 | 27 | |||
27 | CONFIGURE_ARGS+= --enable-mpms-shared='event prefork worker' | |||
28 | ||||
29 | .if !empty(PKG_OPTIONS:Mapache-mpm-event) | 28 | .if !empty(PKG_OPTIONS:Mapache-mpm-event) | |
30 | CONFIGURE_ARGS+= --with-mpm=event | 29 | MPMS+= event | |
31 | PLIST.event= yes | 30 | PLIST.event= yes | |
32 | .endif | 31 | .endif | |
33 | 32 | |||
34 | .if !empty(PKG_OPTIONS:Mapache-mpm-worker) | 33 | .if !empty(PKG_OPTIONS:Mapache-mpm-worker) | |
35 | CONFIGURE_ARGS+= --with-mpm=worker | 34 | MPMS+= worker | |
36 | PLIST.worker= yes | 35 | PLIST.worker= yes | |
37 | .endif | 36 | .endif | |
38 | 37 | |||
39 | .if !empty(PKG_OPTIONS:Mapache-mpm-prefork) | 38 | .if !empty(PKG_OPTIONS:Mapache-mpm-prefork) | |
40 | CONFIGURE_ARGS+= --with-mpm=prefork | 39 | MPMS+= prefork | |
41 | PLIST.prefork= yes | 40 | PLIST.prefork= yes | |
42 | .endif | 41 | .endif | |
43 | 42 | |||
43 | CONFIGURE_ARGS+= --enable-mpms-shared='${MPMS}' | |||
44 | MESSAGE_SUBST+= MPMS=${MPMS:Q} | |||
45 | ||||
44 | BUILD_DEFS+= APACHE_MODULES | 46 | BUILD_DEFS+= APACHE_MODULES | |
45 | 47 | |||
46 | PLIST_VARS+= suexec | 48 | PLIST_VARS+= suexec | |
47 | .if !empty(PKG_OPTIONS:Msuexec) | 49 | .if !empty(PKG_OPTIONS:Msuexec) | |
48 | BUILD_DEFS+= APACHE_SUEXEC_PATH | 50 | BUILD_DEFS+= APACHE_SUEXEC_PATH | |
49 | BUILD_DEFS+= APACHE_SUEXEC_DOCROOT APACHE_SUEXEC_LOGFILE | 51 | BUILD_DEFS+= APACHE_SUEXEC_DOCROOT APACHE_SUEXEC_LOGFILE | |
50 | 52 | |||
51 | APACHE_SUEXEC_DOCROOT?= ${PREFIX}/share/httpd/htdocs | 53 | APACHE_SUEXEC_DOCROOT?= ${PREFIX}/share/httpd/htdocs | |
52 | APACHE_SUEXEC_PATH= /bin:/usr/bin:${PREFIX}/bin:/usr/local/bin | 54 | APACHE_SUEXEC_PATH= /bin:/usr/bin:${PREFIX}/bin:/usr/local/bin | |
53 | APACHE_SUEXEC_LOGFILE?= ${VARBASE}/log/httpd/suexec.log | 55 | APACHE_SUEXEC_LOGFILE?= ${VARBASE}/log/httpd/suexec.log | |
54 | APACHE_SUEXEC_CONFIGURE_ARGS+= \ | 56 | APACHE_SUEXEC_CONFIGURE_ARGS+= \ | |
55 | --with-suexec-bin=${PREFIX}/sbin/suexec \ | 57 | --with-suexec-bin=${PREFIX}/sbin/suexec \ | |
56 | --with-suexec-caller=${APACHE_USER} \ | 58 | --with-suexec-caller=${APACHE_USER} \ |