/[gentoo-x86]/eclass/apache-2.eclass
Gentoo

Diff of /eclass/apache-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.6
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.6 2008/01/16 10:47:45 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
94setup_mpm() { 94setup_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
453apache-2_src_install() { 454apache-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
478 newinitd "${GENTOO_PATCHDIR}"/init/apache2.initd apache2 479 newinitd "${GENTOO_PATCHDIR}"/init/apache2.initd apache2
479 480
480 # link apache2ctl to the init script 481 # link apache2ctl to the init script
481 dosym /etc/init.d/apache2 /usr/sbin/apache2ctl 482 dosym /etc/init.d/apache2 /usr/sbin/apache2ctl
482 483
483 # provide symlinks for all the stuff we no longer rename, bug 177697 484 # provide legacy symlink for apxs, bug 177697
484 for i in suexec apxs; do
485 dosym /usr/sbin/${i} /usr/sbin/${i}2 485 dosym /usr/sbin/apxs /usr/sbin/apxs2
486 done
487 486
488 # install some thirdparty scripts 487 # install some thirdparty scripts
489 exeinto /usr/sbin 488 exeinto /usr/sbin
490 use ssl && doexe "${GENTOO_PATCHDIR}"/scripts/gentestcrt.sh 489 use ssl && doexe "${GENTOO_PATCHDIR}"/scripts/gentestcrt.sh
491 490
509 508
510 # set some sane permissions for suexec 509 # set some sane permissions for suexec
511 if use suexec ; then 510 if use suexec ; then
512 fowners 0:apache /usr/sbin/suexec 511 fowners 0:apache /usr/sbin/suexec
513 fperms 4710 /usr/sbin/suexec 512 fperms 4710 /usr/sbin/suexec
513 # provide legacy symlink for suexec, bug 177697
514 dosym /usr/sbin/suexec /usr/sbin/suexec2
514 fi 515 fi
515 516
516 # empty dirs 517 # empty dirs
517 for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do 518 for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do
518 keepdir ${i} 519 keepdir ${i}

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

  ViewVC Help
Powered by ViewVC 1.1.20