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

Contents of /eclass/depend.apache.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations) (download)
Fri Mar 4 12:37:55 2005 UTC (9 years, 9 months ago) by eradicator
Branch: MAIN
Changes since 1.10: +6 -3 lines
Added sanity checks about for threads and shared with EXTRA_ECONF.  Added support for CTARGET_ALIASES with >=sys-devel/gcc-config-1.4.0.

1 vericgar 1.9 # Copyright 2004-2005 Gentoo Foundation
2 urilith 1.6 # Distributed under the terms of the GNU General Public License, v2 or later
3 eradicator 1.11 # $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.10 2005/02/12 21:29:08 vericgar Exp $
4    
5     inherit multilib
6    
7 urilith 1.6 ECLASS=depend.apache
8 stuart 1.1 INHERITED="$INHERITED $ECLASS"
9 stuart 1.2
10 urilith 1.6 ######
11     ## Apache Common Variables
12     ##
13     ## These are internal variables used by this, and other apache-related eclasses,
14     ## and thus should not need to be used by the ebuilds themselves (the ebuilds
15     ## should know what version of Apache they are building against).
16     ######
17    
18     ####
19     ## APACHE_VERSION
20     ##
21     ## Stores the version of apache we are going to be ebuilding. This variable is
22     ## set by the need_apache{|1|2} functions.
23 vericgar 1.9 ##
24     ## This needs to stay as '1' until apache2 is on by default -- although it
25     ## doesn't matter much as it's set by the need_apache functions.
26 urilith 1.6 ####
27 vericgar 1.9 APACHE_VERSION='1'
28 urilith 1.6
29     ####
30     ## APXS1, APXS2
31     ##
32     ## Paths to the apxs tools
33     ####
34     APXS1="/usr/sbin/apxs"
35     APXS2="/usr/sbin/apxs2"
36    
37     ####
38     ## APACHECTL1, APACHECTL2
39     ##
40     ## Paths to the apachectl tools
41     ####
42     APACHECTL1="/usr/sbin/apachectl"
43     APACHECTL2="/usr/sbin/apache2ctl"
44    
45     ####
46     ## APACHE1_BASEDIR, APACHE2_BASEDIR
47     ##
48     ## Paths to the server root directories
49     ####
50 eradicator 1.11 APACHE1_BASEDIR="/usr/$(get_libdir)/apache"
51     APACHE2_BASEDIR="/usr/$(get_libdir)/apache2"
52 urilith 1.6
53     ####
54     ## APACHE1_CONFDIR, APACHE2_CONFDIR
55     ##
56     ## Paths to the configuration file directories (usually under
57     ## $APACHE?_BASEDIR/conf)
58     ####
59     APACHE1_CONFDIR="/etc/apache"
60     APACHE2_CONFDIR="/etc/apache2"
61    
62     ####
63     ## APACHE1_MODULES_CONFDIR, APACHE2_MODULES_CONFDIR
64     ##
65     ## Paths where module configuration files are kept
66     ####
67     APACHE1_MODULES_CONFDIR="${APACHE1_CONFDIR}/modules.d"
68     APACHE2_MODULES_CONFDIR="${APACHE2_CONFDIR}/modules.d"
69    
70     ####
71     ## APACHE1_MODULES_VHOSTDIR, APACHE2_MODULES_VHOSTDIR
72     ##
73     ## Paths where virtual host configuration files are kept
74     ####
75     APACHE1_VHOSTDIR="${APACHE1_CONFDIR}/vhosts.d"
76     APACHE2_VHOSTDIR="${APACHE2_CONFDIR}/vhosts.d"
77    
78     ####
79     ## APACHE1_MODULESDIR, APACHE2_MODULESDIR
80     ##
81     ## Paths where we install modules
82     ####
83     APACHE1_MODULESDIR="${APACHE1_BASEDIR}/modules"
84     APACHE2_MODULESDIR="${APACHE2_BASEDIR}/modules"
85    
86     ####
87     ## APACHE1_DEPEND, APACHE2_DEPEND
88     ##
89     ## Dependencies for apache 1.x and apache 2.x
90 vericgar 1.9 ## - apache2 must be at least version 2.0.52-r3, this is lowest version
91     ## containing our new overall changes -- trapni (Jan 21 2005)
92     ## - apache1 must be at least version 1.3.33-r1, but how to
93     ## define the DEPEND here? (FIXME) -- trapni (Jan 21 2005)
94     ## - currently not possible - bug #4315 -- vericgar (Jan 21 2005)
95 urilith 1.6 ####
96     APACHE1_DEPEND="=net-www/apache-1*"
97 trapni 1.8 APACHE2_DEPEND=">=net-www/apache-2.0.52-r3"
98 vericgar 1.7
99 vericgar 1.9
100     ####
101     ## APACHE_DEPEND
102     ##
103     ## Dependency magic based on useflags to use the right DEPEND
104     ####
105    
106     APACHE_DEPEND="apache2? ( ${APACHE2_DEPEND} ) !apache2? ( ${APACHE1_DEPEND} )"
107    
108 urilith 1.6 ####
109     ## need_apache1
110     ##
111     ## An ebuild calls this to get the dependency information
112     ## for apache-1.x. An ebuild should use this in order for
113     ## future changes to the build infrastructure to happen
114     ## seamlessly. All an ebuild needs to do is include the
115     ## line need_apache1 somewhere.
116     ####
117     need_apache1() {
118     debug-print-function need_apache1
119 stuart 1.1
120 urilith 1.6 DEPEND="${DEPEND} ${APACHE1_DEPEND}"
121 vericgar 1.10 RDEPEND="${RDEPEND} ${APACHE1_DEPEND}"
122 urilith 1.6 APACHE_VERSION='1'
123 stuart 1.1 }
124    
125 urilith 1.6 ####
126     ## need_apache2
127     ##
128     ## An ebuild calls this to get the dependency information
129     ## for apache-2.x. An ebuild should use this in order for
130     ## future changes to the build infrastructure to happen
131     ## seamlessly. All an ebuild needs to do is include the
132     ## line need_apache1 somewhere.
133     ####
134     need_apache2() {
135     debug-print-function need_apache2
136 stuart 1.1
137 urilith 1.6 DEPEND="${DEPEND} ${APACHE2_DEPEND}"
138 vericgar 1.10 RDEPEND="${RDEPEND} ${APACHE2_DEPEND}"
139 urilith 1.6 APACHE_VERSION='2'
140 stuart 1.1 }
141    
142 vericgar 1.9
143     ####
144     ## DO NOT CHANGE THIS FUNCTION UNLESS YOU UNDERSTAND THE CONSEQUENCES IT
145     ## WILL HAVE ON THE CACHE! There MUST be a apache2? () block in DEPEND for
146     ## things to work correct in the dependency calculation stage.
147     ####
148 urilith 1.6 need_apache() {
149     debug-print-function need_apache
150 stuart 1.1
151 urilith 1.6 IUSE="${IUSE} apache2"
152 vericgar 1.9 DEPEND="${DEPEND} ${APACHE_DEPEND}"
153 vericgar 1.10 RDEPEND="${RDEPEND} ${APACHE_DEPEND}"
154 urilith 1.6 if useq apache2; then
155 vericgar 1.9 APACHE_VERSION='2'
156 urilith 1.6 else
157 vericgar 1.9 APACHE_VERSION='1'
158 stuart 1.1 fi
159     }

  ViewVC Help
Powered by ViewVC 1.1.20