/[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.20 Revision 1.21
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-module.eclass,v 1.20 2007/11/25 14:27:52 hollow Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/apache-module.eclass,v 1.21 2008/01/27 20:09:17 hollow Exp $
4 4
5# @ECLASS: apache-module 5# @ECLASS: apache-module
6# @MAINTAINER: apache-devs@gentoo.org 6# @MAINTAINER: apache-devs@gentoo.org
7# @BLURB: Provides a common set of functions for apache modules 7# @BLURB: Provides a common set of functions for apache modules
8# @DESCRIPTION: 8# @DESCRIPTION:
39# @ECLASS-VARIABLE: APACHE2_MOD_CONF 39# @ECLASS-VARIABLE: APACHE2_MOD_CONF
40# @DESCRIPTION: 40# @DESCRIPTION:
41# Configuration file installed by src_install 41# Configuration file installed by src_install
42APACHE2_MOD_CONF="" 42APACHE2_MOD_CONF=""
43 43
44# @ECLASS-VARIABLE: APACHE2_VHOSTFILE
45# @DESCRIPTION:
46# Virtual host configuration file installed by src_install
47APACHE2_VHOSTFILE=""
48
44# @ECLASS-VARIABLE: APACHE2_MOD_DEFINE 49# @ECLASS-VARIABLE: APACHE2_MOD_DEFINE
45# @DESCRIPTION: 50# @DESCRIPTION:
46# Name of define (eg FOO) to use in conditional loading of the installed 51# Name of define (eg FOO) to use in conditional loading of the installed
47# module/it's config file, multiple defines should be space separated 52# module/it's config file, multiple defines should be space separated
48APACHE2_MOD_DEFINE="" 53APACHE2_MOD_DEFINE=""
171 doexe ${MOD_FILE} || die "internal ebuild error: '${MOD_FILE}' not found" 176 doexe ${MOD_FILE} || die "internal ebuild error: '${MOD_FILE}' not found"
172 [[ -n "${APACHE2_EXECFILES}" ]] && doexe ${APACHE2_EXECFILES} 177 [[ -n "${APACHE2_EXECFILES}" ]] && doexe ${APACHE2_EXECFILES}
173 178
174 if [[ -n "${APACHE2_MOD_CONF}" ]] ; then 179 if [[ -n "${APACHE2_MOD_CONF}" ]] ; then
175 insinto "${APACHE2_MODULES_CONFDIR}" 180 insinto "${APACHE2_MODULES_CONFDIR}"
176 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"
177 fi 184 fi
178 185
179 if [[ -n "${APACHE2_VHOSTFILE}" ]] ; then 186 if [[ -n "${APACHE2_VHOSTFILE}" ]] ; then
180 insinto "${APACHE2_VHOSTDIR}" 187 insinto "${APACHE2_VHOSTDIR}"
181 doins "${FILESDIR}/${APACHE2_VHOSTFILE}.conf" || die "internal ebuild error: '${FILESDIR}/${APACHE2_VHOSTFILE}.conf' not found" 188 set -- ${APACHE2_VHOSTFILE}
189 newins "${FILESDIR}/${1}.conf" "$(basename ${2:-$1}).conf " \
190 || die "internal ebuild error: '${FILESDIR}/${1}.conf' not found"
182 fi 191 fi
183 192
184 cd "${S}" 193 cd "${S}"
185 194
186 if [[ -n "${DOCFILES}" ]] ; then 195 if [[ -n "${DOCFILES}" ]] ; then
206 einfo "add '${my_opts}' to APACHE2_OPTS." 215 einfo "add '${my_opts}' to APACHE2_OPTS."
207 einfo 216 einfo
208 fi 217 fi
209 218
210 if [[ -n "${APACHE2_MOD_CONF}" ]] ; then 219 if [[ -n "${APACHE2_MOD_CONF}" ]] ; then
220 set -- ${APACHE2_MOD_CONF}
211 einfo 221 einfo
212 einfo "Configuration file installed as" 222 einfo "Configuration file installed as"
213 einfo " ${APACHE2_MODULES_CONFDIR}/$(basename ${APACHE2_MOD_CONF}).conf" 223 einfo " ${APACHE2_MODULES_CONFDIR}/$(basename $1).conf"
214 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"
215 einfo 225 einfo
216 fi 226 fi
217 227
218 if [[ -n "${APACHE2_SAFE_MPMS}" ]] ; then 228 if [[ -n "${APACHE2_SAFE_MPMS}" ]] ; then

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20