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

  ViewVC Help
Powered by ViewVC 1.1.20