diff options
author | Michael Stewart <vericgar@gentoo.org> | 2005-06-04 18:13:05 +0000 |
---|---|---|
committer | Michael Stewart <vericgar@gentoo.org> | 2005-06-04 18:13:05 +0000 |
commit | 347b61e78949da83c91d678de3c574381cd1b331 (patch) | |
tree | 450ac03868109a299c1deee4f265fe157547464c /eclass/apache-module.eclass | |
parent | Fixing a bug with MPMs (again). (diff) | |
download | historical-347b61e78949da83c91d678de3c574381cd1b331.tar.gz historical-347b61e78949da83c91d678de3c574381cd1b331.tar.bz2 historical-347b61e78949da83c91d678de3c574381cd1b331.zip |
Fixing safe MPM check for use of ${ROOT}
Diffstat (limited to 'eclass/apache-module.eclass')
-rw-r--r-- | eclass/apache-module.eclass | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/eclass/apache-module.eclass b/eclass/apache-module.eclass index 50e7c77a68aa..d21269a919ed 100644 --- a/eclass/apache-module.eclass +++ b/eclass/apache-module.eclass @@ -1,7 +1,7 @@ # Copyright 2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later # Author Michael Tindal <urilith@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/eclass/apache-module.eclass,v 1.8 2005/06/04 17:59:27 urilith Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/apache-module.eclass,v 1.9 2005/06/04 18:13:05 vericgar Exp $ ECLASS=apache-module INHERITED="$INHERITED $ECLASS" @@ -235,13 +235,11 @@ apache2_pkg_setup() { if [ -n "${APACHE2_SAFE_MPMS}" ]; then - INSTALLED_MPM="$(apxs2 -q MPM_NAME)" + INSTALLED_MPM="$(${ROOT}/usr/sbin/apxs2 -q MPM_NAME)" - if ! hasq ${INSTALLED_MPM} ${APACHE2_SAFE_MPMS} ; then - INSTALLED_MPM_UNSAFE="yes" - else - INSTALLED_MPM_SAFE="yes" - fi + if hasq ${INSTALLED_MPM} ${APACHE2_SAFE_MPMS} ; then + INSTALLED_MPM_SAFE="yes" + fi if [ -z "${INSTALLED_MPM_SAFE}" ] ; then eerror "The module you are trying to install (${PN})" @@ -334,7 +332,7 @@ apache2_pkg_postinst() { if [ -n "${APACHE2_SAFE_MPMS}" ]; then - INSTALLED_MPM="$(apxs2 -q MPM_NAME)" + INSTALLED_MPM="$(${ROOT}/usr/sbin/apxs2 -q MPM_NAME)" if ! hasq ${INSTALLED_MPM} ${APACHE2_SAFE_MPMS} ; then INSTALLED_MPM_UNSAFE="${INSTALLED_MPM_UNSAFE} ${mpm}" |