summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2012-04-20 07:19:49 +0000
committerPatrick Lauer <patrick@gentoo.org>2012-04-20 07:19:49 +0000
commit012dcafbe919fc247a15feff4bf281cf8a0d4151 (patch)
treeb4ef2e0dc48267a1f79b3a0f791225cc780f36fa /eclass/depend.apache.eclass
parentVersion bump. (diff)
downloadhistorical-012dcafbe919fc247a15feff4bf281cf8a0d4151.tar.gz
historical-012dcafbe919fc247a15feff4bf281cf8a0d4151.tar.bz2
historical-012dcafbe919fc247a15feff4bf281cf8a0d4151.zip
Extending eclass for apache 2.4
Diffstat (limited to 'eclass/depend.apache.eclass')
-rw-r--r--eclass/depend.apache.eclass21
1 files changed, 19 insertions, 2 deletions
diff --git a/eclass/depend.apache.eclass b/eclass/depend.apache.eclass
index a8d06e8b3ff3..5b7d5c9b44c8 100644
--- a/eclass/depend.apache.eclass
+++ b/eclass/depend.apache.eclass
@@ -1,6 +1,6 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.45 2009/05/26 16:41:56 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.46 2012/04/20 07:19:49 patrick Exp $
# @ECLASS: depend.apache.eclass
# @MAINTAINER:
@@ -106,6 +106,12 @@ APACHE2_DEPEND="=www-servers/apache-2*"
# Dependencies for Apache 2.2.x
APACHE2_2_DEPEND="=www-servers/apache-2.2*"
+# @ECLASS-VARIABLE: APACHE2_4_DEPEND
+# @DESCRIPTION:
+# Dependencies for Apache 2.4.x
+APACHE2_2_DEPEND="=www-servers/apache-2.4*"
+
+
# ==============================================================================
# INTERNAL FUNCTIONS
# ==============================================================================
@@ -234,6 +240,17 @@ need_apache2_2() {
_init_apache2
}
+# @FUNCTION: need_apache2_4
+# @DESCRIPTION:
+# An ebuild calls this to get the dependency information for apache-2.4.x.
+need_apache2_4() {
+ debug-print-function $FUNCNAME $*
+
+ DEPEND="${DEPEND} ${APACHE2_4_DEPEND}"
+ RDEPEND="${RDEPEND} ${APACHE2_4_DEPEND}"
+ _init_apache2
+}
+
# @FUNCTION: has_apache
# @DESCRIPTION:
# An ebuild calls this to get runtime variables for an indirect apache