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

Contents of /eclass/depend.apache.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Thu Jan 13 04:36:58 2005 UTC (9 years, 9 months ago) by vericgar
Branch: MAIN
Changes since 1.6: +14 -5 lines
Fixes to depend.apache eclass so that it doesn't break the cache

1 urilith 1.6 # Copyright 2004 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License, v2 or later
3     # Author Michael Tindal <urilith@gentoo.org>
4 vericgar 1.7 # $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.6 2004/11/21 01:51:58 urilith Exp $
5 urilith 1.6 ECLASS=depend.apache
6 stuart 1.1 INHERITED="$INHERITED $ECLASS"
7 stuart 1.2
8 urilith 1.6 ######
9     ## Apache Common Variables
10     ##
11     ## These are internal variables used by this, and other apache-related eclasses,
12     ## and thus should not need to be used by the ebuilds themselves (the ebuilds
13     ## should know what version of Apache they are building against).
14     ######
15    
16     ####
17     ## APACHE_VERSION
18     ##
19     ## Stores the version of apache we are going to be ebuilding. This variable is
20     ## set by the need_apache{|1|2} functions.
21     ####
22 vericgar 1.7 APACHE_VERSION='1'
23 urilith 1.6
24     ####
25     ## APXS1, APXS2
26     ##
27     ## Paths to the apxs tools
28     ####
29     APXS1="/usr/sbin/apxs"
30     APXS2="/usr/sbin/apxs2"
31    
32     ####
33     ## APACHECTL1, APACHECTL2
34     ##
35     ## Paths to the apachectl tools
36     ####
37     APACHECTL1="/usr/sbin/apachectl"
38     APACHECTL2="/usr/sbin/apache2ctl"
39    
40     ####
41     ## APACHE1_BASEDIR, APACHE2_BASEDIR
42     ##
43     ## Paths to the server root directories
44     ####
45     APACHE1_BASEDIR="/usr/lib/apache"
46     APACHE2_BASEDIR="/usr/lib/apache2"
47    
48     ####
49     ## APACHE1_CONFDIR, APACHE2_CONFDIR
50     ##
51     ## Paths to the configuration file directories (usually under
52     ## $APACHE?_BASEDIR/conf)
53     ####
54     APACHE1_CONFDIR="/etc/apache"
55     APACHE2_CONFDIR="/etc/apache2"
56    
57     ####
58     ## APACHE1_MODULES_CONFDIR, APACHE2_MODULES_CONFDIR
59     ##
60     ## Paths where module configuration files are kept
61     ####
62     APACHE1_MODULES_CONFDIR="${APACHE1_CONFDIR}/modules.d"
63     APACHE2_MODULES_CONFDIR="${APACHE2_CONFDIR}/modules.d"
64    
65     ####
66     ## APACHE1_MODULES_VHOSTDIR, APACHE2_MODULES_VHOSTDIR
67     ##
68     ## Paths where virtual host configuration files are kept
69     ####
70     APACHE1_VHOSTDIR="${APACHE1_CONFDIR}/vhosts.d"
71     APACHE2_VHOSTDIR="${APACHE2_CONFDIR}/vhosts.d"
72    
73     ####
74     ## APACHE1_MODULESDIR, APACHE2_MODULESDIR
75     ##
76     ## Paths where we install modules
77     ####
78     APACHE1_MODULESDIR="${APACHE1_BASEDIR}/modules"
79     APACHE2_MODULESDIR="${APACHE2_BASEDIR}/modules"
80    
81     ####
82     ## APACHE1_DEPEND, APACHE2_DEPEND
83     ##
84     ## Dependencies for apache 1.x and apache 2.x
85     ####
86     APACHE1_DEPEND="=net-www/apache-1*"
87     APACHE2_DEPEND="=net-www/apache-2*"
88    
89 vericgar 1.7
90     ####
91     ## APACHE_DEPEND
92     ##
93     ## Dependency magic based on useflags to use the right DEPEND
94     ####
95    
96     APACHE_DEPEND="apache2? ( ${APACHE2_DEPEND} ) !apache2? ( ${APACHE1_DEPEND} )"
97    
98 urilith 1.6 ####
99     ## need_apache1
100     ##
101     ## An ebuild calls this to get the dependency information
102     ## for apache-1.x. An ebuild should use this in order for
103     ## future changes to the build infrastructure to happen
104     ## seamlessly. All an ebuild needs to do is include the
105     ## line need_apache1 somewhere.
106     ####
107     need_apache1() {
108     debug-print-function need_apache1
109 stuart 1.1
110 urilith 1.6 DEPEND="${DEPEND} ${APACHE1_DEPEND}"
111     APACHE_VERSION='1'
112 stuart 1.1 }
113    
114 urilith 1.6 ####
115     ## need_apache2
116     ##
117     ## An ebuild calls this to get the dependency information
118     ## for apache-2.x. An ebuild should use this in order for
119     ## future changes to the build infrastructure to happen
120     ## seamlessly. All an ebuild needs to do is include the
121     ## line need_apache1 somewhere.
122     ####
123     need_apache2() {
124     debug-print-function need_apache2
125 stuart 1.1
126 urilith 1.6 DEPEND="${DEPEND} ${APACHE2_DEPEND}"
127     APACHE_VERSION='2'
128 stuart 1.1 }
129    
130 urilith 1.6 need_apache() {
131     debug-print-function need_apache
132 stuart 1.1
133 urilith 1.6 IUSE="${IUSE} apache2"
134 vericgar 1.7 DEPEND="${DEPEND} ${APACHE_DEPEND}"
135 urilith 1.6 if useq apache2; then
136 vericgar 1.7 APACHE_VERSION='2'
137 urilith 1.6 else
138 vericgar 1.7 APACHE_VERSION='1'
139 stuart 1.1 fi
140     }

  ViewVC Help
Powered by ViewVC 1.1.20