/[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.1 Revision 1.5
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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.1 2004/07/16 10:48:22 stuart Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.5 2004/07/24 08:50:23 robbat2 Exp $
4 4
5ECLASS="depend.apache" 5ECLASS="depend.apache"
6INHERITED="$INHERITED $ECLASS" 6INHERITED="$INHERITED $ECLASS"
7IUSE="apache apache2" 7IUSE="apache apache2"
8
9# remember to set MY_SLOT if you want to include something like ${PVR} in
10# the slot information
11# SLOT="apache? ( 1{$MY_SLOT} ) apache2? ( 2{$MY_SLOT} ) !apache1? ( !apache2? ( 2${MY_SLOT} ) )"
12
13DEPEND="$DEPEND apache? ( =net-www/apache-1* ) apache2? ( =net-www/apache-2* )
14 !apache? ( !apache2? ( =net-www/apache-2* ) )"
8 15
9# call this function to work out which version of the apache web server 16# call this function to work out which version of the apache web server
10# your ebuild should be installing itself to use 17# your ebuild should be installing itself to use
11 18
12detect_apache_useflags() { 19detect_apache_useflags() {
27 HAS_APACHE_ANY= 34 HAS_APACHE_ANY=
28 35
29 has_version '=net-www/apache-1*' && HAS_APACHE1=1 && HAS_APACHE_ANY=1 36 has_version '=net-www/apache-1*' && HAS_APACHE1=1 && HAS_APACHE_ANY=1
30 has_version '=net-www/apache-2*' && HAS_APACHE2=1 && HAS_APACHE_ANY=1 37 has_version '=net-www/apache-2*' && HAS_APACHE2=1 && HAS_APACHE_ANY=1
31 38
32 [ -n "${HAVE_APACHE1}" ] && [ -n "${HAVE_APACHE2}" && HAVE_APACHE_MULTIPLE=1 39 [ -n "${HAVE_APACHE1}" ] && [ -n "${HAVE_APACHE2}" ] && HAVE_APACHE_MULTIPLE=1
33} 40}
34 41
35# call this function from your pkg_setup 42# call this function from your pkg_setup
36 43
37depend_apache() { 44depend_apache() {
75 einfo "Apache 1 support enabled" 82 einfo "Apache 1 support enabled"
76 DETECT_APACHE=1 83 DETECT_APACHE=1
77 return 84 return
78 fi 85 fi
79 fi 86 fi
87
88 [ -z "$DETECT_APACHE" ] && DETECT_APACHE=2
80} 89}
81 90

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20