/[gentoo-x86]/eclass/apache-module.eclass
Gentoo

Diff of /eclass/apache-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 Revision 1.7
1# Copyright 2004 Gentoo Foundation 1# Copyright 2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License, v2 or later 2# Distributed under the terms of the GNU General Public License, v2 or later
3# Author Michael Tindal <urilith@gentoo.org> 3# Author Michael Tindal <urilith@gentoo.org>
4# $Header: /var/cvsroot/gentoo-x86/eclass/apache-module.eclass,v 1.6 2005/06/01 21:10:18 urilith Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/apache-module.eclass,v 1.7 2005/06/01 22:54:45 urilith Exp $
5ECLASS=apache-module 5ECLASS=apache-module
6INHERITED="$INHERITED $ECLASS" 6INHERITED="$INHERITED $ECLASS"
7 7
8inherit depend.apache 8inherit depend.apache
9 9
331 einfo 331 einfo
332 fi 332 fi
333 333
334 if [ -n "${APACHE2_SAFE_MPMS}" ]; then 334 if [ -n "${APACHE2_SAFE_MPMS}" ]; then
335 335
336 INSTALLED_MPMS=$(ls ${ROOT}/usr/sbin/apache2.*) 336 INSTALLED_MPM="$(apxs2 -q MPM_NAME)"
337 337
338 for mpm in ${INSTALLED_MPMS}; do
339 # strip everything up to and including 'apache2.' from ${mpm}
340 mpm=${mpm#*apache2.}
341
342 if ! hasq ${mpm} ${APACHE2_SAFE_MPMS} ; then 338 if ! hasq ${INSTALLED_MPM} ${APACHE2_SAFE_MPMS} ; then
343 INSTALLED_MPM_UNSAFE="${INSTALLED_MPM_UNSAFE} ${mpm}" 339 INSTALLED_MPM_UNSAFE="${INSTALLED_MPM_UNSAFE} ${mpm}"
344 else 340 else
345 INSTALLED_MPM_SAFE="${INSTALLED_MPM_SAFE} ${mpm}" 341 INSTALLED_MPM_SAFE="${INSTALLED_MPM_SAFE} ${mpm}"
346 fi 342 fi
347 done 343
348
349 if [ -n "${INSTALLED_MPM_UNSAFE}" ] ; then 344 if [ -n "${INSTALLED_MPM_UNSAFE}" ] ; then
350 ewarn "You have one or more MPMs installed that will not work with" 345 ewarn "You have one or more MPMs installed that will not work with"
351 ewarn "this module (${PN}). Please make sure that you only enable" 346 ewarn "this module (${PN}). Please make sure that you only enable"
352 ewarn "this module if you are using one of the following MPMs:" 347 ewarn "this module if you are using one of the following MPMs:"
353 ewarn " ${INSTALLED_MPM_SAFE}" 348 ewarn " ${INSTALLED_MPM_SAFE}"

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20