| 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.5 2007/12/31 23:46:24 hollow 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 |
| … | |
… | |
| 449 | # @FUNCTION: apache-2_src_install |
450 | # @FUNCTION: apache-2_src_install |
| 450 | # @DESCRIPTION: |
451 | # @DESCRIPTION: |
| 451 | # This function runs emake install and generates, install and adapts the gentoo |
452 | # This function runs emake install and generates, install and adapts the gentoo |
| 452 | # specific configuration files found in the tarball |
453 | # specific configuration files found in the tarball |
| 453 | apache-2_src_install() { |
454 | apache-2_src_install() { |
| 454 | emake DESTDIR="${D}" install || die "emake install failed" |
455 | make DESTDIR="${D}" install || die "make install failed" |
| 455 | |
456 | |
| 456 | # install our configuration files |
457 | # install our configuration files |
| 457 | keepdir /etc/apache2/vhosts.d |
458 | keepdir /etc/apache2/vhosts.d |
| 458 | keepdir /etc/apache2/modules.d |
459 | keepdir /etc/apache2/modules.d |
| 459 | |
460 | |