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

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

  ViewVC Help
Powered by ViewVC 1.1.20