01f9ddf20b
* prefork MPM: Run cleanups for final request when process exits gracefully to work around a flaw in apr-util. * mod_reqtimeout: Do not wrongly enforce timeouts for mod_proxy's backend connections and other protocol handlers (like mod_ftp). Enforce the timeout for AP_MODE_GETLINE. If there is a timeout, shorten the lingering close time from 30 to 2 seconds. * Proxy balancer: support setting error status according to HTTP response code from a backend. * mod_authnz_ldap: If AuthLDAPCharsetConfig is set, also convert the password to UTF-8. * core: check symlink ownership if both FollowSymlinks and SymlinksIfOwnerMatch are set * core: fix origin checking in SymlinksIfOwnerMatch * mod_headers: Enable multi-match-and-replace edit option * mod_log_config: Make ${cookie}C correctly match whole cookie names instead of substrings. * mod_dir, mod_negotiation: Pass the output filter information to newly created sub requests; as these are later on used as true requests with an internal redirect. This allows for mod_cache et.al. to trap the results of the redirect. * rotatelogs: Fix possible buffer overflow if admin configures a mongo log file path. * mod_ssl: Do not do overlapping memcpy. * vhost: A purely-numeric Host: header should not be treated as a port. * core: (re)-introduce -T commandline option to suppress documentroot check at startup.
69 lines
2.3 KiB
Makefile
69 lines
2.3 KiB
Makefile
# $NetBSD: options.mk,v 1.9 2010/11/01 17:28:49 adam Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.apache
|
|
PKG_OPTIONS_REQUIRED_GROUPS= mpm
|
|
PKG_OPTIONS_GROUP.mpm= apache-mpm-event apache-mpm-prefork apache-mpm-worker
|
|
PKG_SUPPORTED_OPTIONS= apache-shared-modules suexec
|
|
PKG_SUGGESTED_OPTIONS= apache-shared-modules apache-mpm-prefork
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
# Set the "Multi-Processing Model" used by Apache to handle requests.
|
|
# Valid values are:
|
|
# event multi-threaded based in worker, designed
|
|
# to allow more requests to be served
|
|
# simultaneously by passing off some processing
|
|
# work to supporting threads.
|
|
# BEWARE: does not work with SSL or input filters.
|
|
# prefork non-threaded, pre-forking web server
|
|
# worker hybrid multi-threaded multi-process web server
|
|
#
|
|
PLIST_VARS+= worker
|
|
.if !empty(PKG_OPTIONS:Mapache-mpm-event)
|
|
CONFIGURE_ARGS+= --with-mpm=event
|
|
PLIST.worker= yes
|
|
.elif !empty(PKG_OPTIONS:Mapache-mpm-worker)
|
|
CONFIGURE_ARGS+= --with-mpm=worker
|
|
PLIST.worker= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --with-mpm=prefork
|
|
.endif
|
|
|
|
# APACHE_MODULES are the modules that are linked statically into the
|
|
# apache httpd executable.
|
|
#
|
|
PLIST_VARS+= all-shared
|
|
.if !empty(PKG_OPTIONS:Mapache-shared-modules)
|
|
CONFIGURE_ARGS+= --enable-mods-shared=${DFLT_APACHE_MODULES:Q}
|
|
PLIST.all-shared= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --enable-modules=${APACHE_MODULES:Q}
|
|
.endif
|
|
BUILD_DEFS+= APACHE_MODULES
|
|
|
|
PLIST_VARS+= suexec
|
|
.if !empty(PKG_OPTIONS:Msuexec)
|
|
BUILD_DEFS+= APACHE_SUEXEC_PATH
|
|
BUILD_DEFS+= APACHE_SUEXEC_DOCROOT APACHE_SUEXEC_LOGFILE
|
|
|
|
APACHE_SUEXEC_DOCROOT?= ${PREFIX}/share/httpd/htdocs
|
|
APACHE_SUEXEC_PATH= /bin:/usr/bin:${PREFIX}/bin:/usr/local/bin
|
|
APACHE_SUEXEC_LOGFILE?= ${VARBASE}/log/httpd/suexec.log
|
|
APACHE_SUEXEC_CONFIGURE_ARGS+= \
|
|
--with-suexec-bin=${PREFIX}/sbin/suexec \
|
|
--with-suexec-caller=${APACHE_USER} \
|
|
--with-suexec-safepath='${APACHE_SUEXEC_PATH:Q}' \
|
|
--with-suexec-docroot=${APACHE_SUEXEC_DOCROOT:Q} \
|
|
--with-suexec-logfile=${APACHE_SUEXEC_LOGFILE}
|
|
|
|
. if !empty(PKG_OPTIONS:Mapache-shared-modules)
|
|
CONFIGURE_ARGS+= --enable-modules="all suexec"
|
|
. else
|
|
APACHE_MODULES+= suexec
|
|
. endif
|
|
CONFIGURE_ARGS+= ${APACHE_SUEXEC_CONFIGURE_ARGS:M--with-suexec-*}
|
|
BUILD_DEFS+= APACHE_SUEXEC_CONFIGURE_ARGS
|
|
BUILD_TARGET= all suexec
|
|
PLIST.suexec= yes
|
|
SPECIAL_PERMS+= sbin/suexec ${REAL_ROOT_USER} ${APACHE_GROUP} 4510
|
|
.endif
|