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

Diff of /eclass/webapp.eclass

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

Revision 1.5 Revision 1.6
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.5 2004/04/14 16:02:37 stuart Exp $
4# 3#
5# eclass/webapp.eclass 4# eclass/webapp.eclass
6# Eclass for installing applications to run under a web server 5# Eclass for installing applications to run under a web server
7# 6#
8# Part of the implementation of GLEP #11 7# Part of the implementation of GLEP #11
19ECLASS=webapp 18ECLASS=webapp
20INHERITED="$INHERITED $ECLASS" 19INHERITED="$INHERITED $ECLASS"
21SLOT="${PVR}" 20SLOT="${PVR}"
22IUSE="$IUSE vhosts" 21IUSE="$IUSE vhosts"
23 22
24if [ -f /etc/vhosts/webapp-config ] ; then
25 . /etc/vhosts/webapp-config
26else
27 die "Unable to open /etc/vhosts/webapp-config file"
28fi
29 23
30EXPORT_FUNCTIONS pkg_postinst pkg_setup src_install 24EXPORT_FUNCTIONS pkg_postinst pkg_setup src_install
31 25
32# ------------------------------------------------------------------------ 26# ------------------------------------------------------------------------
33# INTERNAL FUNCTION - USED BY THIS ECLASS ONLY 27# INTERNAL FUNCTION - USED BY THIS ECLASS ONLY
235# 229#
236# ------------------------------------------------------------------------ 230# ------------------------------------------------------------------------
237 231
238function webapp_pkg_setup () 232function webapp_pkg_setup ()
239{ 233{
234 if [ -f /etc/vhosts/webapp-config ] ; then
235 . /etc/vhosts/webapp-config
236 else
237 die "Unable to find /etc/vhosts/webapp-config"
238 fi
239
240 # are we emerging something that is already installed? 240 # are we emerging something that is already installed?
241 241
242 if [ -d "${MY_APPROOT}/${MY_APPSUFFIX}" ]; then 242 if [ -d "${MY_APPROOT}/${MY_APPSUFFIX}" ]; then
243 # yes we are 243 # yes we are
244 ewarn "Removing existing copy of ${PN}-${PVR}" 244 ewarn "Removing existing copy of ${PN}-${PVR}"

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20