/[gentoo-x86]/eclass/webapp.eclass
Gentoo

Diff of /eclass/webapp.eclass

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

Revision 1.3 Revision 1.4
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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/webapp.eclass,v 1.3 2004/03/02 23:57:39 stuart Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.4 2004/03/03 18:44:34 stuart Exp $
4# 4#
5# eclass/webapp.eclass 5# eclass/webapp.eclass
6# Eclass for installing applications to run under a web server 6# Eclass for installing applications to run under a web server
7# 7#
8# Part of the implementation of GLEP #11 8# Part of the implementation of GLEP #11
11# 11#
12# ------------------------------------------------------------------------ 12# ------------------------------------------------------------------------
13# 13#
14# Please do not make modifications to this file without checking with a 14# Please do not make modifications to this file without checking with a
15# member of the web-apps herd first! 15# member of the web-apps herd first!
16#
17# ------------------------------------------------------------------------
18#
19# THIS IS A BETA RELEASE ONLY. ALL DETAILS ARE SUBJECT TO CHANGE BEFORE
20# WE ARE READY TO START PORTING EVERYTHING TO THIS ECLASS
21# 16#
22# ------------------------------------------------------------------------ 17# ------------------------------------------------------------------------
23 18
24ECLASS=webapp 19ECLASS=webapp
25INHERITED="$INHERITED $ECLASS" 20INHERITED="$INHERITED $ECLASS"
26SLOT="${PVR}" 21SLOT="${PVR}"
27IUSE="$IUSE vhosts" 22IUSE="$IUSE vhosts"
23G_HASCONFIG=1
28 24
29if [ -f /etc/conf.d/webapp-config ] ; then 25if [ -f /etc/conf.d/webapp-config ] ; then
30 . /etc/conf.d/webapp-config 26 . /etc/conf.d/webapp-config
31else 27else
32 die "Unable to open /etc/conf.d/webapp-config files" 28 G_HASCONFIG=0
33fi 29fi
34 30
35EXPORT_FUNCTIONS pkg_config pkg_setup src_install 31EXPORT_FUNCTIONS pkg_config pkg_setup src_install
36 32
37# ------------------------------------------------------------------------ 33# ------------------------------------------------------------------------
219# 215#
220# ------------------------------------------------------------------------ 216# ------------------------------------------------------------------------
221 217
222function webapp_pkg_setup () 218function webapp_pkg_setup ()
223{ 219{
220 # we do have the config file, right?
221
222 if [ "$G_HASCONFIG" = "0" ]; then
223 die "/etc/conf.d/webapp-config missing"
224 fi
225
224 # are we emerging something that is already installed? 226 # are we emerging something that is already installed?
225 227
226 if [ -d "${MY_APPROOT}/${MY_APPSUFFIX}" ]; then 228 if [ -d "${MY_APPROOT}/${MY_APPSUFFIX}" ]; then
227 # yes we are 229 # yes we are
228 ewarn "Removing existing copy of ${PN}-${PVR}" 230 ewarn "Removing existing copy of ${PN}-${PVR}"

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20