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

Diff of /eclass/apache-2.eclass

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

Revision 1.7 Revision 1.8
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/apache-2.eclass,v 1.7 2008/01/19 10:59:08 hollow Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/apache-2.eclass,v 1.8 2008/02/02 10:10:36 hollow Exp $
4 4
5# @ECLASS: apache-2 5# @ECLASS: apache-2
6# @MAINTAINER: apache-devs@gentoo.org 6# @MAINTAINER: apache-devs@gentoo.org
7# @BLURB: Provides a common set of functions for >=apache-2.2* ebuilds 7# @BLURB: Provides a common set of functions for >=apache-2.2* ebuilds
8# @DESCRIPTION: 8# @DESCRIPTION:
9# This eclass handles common apache ebuild functions in a sane way and providing 9# This eclass handles common apache ebuild functions in a sane way and providing
10# information about where certain interfaces are located such as LoadModule 10# information about where certain interfaces are located such as LoadModule
11# generation and inter-module dependency checking. 11# generation and inter-module dependency checking.
12 12
13inherit depend.apache eutils flag-o-matic multilib autotools 13inherit autotools eutils flag-o-matic multilib
14 14
15# ============================================================================== 15# ==============================================================================
16# INTERNAL VARIABLES 16# INTERNAL VARIABLES
17# ============================================================================== 17# ==============================================================================
18 18
192 die "invalid use flag combination" 192 die "invalid use flag combination"
193 fi 193 fi
194} 194}
195 195
196# @ECLASS-VARIABLE: MY_CONF 196# @ECLASS-VARIABLE: MY_CONF
197# DESCRIPTION: 197# @DESCRIPTION:
198# This internal variable contains the econf options for the current module 198# This internal variable contains the econf options for the current module
199# selection after a call to setup_modules() 199# selection after a call to setup_modules()
200 200
201# @ECLASS-VARIABLE: MY_MODS 201# @ECLASS-VARIABLE: MY_MODS
202# DESCRIPTION: 202# @DESCRIPTION:
203# This internal variable contains a sorted, space separated list of currently 203# This internal variable contains a sorted, space separated list of currently
204# selected modules after a call to setup_modules() 204# selected modules after a call to setup_modules()
205 205
206# @FUNCTION: setup_modules 206# @FUNCTION: setup_modules
207# @DESCRIPTION: 207# @DESCRIPTION:
300# @FUNCTION: generate_load_module 300# @FUNCTION: generate_load_module
301# @DESCRIPTION: 301# @DESCRIPTION:
302# This internal function generates the LoadModule lines for httpd.conf based on 302# This internal function generates the LoadModule lines for httpd.conf based on
303# the current module selection and MODULE_DEFINES 303# the current module selection and MODULE_DEFINES
304generate_load_module() { 304generate_load_module() {
305 local endit=0 mod_lines= mod_dir="${D}${APACHE2_MODULESDIR}" 305 local endit=0 mod_lines= mod_dir="${D}/usr/$(get_libdir)/apache2/modules"
306 306
307 if use static; then 307 if use static; then
308 sed -i -e "/%%LOAD_MODULE%%/d" \ 308 sed -i -e "/%%LOAD_MODULE%%/d" \
309 "${GENTOO_PATCHDIR}"/conf/httpd.conf 309 "${GENTOO_PATCHDIR}"/conf/httpd.conf
310 return 310 return

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20