/[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.9
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.9 2005/06/04 18:13:05 vericgar 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="$(${ROOT}/usr/sbin/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_SAFE="yes"
242 fi 242 fi
243 done
244 243
245 if [ -z "${INSTALLED_MPM_SAFE}" ] ; then 244 if [ -z "${INSTALLED_MPM_SAFE}" ] ; then
246 eerror "The module you are trying to install (${PN})" 245 eerror "The module you are trying to install (${PN})"
247 eerror "will only work with one of the following MPMs:" 246 eerror "will only work with one of the following MPMs:"
248 eerror " ${APACHE2_SAFE_MPMS}" 247 eerror " ${APACHE2_SAFE_MPMS}"
331 einfo 330 einfo
332 fi 331 fi
333 332
334 if [ -n "${APACHE2_SAFE_MPMS}" ]; then 333 if [ -n "${APACHE2_SAFE_MPMS}" ]; then
335 334
336 INSTALLED_MPM="$(apxs2 -q MPM_NAME)" 335 INSTALLED_MPM="$(${ROOT}/usr/sbin/apxs2 -q MPM_NAME)"
337 336
338 if ! hasq ${INSTALLED_MPM} ${APACHE2_SAFE_MPMS} ; then 337 if ! hasq ${INSTALLED_MPM} ${APACHE2_SAFE_MPMS} ; then
339 INSTALLED_MPM_UNSAFE="${INSTALLED_MPM_UNSAFE} ${mpm}" 338 INSTALLED_MPM_UNSAFE="${INSTALLED_MPM_UNSAFE} ${mpm}"
340 else 339 else
341 INSTALLED_MPM_SAFE="${INSTALLED_MPM_SAFE} ${mpm}" 340 INSTALLED_MPM_SAFE="${INSTALLED_MPM_SAFE} ${mpm}"

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

  ViewVC Help
Powered by ViewVC 1.1.20