/[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.7 Revision 1.8
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.7 2005/06/01 22:54:45 urilith Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/apache-module.eclass,v 1.8 2005/06/04 17:59:27 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 for mpm in ${APACHE2_SAFE_MPMS}; do 238 INSTALLED_MPM="$(apxs2 -q MPM_NAME)"
239 MPM_USE="mpm-${mpm}" 239
240 if built_with_use apache ${MPM_USE}; then 240 if ! hasq ${INSTALLED_MPM} ${APACHE2_SAFE_MPMS} ; then
241 INSTALLED_MPM_SAFE="yes" 241 INSTALLED_MPM_UNSAFE="yes"
242 fi 242 else
243 done 243 INSTALLED_MPM_SAFE="yes"
244 fi
244 245
245 if [ -z "${INSTALLED_MPM_SAFE}" ] ; then 246 if [ -z "${INSTALLED_MPM_SAFE}" ] ; then
246 eerror "The module you are trying to install (${PN})" 247 eerror "The module you are trying to install (${PN})"
247 eerror "will only work with one of the following MPMs:" 248 eerror "will only work with one of the following MPMs:"
248 eerror " ${APACHE2_SAFE_MPMS}" 249 eerror " ${APACHE2_SAFE_MPMS}"

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

  ViewVC Help
Powered by ViewVC 1.1.20