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

Diff of /eclass/depend.apache.eclass

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

Revision 1.23 Revision 1.27
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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/depend.apache.eclass,v 1.23 2005/09/19 00:03:55 vericgar Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.27 2006/07/05 14:12:51 chtekk Exp $
4 4
5inherit multilib 5inherit multilib
6
7# This eclass handles depending on apache in a sane way and providing
8# information about where certain interfaces are located.
9
10# NOTE: If you use this, be sure you use the need_* call after you have
11# defined DEPEND and RDEPEND. Also note that you can not rely on the
12# automatic RDEPEND=DEPEND that portage does if you use this eclass.
13# See bug 107127 for more information.
6 14
7###### 15######
8## Apache Common Variables 16## Apache Common Variables
9## 17##
10## These are internal variables used by this, and other apache-related eclasses, 18## These are internal variables used by this, and other apache-related eclasses,
42#### 50####
43## APACHE1_BASEDIR, APACHE2_BASEDIR 51## APACHE1_BASEDIR, APACHE2_BASEDIR
44## 52##
45## Paths to the server root directories 53## Paths to the server root directories
46#### 54####
47#APACHE1_BASEDIR="/usr/$(get_libdir)/apache" 55APACHE1_BASEDIR="/usr/$(get_libdir)/apache"
48#APACHE2_BASEDIR="/usr/$(get_libdir)/apache2" 56APACHE2_BASEDIR="/usr/$(get_libdir)/apache2"
49APACHE1_BASEDIR="/usr/lib/apache"
50APACHE2_BASEDIR="/usr/lib/apache2"
51 57
52#### 58####
53## APACHE1_CONFDIR, APACHE2_CONFDIR 59## APACHE1_CONFDIR, APACHE2_CONFDIR
54## 60##
55## Paths to the configuration file directories (usually under 61## Paths to the configuration file directories (usually under
200want_apache() { 206want_apache() {
201 debug-print-function want_apache 207 debug-print-function want_apache
202 208
203 IUSE="${IUSE} apache apache2" 209 IUSE="${IUSE} apache apache2"
204 DEPEND="${DEPEND} ${WANT_APACHE_DEPEND}" 210 DEPEND="${DEPEND} ${WANT_APACHE_DEPEND}"
205 RDEPEND="${DEPEND} ${WANT_APACHE_DEPEND}" 211 RDEPEND="${RDEPEND} ${WANT_APACHE_DEPEND}"
206 if useq apache2 ; then 212 if useq apache2 ; then
207 uses_apache2 213 uses_apache2
208 elif useq apache ; then 214 elif useq apache ; then
209 uses_apache1 215 uses_apache1
210 else 216 else

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.27

  ViewVC Help
Powered by ViewVC 1.1.20