/[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.40 Revision 1.41
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/depend.apache.eclass,v 1.40 2008/02/06 08:33:47 hollow Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.41 2008/02/06 13:16:17 hollow Exp $
4 4
5# @ECLASS: depend.apache.eclass 5# @ECLASS: depend.apache.eclass
6# @MAINTAINER: apache-devs@gentoo.org 6# @MAINTAINER: apache-devs@gentoo.org
7# @BLURB: Functions to allow ebuilds to depend on apache 7# @BLURB: Functions to allow ebuilds to depend on apache
8# @DESCRIPTION: 8# @DESCRIPTION:
46# Stores the version of apache we are going to be ebuilding. 46# Stores the version of apache we are going to be ebuilding.
47# This variable is set by the want/need_apache functions. 47# This variable is set by the want/need_apache functions.
48 48
49# @ECLASS-VARIABLE: APXS 49# @ECLASS-VARIABLE: APXS
50# @DESCRIPTION: 50# @DESCRIPTION:
51# Paths to the apxs tool. 51# Path to the apxs tool.
52# This variable is set by the want/need_apache functions. 52# This variable is set by the want/need_apache functions.
53 53
54# @ECLASS-VARIABLE: APACHE_BIN 54# @ECLASS-VARIABLE: APACHE_BIN
55# @DESCRIPTION: 55# @DESCRIPTION:
56# Path to the apache binary. 56# Path to the apache binary.
210 210
211 DEPEND="${DEPEND} ${APACHE2_2_DEPEND}" 211 DEPEND="${DEPEND} ${APACHE2_2_DEPEND}"
212 RDEPEND="${RDEPEND} ${APACHE2_2_DEPEND}" 212 RDEPEND="${RDEPEND} ${APACHE2_2_DEPEND}"
213 _init_apache2 213 _init_apache2
214} 214}
215
216# @FUNCTION: check_apache_threads
217# @USAGE: [myflag]
218# @DESCRIPTION:
219# An ebuild calls this to make sure thread-safety is enabled if apache has been
220# built with a threaded MPM. If the myflag parameter is not given it defaults to
221# threads.
222check_apache_threads() {
223 debug-print-function $FUNCNAME $*
224
225 if ! built_with_use www-servers/apache threads ; then
226 return
227 fi
228
229 local myflag="${1:-threads}"
230
231 if ! use ${myflag}; then
232 echo
233 eerror "You need to enable USE flag '${myflag}' to build a thread-safe version"
234 eerror "of ${CATEGORY}/${PN} for use with www-servers/apache"
235 die "Need missing USE flag '${myflag}'"
236 fi
237}

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

  ViewVC Help
Powered by ViewVC 1.1.20