| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/apache-2.eclass,v 1.3 2007/12/15 14:00:19 hollow Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/apache-2.eclass,v 1.4 2007/12/20 15:53:19 zmedico Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: apache-2 |
5 | # @ECLASS: apache-2 |
| 6 | # @MAINTAINER: apache-devs@gentoo.org |
6 | # @MAINTAINER: apache-devs@gentoo.org |
| 7 | # @BLURB: Provides a common set of functions for >=apache-2.2* ebuilds |
7 | # @BLURB: Provides a common set of functions for >=apache-2.2* ebuilds |
| 8 | # @DESCRIPTION: |
8 | # @DESCRIPTION: |
| … | |
… | |
| 90 | # @FUNCTION: setup_mpm |
90 | # @FUNCTION: setup_mpm |
| 91 | # @DESCRIPTION: |
91 | # @DESCRIPTION: |
| 92 | # This internal function makes sure that only one of APACHE2_MPMS was selected |
92 | # This internal function makes sure that only one of APACHE2_MPMS was selected |
| 93 | # or a default based on USE=threads is selected if APACHE2_MPMS is empty |
93 | # or a default based on USE=threads is selected if APACHE2_MPMS is empty |
| 94 | setup_mpm() { |
94 | setup_mpm() { |
|
|
95 | MY_MPM="" |
| 95 | for x in ${IUSE_MPMS} ; do |
96 | for x in ${IUSE_MPMS} ; do |
| 96 | if use apache2_mpms_${x} ; then |
97 | if use apache2_mpms_${x} ; then |
| 97 | if [[ -z "${MY_MPM}" ]] ; then |
98 | if [[ -z "${MY_MPM}" ]] ; then |
| 98 | MY_MPM=${x} |
99 | MY_MPM=${x} |
| 99 | elog |
100 | elog |