/[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.5 Revision 1.6
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.5 2005/02/26 18:17:42 vericgar Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/apache-module.eclass,v 1.6 2005/06/01 21:10:18 urilith Exp $
5ECLASS=apache-module 5ECLASS=apache-module
6INHERITED="$INHERITED $ECLASS" 6INHERITED="$INHERITED $ECLASS"
7 7
8inherit depend.apache 8inherit depend.apache
9 9
233apache2_pkg_setup() { 233apache2_pkg_setup() {
234 debug-print-function apache2_pkg_setup 234 debug-print-function apache2_pkg_setup
235 235
236 if [ -n "${APACHE2_SAFE_MPMS}" ]; then 236 if [ -n "${APACHE2_SAFE_MPMS}" ]; then
237 237
238 INSTALLED_MPMS=$(ls ${ROOT}/usr/sbin/apache2.*)
239
240 for mpm in ${INSTALLED_MPMS}; do 238 for mpm in ${APACHE2_SAFE_MPMS}; do
241 # strip everything up to and including 'apache2.' from ${mpm} 239 MPM_USE="mpm-${mpm}"
242 mpm=${mpm#*apache2.} 240 if built_with_use apache ${MPM_USE}; then
243 241 INSTALLED_MPM_SAFE="yes"
244 if hasq ${mpm} ${APACHE2_SAFE_MPMS} ; then
245 INSTALLED_MPM_SAFE="${INSTALLED_MPM_SAFE} ${mpm}"
246 fi 242 fi
247 done 243 done
248 244
249 if [ -z "${INSTALLED_MPM_SAFE}" ] ; then 245 if [ -z "${INSTALLED_MPM_SAFE}" ] ; then
250 eerror "The module you are trying to install (${PN})" 246 eerror "The module you are trying to install (${PN})"

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

  ViewVC Help
Powered by ViewVC 1.1.20