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

Diff of /eclass/apache-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 Revision 1.22
1# Copyright 2004 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License, v2 or later 2# Distributed under the terms of the GNU General Public License v2
3# Author Michael Tindal <urilith@gentoo.org>
4# $Header: /var/cvsroot/gentoo-x86/eclass/apache-module.eclass,v 1.9 2005/06/04 18:13:05 vericgar Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/apache-module.eclass,v 1.22 2008/02/02 12:31:00 hollow Exp $
4
5ECLASS=apache-module 5# @ECLASS: apache-module
6INHERITED="$INHERITED $ECLASS" 6# @MAINTAINER: apache-devs@gentoo.org
7# @BLURB: Provides a common set of functions for apache modules
8# @DESCRIPTION:
9# This eclass handles apache modules in a sane way and providing information
10# about where certain interfaces are located.
11#
12# @NOTE: If you use this, be sure you use the need_* call after you have defined
13# DEPEND and RDEPEND. Also note that you can not rely on the automatic
14# RDEPEND=DEPEND that Portage does if you use this eclass.
15#
16# See bug 107127 for more information.
7 17
8inherit depend.apache 18inherit depend.apache
9 19
10# This eclass provides a common set of functions for Apache modules. 20# ==============================================================================
21# INTERNAL VARIABLES
22# ==============================================================================
11 23
12###### 24# @ECLASS-VARIABLE: APXS2_S
13## Common ebuild variables 25# @DESCRIPTION:
14######
15
16####
17## APXS1_S, APXS2_S
18##
19## Paths to temporary build directories 26# Path to temporary build directory
20####
21APXS1_S=""
22APXS2_S="" 27APXS2_S=""
23 28
24#### 29# @ECLASS-VARIABLE: APXS2_ARGS
25## APXS1_ARGS, APXS2_ARGS 30# @DESCRIPTION:
26##
27## Arguments to pass to the apxs tool 31# Arguments to pass to the apxs tool
28####
29APXS1_ARGS=""
30APXS2_ARGS="" 32APXS2_ARGS=""
31 33
32#### 34# @ECLASS-VARIABLE: APACHE2_MOD_CONF
33## APACHE1_MOD_FILE, APACHE2_MOD_FILE 35# @DESCRIPTION:
34## 36# Configuration file installed by src_install
37APACHE2_MOD_CONF=""
38
39# @ECLASS-VARIABLE: APACHE2_MOD_DEFINE
40# @DESCRIPTION:
41# Name of define (eg FOO) to use in conditional loading of the installed
42# module/it's config file, multiple defines should be space separated
43APACHE2_MOD_DEFINE=""
44
45# @ECLASS-VARIABLE: APACHE2_MOD_FILE
46# @DESCRIPTION:
35## Name of the module that src_install installs (only, minus the .so) 47# Name of the module that src_install installs (minus the .so)
36####
37APACHE1_MOD_FILE=""
38APACHE2_MOD_FILE="" 48APACHE2_MOD_FILE=""
39 49
40#### 50# @ECLASS-VARIABLE: APACHE2_VHOST_CONF
41## APACHE1_MOD_CONF, APACHE2_MOD_CONF 51# @DESCRIPTION:
42##
43## Configuration file installed by src_install 52# Virtual host configuration file installed by src_install
44####
45APACHE1_MOD_CONF=""
46APACHE2_MOD_CONF="" 53APACHE2_VHOST_CONF=""
47 54
48#### 55# @ECLASS-VARIABLE: DOCFILES
49## APACHE1_MOD_DEFINE, APACHE2_MOD_DEFINE 56# @DESCRIPTION:
50##
51## Name of define (eg FOO) to use in conditional loading of the installed
52## module/it's config file
53####
54APACHE1_MOD_DEFINE=""
55APACHE2_MOD_DEFINE=""
56
57####
58## DOCFILES
59##
60## If the exported src_install() is being used, and ${DOCFILES} is non-zero, 57# If the exported src_install() is being used, and ${DOCFILES} is non-zero, some
61## some sed-fu is applied to split out html documentation (if any) from normal 58# sed-fu is applied to split out html documentation (if any) from normal
62## documentation, and dodoc'd or dohtml'd 59# documentation, and dodoc'd or dohtml'd
63####
64DOCFILES="" 60DOCFILES=""
65 61
66###### 62# ==============================================================================
67## Utility functions 63# PUBLIC FUNCTIONS
68###### 64# ==============================================================================
69 65
70#### 66# @FUNCTION: apache_cd_dir
71## apache_cd_dir 67# @DESCRIPTION:
72##
73## Return the path to our temporary build dir 68# Return the path to our temporary build dir
74####
75apache_cd_dir() { 69apache_cd_dir() {
76 debug-print-function apache_cd_dir 70 debug-print-function $FUNCNAME $*
77 71
78 if [ "${APACHE_VERSION}" == "1" ]; then
79 [ -n "${APXS1_S}" ] && CD_DIR="${APXS1_S}"
80 else
81 [ -n "${APXS2_S}" ] && CD_DIR="${APXS2_S}" 72 [[ -n "${APXS2_S}" ]] && CD_DIR="${APXS2_S}"
82 fi
83 73
84 # XXX - is this really needed? can't we just return ${S}?
85 if [ -z "${CD_DIR}" ]; then 74 if [[ -z "${CD_DIR}" ]] ; then
86 if [ -d ${S}/src ] ; then 75 if [[ -d "${S}/src" ]] ; then
87 CD_DIR="${S}/src" 76 CD_DIR="${S}/src"
88 else 77 else
89 CD_DIR="${S}" 78 CD_DIR="${S}"
90 fi 79 fi
91 fi 80 fi
92 81
93 debug-print apache_cd_dir: "CD_DIR=${CD_DIR}" 82 debug-print apache_cd_dir: "CD_DIR=${CD_DIR}"
94 echo ${CD_DIR} 83 echo "${CD_DIR}"
95} 84}
96 85
97#### 86# @FUNCTION: apache_mod_file
98## apache_mod_file 87# @DESCRIPTION:
99##
100## Return the path to the module file 88# Return the path to the module file
101####
102apache_mod_file() { 89apache_mod_file() {
103 debug-print-function apache_mod_file 90 debug-print-function $FUNCNAME $*
104 91
105 if [ "${APACHE_VERSION}" == "1" ]; then
106 [ -n "${APACHE1_MOD_FILE}" ] && MOD_FILE="${APACHE1_MOD_FILE}"
107 [ -z "${MOD_FILE}" ] && MOD_FILE="$(apache_cd_dir)/${PN}.so"
108 else
109 [ -n "${APACHE2_MOD_FILE}" ] && MOD_FILE="${APACHE2_MOD_FILE}" 92 [[ -n "${APACHE2_MOD_FILE}" ]] && MOD_FILE="${APACHE2_MOD_FILE}"
110 [ -z "${MOD_FILE}" ] && MOD_FILE="$(apache_cd_dir)/.libs/${PN}.so" 93 [[ -z "${MOD_FILE}" ]] && MOD_FILE="$(apache_cd_dir)/.libs/${PN}.so"
111 fi
112 94
113 debug-print apache_mod_file: MOD_FILE=${MOD_FILE} 95 debug-print apache_mod_file: "MOD_FILE=${MOD_FILE}"
114 echo ${MOD_FILE} 96 echo "${MOD_FILE}"
115} 97}
116 98
117####
118## apache_doc_magic 99# @FUNCTION: apache_doc_magic
119## 100# @DESCRIPTION:
120## Some magic for picking out html files from ${DOCFILES}. It takes 101# Some magic for picking out html files from ${DOCFILES}. It takes an optional
121## an optional first argument `html'; if the first argument is equals 102# first argument `html'; if the first argument is equals `html', only html files
122## `html', only html files are returned, otherwise normal (non-html) 103# are returned, otherwise normal (non-html) docs are returned.
123## docs are returned.
124####
125apache_doc_magic() { 104apache_doc_magic() {
126 debug-print-function apache_doc_magic $* 105 debug-print-function $FUNCNAME $*
127 106
128 if [ -n "${DOCFILES}" ]; then 107 if [[ -n "${DOCFILES}" ]] ; then
129 if [ "x$1" == "xhtml" ]; then 108 if [[ "x$1" == "xhtml" ]] ; then
130 DOCS="`echo ${DOCFILES} | sed -e 's/ /\n/g' | sed -e '/^[^ ]*.html$/ !d'`" 109 DOCS="`echo ${DOCFILES} | sed -e 's/ /\n/g' | sed -e '/^[^ ]*.html$/ !d'`"
131 else 110 else
132 DOCS="`echo ${DOCFILES} | sed 's, *[^ ]*\+.html, ,g'`" 111 DOCS="`echo ${DOCFILES} | sed 's, *[^ ]*\+.html, ,g'`"
133 fi 112 fi
134 113
135 debug-print apache_doc_magic: DOCS=${DOCS} 114 debug-print apache_doc_magic: "DOCS=${DOCS}"
136 echo ${DOCS} 115 echo "${DOCS}"
137 fi 116 fi
138} 117}
139 118
140###### 119# @FUNCTION: apache-module_pkg_setup
141## Apache 1.x ebuild functions 120# @DESCRIPTION:
142###### 121# Checks to see if APACHE2_SAFE_MPMS is set and if the currently installed MPM
143 122# does appear in the list.
144####
145## apache1_src_compile
146## The default action is to call ${APXS11} with the value of
147## ${APXS1_ARGS}. If a module requires a different build setup
148## than this, use ${APXS1} in your own src_compile routine.
149####
150apache1_src_compile() {
151 debug-print-function apache1_src_compile
152
153 CD_DIR=$(apache_cd_dir)
154 cd ${CD_DIR} || die "cd ${CD_DIR} failed"
155 APXS1_ARGS="${APXS1_ARGS:--c ${PN}.c}"
156 ${APXS1} ${APXS1_ARGS} || die "${APXS1} ${APXS1_ARGS} failed"
157}
158
159####
160## apache1_src_install
161##
162## This installs the files into apache's directories. The module is installed
163## from a directory chosen as above (APXS2_S or ${S}/src). In addition,
164## this function can also set the executable permission on files listed in EXECFILES.
165## The configuration file name is listed in APACHE1_MOD_CONF without the .conf extensions,
166## so if you configuration is 55_mod_foo.conf, APACHE1_MOD_CONF would be 55_mod_foo.
167## DOCFILES contains the list of files you want filed as documentation. The name of the
168## module can also be specified using the APACHE1_MOD_FILE or defaults to
169## .libs/${PN}.so.
170####
171apache1_src_install() {
172 debug-print-function apache1_src_install
173
174 CD_DIR=$(apache_cd_dir)
175 cd ${CD_DIR} || die "cd ${CD_DIR} failed"
176
177 MOD_FILE=$(apache_mod_file)
178
179 exeinto ${APACHE1_MODULESDIR}
180 doexe ${MOD_FILE} || die "internal ebuild error: '${MOD_FILE}' not found"
181 [ -n "${APACHE1_EXECFILES}" ] && doexe ${APACHE1_EXECFILES}
182
183 if [ -n "${APACHE1_MOD_CONF}" ] ; then
184 insinto ${APACHE1_MODULES_CONFDIR}
185 doins ${FILESDIR}/${APACHE1_MOD_CONF}.conf || die "internal ebuild error: '${FILESDIR}/${APACHE1_MOD_CONF}.conf' not found."
186 fi
187
188 cd ${S}
189
190 if [ -n "${DOCFILES}" ] ; then
191 OTHER_DOCS=$(apache_doc_magic)
192 HTML_DOCS=$(apache_doc_magic html)
193
194 [ -n "${OTHER_DOCS}" ] && dodoc ${OTHER_DOCS}
195 [ -n "${HTML_DOCS}" ] && dohtml ${HTML_DOCS}
196 fi
197}
198
199####
200## apache1_pkg_postinst
201##
202## Prints the standard config message, unless APACHE1_NO_CONFIG is set to yes.
203####
204apache1_pkg_postinst() {
205 debug-print-function apache1_pkg_postinst
206
207 if [ -n "${APACHE1_MOD_DEFINE}" ]; then
208 einfo
209 einfo "To enable ${PN}, you need to edit your /etc/conf.d/apache file and"
210 einfo "add '-D ${APACHE1_MOD_DEFINE}' to APACHE_OPTS."
211 einfo
212 fi
213 if [ -n "${APACHE1_MOD_CONF}" ] ; then
214 einfo
215 einfo "Configuration file installed as"
216 einfo " ${APACHE1_MODULES_CONFDIR}/$(basename ${APACHE1_MOD_CONF}).conf"
217 einfo "You may want to edit it before turning the module on in /etc/conf.d/apache"
218 einfo
219 fi
220}
221
222######
223## Apache 2.x ebuild functions
224######
225
226####
227## apache2_pkg_setup
228##
229## Checks to see if APACHE2_MT_UNSAFE is set to anything other than "no". If it is, then
230## we check what the MPM style used by Apache is, if it isnt prefork, we let the user
231## know they need prefork, and then exit the build.
232####
233apache2_pkg_setup() { 123apache-module_pkg_setup() {
234 debug-print-function apache2_pkg_setup 124 debug-print-function $FUNCNAME $*
235 125
236 if [ -n "${APACHE2_SAFE_MPMS}" ]; then 126 if [[ -n "${APACHE2_SAFE_MPMS}" ]] ; then
237
238 INSTALLED_MPM="$(${ROOT}/usr/sbin/apxs2 -q MPM_NAME)" 127 INSTALLED_MPM="$(${ROOT}/usr/sbin/apxs2 -q MPM_NAME)"
239 128
240 if hasq ${INSTALLED_MPM} ${APACHE2_SAFE_MPMS} ; then 129 if hasq ${INSTALLED_MPM} ${APACHE2_SAFE_MPMS} ; then
241 INSTALLED_MPM_SAFE="yes" 130 INSTALLED_MPM_SAFE="yes"
242 fi 131 fi
243 132
244 if [ -z "${INSTALLED_MPM_SAFE}" ] ; then 133 if [[ -z "${INSTALLED_MPM_SAFE}" ]] ; then
245 eerror "The module you are trying to install (${PN})" 134 eerror "The module you are trying to install (${PN})"
246 eerror "will only work with one of the following MPMs:" 135 eerror "will only work with one of the following MPMs:"
247 eerror " ${APACHE2_SAFE_MPMS}" 136 eerror " ${APACHE2_SAFE_MPMS}"
248 eerror "You do not currently have any of these MPMs installed." 137 eerror "You do not currently have any of these MPMs installed."
249 eerror "Please re-install apache with the correct mpm-* USE flag set." 138 eerror "Please re-install apache with the correct mpm-* USE flag set."
250 die "No safe MPM installed." 139 die "No safe MPM installed."
251 fi 140 fi
252
253 fi 141 fi
254
255} 142}
256 143
257#### 144# @FUNCTION: apache-module_src_compile
258## apache2_src_compile 145# @DESCRIPTION:
259## 146# The default action is to call ${APXS} with the value of ${APXS2_ARGS}. If a
260## The default action is to call ${APXS2} with the value of 147# module requires a different build setup than this, use ${APXS} in your own
261## ${APXS2_ARGS}. If a module requires a different build setup 148# src_compile routine.
262## than this, use ${APXS2} in your own src_compile routine.
263####
264apache2_src_compile() { 149apache-module_src_compile() {
265 debug-print-function apache2_src_compile 150 debug-print-function $FUNCNAME $*
266 151
267 CD_DIR=$(apache_cd_dir) 152 CD_DIR=$(apache_cd_dir)
268 cd ${CD_DIR} || die "cd ${CD_DIR} failed" 153 cd "${CD_DIR}" || die "cd ${CD_DIR} failed"
269 APXS2_ARGS="${APXS2_ARGS:--c ${PN}.c}" 154 APXS2_ARGS="${APXS2_ARGS:--c ${PN}.c}"
270 ${APXS2} ${APXS2_ARGS} || die "${APXS2} ${APXS2_ARGS} failed" 155 ${APXS} ${APXS2_ARGS} || die "${APXS} ${APXS2_ARGS} failed"
271} 156}
272 157
273#### 158# @FUNCTION: apache-module_src_install
274## apache2_src_install 159# @DESCRIPTION:
275##
276## This installs the files into apache's directories. The module is installed 160# This installs the files into apache's directories. The module is installed
277## from a directory chosen as above (APXS2_S or ${S}/src). In addition, 161# from a directory chosen as above (APXS2_S or ${S}/src). In addition, this
278## this function can also set the executable permission on files listed in EXECFILES. 162# function can also set the executable permission on files listed in
279## The configuration file name is listed in CONFFILE without the .conf extensions, 163# APACHE2_EXECFILES. The configuration file name is listed in APACHE2_MOD_CONF
280## so if you configuration is 55_mod_foo.conf, CONFFILE would be 55_mod_foo. 164# without the .conf extensions, so if you configuration is 55_mod_foo.conf,
281## DOCFILES contains the list of files you want filed as documentation. 165# APACHE2_MOD_CONF would be 55_mod_foo. DOCFILES contains the list of files you
282#### 166# want filed as documentation.
283apache2_src_install() { 167apache-module_src_install() {
284 debug-print-function apache2_src_install 168 debug-print-function $FUNCNAME $*
285 169
286 CD_DIR=$(apache_cd_dir) 170 CD_DIR=$(apache_cd_dir)
287 cd ${CD_DIR} || die "cd ${CD_DIR} failed" 171 cd "${CD_DIR}" || die "cd ${CD_DIR} failed"
288 172
289 MOD_FILE=$(apache_mod_file) 173 MOD_FILE=$(apache_mod_file)
290 174
291 exeinto ${APACHE2_MODULESDIR} 175 exeinto "${APACHE_MODULESDIR}"
292 doexe ${MOD_FILE} || die "internal ebuild error: '${MOD_FILE}' not found" 176 doexe ${MOD_FILE} || die "internal ebuild error: '${MOD_FILE}' not found"
293 [ -n "${APACHE2_EXECFILES}" ] && doexe ${APACHE2_EXECFILES} 177 [[ -n "${APACHE2_EXECFILES}" ]] && doexe ${APACHE2_EXECFILES}
294 178
295 if [ -n "${APACHE2_MOD_CONF}" ] ; then 179 if [[ -n "${APACHE2_MOD_CONF}" ]] ; then
296 insinto ${APACHE2_MODULES_CONFDIR} 180 insinto "${APACHE_MODULES_CONFDIR}"
297 doins ${FILESDIR}/${APACHE2_MOD_CONF}.conf || die "internal ebuild error: '${FILESDIR}/${APACHE2_MOD_CONF}.conf' not found." 181 set -- ${APACHE2_MOD_CONF}
182 newins "${FILESDIR}/${1}.conf" "$(basename ${2:-$1}).conf" \
183 || die "internal ebuild error: '${FILESDIR}/${1}.conf' not found"
298 fi 184 fi
299 185
300 if [ -n "${APACHE2_VHOSTFILE}" ]; then 186 if [[ -n "${APACHE2_VHOST_CONF}" ]] ; then
301 insinto ${APACHE2_MODULES_VHOSTDIR} 187 insinto "${APACHE_VHOSTS_CONFDIR}"
302 doins ${FILESDIR}/${APACHE2_VHOSTFILE}.conf 188 set -- ${APACHE2_VHOST_CONF}
189 newins "${FILESDIR}/${1}.conf" "$(basename ${2:-$1}).conf " \
190 || die "internal ebuild error: '${FILESDIR}/${1}.conf' not found"
303 fi 191 fi
304 192
305 cd ${S} 193 cd "${S}"
306 194
307 if [ -n "${DOCFILES}" ] ; then 195 if [[ -n "${DOCFILES}" ]] ; then
308 OTHER_DOCS=$(apache_doc_magic) 196 OTHER_DOCS=$(apache_doc_magic)
309 HTML_DOCS=$(apache_doc_magic html) 197 HTML_DOCS=$(apache_doc_magic html)
310 198
311 [ -n "${OTHER_DOCS}" ] && dodoc ${OTHER_DOCS} 199 [[ -n "${OTHER_DOCS}" ]] && dodoc ${OTHER_DOCS}
312 [ -n "${HTML_DOCS}" ] && dohtml ${HTML_DOCS} 200 [[ -n "${HTML_DOCS}" ]] && dohtml ${HTML_DOCS}
313 fi 201 fi
314} 202}
315 203
204# @FUNCTION: apache-module_pkg_postinst
205# @DESCRIPTION:
206# This prints out information about the installed module and how to enable it.
316apache2_pkg_postinst() { 207apache-module_pkg_postinst() {
317 debug-print-function apache2_pkg_postinst 208 debug-print-function $FUNCNAME $*
318 209
319 if [ -n "${APACHE2_MOD_DEFINE}" ]; then 210 if [[ -n "${APACHE2_MOD_DEFINE}" ]] ; then
211 local my_opts="-D ${APACHE2_MOD_DEFINE// / -D }"
212
320 einfo 213 einfo
321 einfo "To enable ${PN}, you need to edit your /etc/conf.d/apache2 file and" 214 einfo "To enable ${PN}, you need to edit your /etc/conf.d/apache2 file and"
322 einfo "add '-D ${APACHE2_MOD_DEFINE}' to APACHE2_OPTS." 215 einfo "add '${my_opts}' to APACHE2_OPTS."
323 einfo 216 einfo
324 fi 217 fi
218
325 if [ -n "${APACHE2_MOD_CONF}" ] ; then 219 if [[ -n "${APACHE2_MOD_CONF}" ]] ; then
220 set -- ${APACHE2_MOD_CONF}
326 einfo 221 einfo
327 einfo "Configuration file installed as" 222 einfo "Configuration file installed as"
328 einfo " ${APACHE2_MODULES_CONFDIR}/$(basename ${APACHE2_MOD_CONF}).conf" 223 einfo " ${APACHE_MODULES_CONFDIR}/$(basename $1).conf"
329 einfo "You may want to edit it before turning the module on in /etc/conf.d/apache2" 224 einfo "You may want to edit it before turning the module on in /etc/conf.d/apache2"
330 einfo 225 einfo
331 fi 226 fi
332 227
333 if [ -n "${APACHE2_SAFE_MPMS}" ]; then 228 if [[ -n "${APACHE2_SAFE_MPMS}" ]] ; then
334
335 INSTALLED_MPM="$(${ROOT}/usr/sbin/apxs2 -q MPM_NAME)" 229 INSTALLED_MPM="$(${ROOT}/usr/sbin/apxs2 -q MPM_NAME)"
336 230
337 if ! hasq ${INSTALLED_MPM} ${APACHE2_SAFE_MPMS} ; then 231 if ! hasq ${INSTALLED_MPM} ${APACHE2_SAFE_MPMS} ; then
338 INSTALLED_MPM_UNSAFE="${INSTALLED_MPM_UNSAFE} ${mpm}" 232 INSTALLED_MPM_UNSAFE="${INSTALLED_MPM_UNSAFE} ${mpm}"
339 else 233 else
340 INSTALLED_MPM_SAFE="${INSTALLED_MPM_SAFE} ${mpm}" 234 INSTALLED_MPM_SAFE="${INSTALLED_MPM_SAFE} ${mpm}"
341 fi 235 fi
342 236
343 if [ -n "${INSTALLED_MPM_UNSAFE}" ] ; then 237 if [[ -n "${INSTALLED_MPM_UNSAFE}" ]] ; then
344 ewarn "You have one or more MPMs installed that will not work with" 238 ewarn "Your installed MPM will not work with this module (${PN})."
345 ewarn "this module (${PN}). Please make sure that you only enable" 239 ewarn "Please make sure that you only enable this module"
346 ewarn "this module if you are using one of the following MPMs:" 240 ewarn "if you are using one of the following MPMs:"
347 ewarn " ${INSTALLED_MPM_SAFE}" 241 ewarn " ${INSTALLED_MPM_SAFE}"
348 fi
349
350 fi 242 fi
351
352
353}
354
355######
356## Apache dual (1.x or 2.x) ebuild functions
357##
358## This is where the magic happens. We provide dummy routines of all of the functions
359## provided by all of the specifics. We use APACHE_ECLASS_VER_* to see which versions
360## to call. If a function is provided by a given section (ie pkg_postinst in Apache 2.x)
361## the exported routine simply does nothing.
362######
363
364apache-module_pkg_setup() {
365 debug-print-function apache-module_pkg_setup
366
367 if [ ${APACHE_VERSION} -eq '2' ]; then
368 apache2_pkg_setup
369 fi
370}
371
372apache-module_src_compile() {
373 debug-print-function apache-module_src_compile
374
375 if [ ${APACHE_VERSION} -eq '1' ]; then
376 apache1_src_compile
377 else
378 apache2_src_compile
379 fi
380}
381
382apache-module_src_install() {
383 debug-print-function apache-module_src_install
384
385 if [ ${APACHE_VERSION} -eq '1' ]; then
386 apache1_src_install
387 else
388 apache2_src_install
389 fi
390}
391
392apache-module_pkg_postinst() {
393 debug-print-function apache-module_pkg_postinst
394
395 if [ ${APACHE_VERSION} -eq '1' ]; then
396 apache1_pkg_postinst
397 else
398 apache2_pkg_postinst
399 fi 243 fi
400} 244}
401 245
402EXPORT_FUNCTIONS pkg_setup src_compile src_install pkg_postinst 246EXPORT_FUNCTIONS pkg_setup src_compile src_install pkg_postinst
403
404# vim:ts=4

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.20