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

Diff of /eclass/webapp.eclass

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

Revision 1.20 Revision 1.21
1# Copyright 1999-2004 Gentoo Technologies, Inc. 1# Copyright 1999-2004 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.20 2004/05/22 18:56:58 stuart Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.21 2004/05/25 10:22:02 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
30INSTALL_DIR="/$PN" 30INSTALL_DIR="/$PN"
31IS_UPGRADE=0 31IS_UPGRADE=0
32IS_REPLACE=0 32IS_REPLACE=0
33 33
34INSTALL_CHECK_FILE="installed_by_webapp_eclass" 34INSTALL_CHECK_FILE="installed_by_webapp_eclass"
35
36ETC_CONFIG="/etc/vhosts/webapp-config"
35 37
36# ------------------------------------------------------------------------ 38# ------------------------------------------------------------------------
37# INTERNAL FUNCTION - USED BY THIS ECLASS ONLY 39# INTERNAL FUNCTION - USED BY THIS ECLASS ONLY
38# 40#
39# Check whether a specified file exists within the image/ directory 41# Check whether a specified file exists within the image/ directory
330 fi 332 fi
331 333
332 # pull in the shared configuration file 334 # pull in the shared configuration file
333 335
334 G_HOSTNAME="localhost" 336 G_HOSTNAME="localhost"
335 . /etc/vhosts/webapp-config || die "Unable to open /etc/vhosts/webapp-config file" 337 . ${ETC_CONFIG} || die "Unable to open /etc/vhosts/webapp-config file"
336 338
337 # are we installing a webapp-config solution over the top of a 339 # are we installing a webapp-config solution over the top of a
338 # non-webapp-config solution? 340 # non-webapp-config solution?
339 341
340 if ! use vhosts ; then 342 if ! use vhosts ; then
430 dodir ${MY_SQLSCRIPTSDIR} 432 dodir ${MY_SQLSCRIPTSDIR}
431} 433}
432 434
433function webapp_pkg_postinst () 435function webapp_pkg_postinst ()
434{ 436{
437 . ${ETC_CONFIG}
438
435 # sanity checks, to catch bugs in the ebuild 439 # sanity checks, to catch bugs in the ebuild
436 440
437 if [ ! -f ${MY_APPDIR}/${INSTALL_CHECK_FILE} ]; then 441 if [ ! -f ${MY_APPDIR}/${INSTALL_CHECK_FILE} ]; then
438 eerror 442 eerror
439 eerror "This ebuild did not call webapp_src_install() at the end" 443 eerror "This ebuild did not call webapp_src_install() at the end"

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

  ViewVC Help
Powered by ViewVC 1.1.20