diff options
author | ryoon <ryoon@pkgsrc.org> | 2012-04-13 18:50:48 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2012-04-13 18:50:48 +0000 |
commit | d1ef42170a386ef32ee90c7fed46601e8d6bece5 (patch) | |
tree | 51e37be287a6e18a7abdb19c97d6a35d192b7d1d /www/apache24/options.mk | |
parent | a30ae1798aede6b36c0f4a13bc514d08003b1fb2 (diff) | |
download | pkgsrc-d1ef42170a386ef32ee90c7fed46601e8d6bece5.tar.gz |
Import apache-2.4.1 as www/apache24.
The Apache HTTP Server Project is an effort to develop and maintain an
open-source HTTP server for various modern desktop and server operating
systems, such as UNIX and Windows NT. The goal of this project is to
provide a secure, efficient and extensible server which provides HTTP
services in sync with the current HTTP standards.
This package tracks 2.4.x release.
Diffstat (limited to 'www/apache24/options.mk')
-rw-r--r-- | www/apache24/options.mk | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/www/apache24/options.mk b/www/apache24/options.mk new file mode 100644 index 00000000000..ab6af53cd60 --- /dev/null +++ b/www/apache24/options.mk @@ -0,0 +1,59 @@ +# $NetBSD: options.mk,v 1.1.1.1 2012/04/13 18:50:49 ryoon 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= suexec +PKG_SUGGESTED_OPTIONS= 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 + +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 |