/[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.31 Revision 1.32
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.31 2007/05/12 03:47:35 chtekk Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.32 2007/05/13 20:11:37 chtekk Exp $
4 4
5inherit multilib 5inherit multilib
6 6
7# This eclass handles depending on apache in a sane way and providing 7# This eclass handles depending on apache in a sane way and providing
8# information about where certain interfaces are located. 8# information about where certain interfaces are located.
224## Currently supported versions: 2.0 2.2 2.x 224## Currently supported versions: 2.0 2.2 2.x
225#### 225####
226need_apache() { 226need_apache() {
227 debug-print-function $FUNCNAME $* 227 debug-print-function $FUNCNAME $*
228 228
229 local supports20 supports22 supports2x 229 local supports2x supports20 supports22
230 230
231 if [[ $# -eq 0 ]] ; then 231 if [[ $# -eq 0 ]] ; then
232 supports2x="yes" 232 supports2x="yes"
233 else 233 else
234 while [[ $# -gt 0 ]] ; do 234 while [[ $# -gt 0 ]] ; do
240 esac 240 esac
241 done 241 done
242 fi 242 fi
243 243
244 if [[ "${supports20}" == "yes" ]] && [[ "${supports22}" == "yes" ]] ; then 244 if [[ "${supports20}" == "yes" ]] && [[ "${supports22}" == "yes" ]] ; then
245 supports2x="yes"; 245 supports2x="yes"
246 fi 246 fi
247 247
248 debug-print "supports20: ${supports20}" 248 debug-print "supports20: ${supports20}"
249 debug-print "supports22: ${supports22}" 249 debug-print "supports22: ${supports22}"
250 debug-print "supports2x: ${supports2x}" 250 debug-print "supports2x: ${supports2x}"
254 elif [[ "${supports20}" == "yes" ]] ; then 254 elif [[ "${supports20}" == "yes" ]] ; then
255 need_apache2_0 255 need_apache2_0
256 elif [[ "${supports22}" == "yes" ]] ; then 256 elif [[ "${supports22}" == "yes" ]] ; then
257 need_apache2_2 257 need_apache2_2
258 fi 258 fi
259
260 uses_apache2
259} 261}
260 262
261want_apache() { 263want_apache() {
262 debug-print-function $FUNCNAME $* 264 debug-print-function $FUNCNAME $*
263 265

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

  ViewVC Help
Powered by ViewVC 1.1.20