summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2018-07-17 09:06:03 +0200
committerLars Wendler <polynomial-c@gentoo.org>2018-07-17 09:10:01 +0200
commit4f0e84d3a865427b76e86b79af792c5eb5b313b0 (patch)
tree934cfba634b77c64cb3976fec16f1c94784ae5d1 /eclass/apache-2.eclass
parentapache-2.eclass: Replaced versionator with eapi7-ver eclass. (diff)
downloadgentoo-4f0e84d3a865427b76e86b79af792c5eb5b313b0.tar.gz
gentoo-4f0e84d3a865427b76e86b79af792c5eb5b313b0.tar.bz2
gentoo-4f0e84d3a865427b76e86b79af792c5eb5b313b0.zip
apache-2.eclass: New suexec options.
Diffstat (limited to 'eclass/apache-2.eclass')
-rw-r--r--eclass/apache-2.eclass12
1 files changed, 10 insertions, 2 deletions
diff --git a/eclass/apache-2.eclass b/eclass/apache-2.eclass
index 56187720b5d3..ab09ce367c14 100644
--- a/eclass/apache-2.eclass
+++ b/eclass/apache-2.eclass
@@ -277,7 +277,9 @@ setup_modules() {
elog "through the following environment variables:"
elog
elog " SUEXEC_SAFEPATH: Default PATH for suexec (default: '${EPREFIX}/usr/local/bin:${EPREFIX}/usr/bin:${EPREFIX}/bin')"
- elog " SUEXEC_LOGFILE: Path to the suexec logfile (default: '${EPREFIX}/var/log/apache2/suexec_log')"
+ if { ver_test ${PV} -ge 2.4.34 && ! use suexec-syslog ; } || ver_test ${PV} -lt 2.4.34 ; then
+ elog " SUEXEC_LOGFILE: Path to the suexec logfile (default: '${EPREFIX}/var/log/apache2/suexec_log')"
+ fi
elog " SUEXEC_CALLER: Name of the user Apache is running as (default: apache)"
elog " SUEXEC_DOCROOT: Directory in which suexec will run scripts (default: '${EPREFIX}/var/www')"
elog " SUEXEC_MINUID: Minimum UID, which is allowed to run scripts via suexec (default: 1000)"
@@ -287,7 +289,13 @@ setup_modules() {
elog
MY_CONF+=( --with-suexec-safepath="${SUEXEC_SAFEPATH:-${EPREFIX}/usr/local/bin:${EPREFIX}/usr/bin:${EPREFIX}/bin}" )
- MY_CONF+=( --with-suexec-logfile="${SUEXEC_LOGFILE:-${EPREFIX}/var/log/apache2/suexec_log}" )
+ if ver_test ${PV} -ge 2.4.34 ; then
+ MY_CONF+=( $(use_with !suexec-syslog suexec-logfile "${SUEXEC_LOGFILE:-${EPREFIX}/var/log/apache2/suexec_log}") )
+ MY_CONF+=( $(use_with suexec-syslog) )
+ MY_CONF+=( $(use_with suexec-caps suexec-capabilities) )
+ else
+ MY_CONF+=( --with-suexec-logfile="${SUEXEC_LOGFILE:-${EPREFIX}/var/log/apache2/suexec_log}" )
+ fi
MY_CONF+=( --with-suexec-bin="${EPREFIX}/usr/sbin/suexec" )
MY_CONF+=( --with-suexec-userdir=${SUEXEC_USERDIR:-public_html} )
MY_CONF+=( --with-suexec-caller=${SUEXEC_CALLER:-apache} )