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

Diff of /eclass/webapp.eclass

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

Revision 1.66 Revision 1.67
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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/webapp.eclass,v 1.66 2011/05/19 12:05:13 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.67 2011/07/12 07:48:01 lxnay Exp $
4 4
5# @ECLASS: webapp.eclass 5# @ECLASS: webapp.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# web-apps@gentoo.org 7# web-apps@gentoo.org
8# @BLURB: functions for installing applications to run under a web server 8# @BLURB: functions for installing applications to run under a web server
119 119
120 if [[ "${my_pn}" == "${PN}" ]]; then 120 if [[ "${my_pn}" == "${PN}" ]]; then
121 if [[ "${my_pvr}" != "${PVR}" ]]; then 121 if [[ "${my_pvr}" != "${PVR}" ]]; then
122 elog "This is an upgrade" 122 elog "This is an upgrade"
123 IS_UPGRADE=1 123 IS_UPGRADE=1
124 # for binpkgs, reset status, var declared in global scope
125 IS_REPLACE=0
124 else 126 else
125 elog "This is a re-installation" 127 elog "This is a re-installation"
126 IS_REPLACE=1 128 IS_REPLACE=1
129 # for binpkgs, reset status, var declared in global scope
130 IS_UPGRADE=0
127 fi 131 fi
128 else 132 else
129 elog "${my_output} is installed there" 133 elog "${my_output} is installed there"
130 fi 134 fi
131 else 135 else
136 # for binpkgs, reset status, var declared in global scope
137 IS_REPLACE=0
138 IS_UPGRADE=0
132 elog "This is an installation" 139 elog "This is an installation"
133 fi 140 fi
134} 141}
135 142
136# ============================================================================== 143# ==============================================================================
539 if has vhosts ${IUSE} && ! use vhosts; then 546 if has vhosts ${IUSE} && ! use vhosts; then
540 echo "${my_output}" | while read x; do 547 echo "${my_output}" | while read x; do
541 if [[ -f "${x}"/.webapp ]]; then 548 if [[ -f "${x}"/.webapp ]]; then
542 . "${x}"/.webapp 549 . "${x}"/.webapp
543 if [[ -n "${WEB_HOSTNAME}" && -n "${WEB_INSTALLDIR}" ]]; then 550 if [[ -n "${WEB_HOSTNAME}" && -n "${WEB_INSTALLDIR}" ]]; then
544 ${WEBAPP_CONFIG} -C -h ${WEB_HOSTNAME} -d ${WEB_INSTALLDIR} 551 ${WEBAPP_CONFIG} -C -h ${WEB_HOSTNAME} -d ${WEB_INSTALLDIR} ${PN} ${PVR}
545 fi 552 fi
546 else 553 else
547 ewarn "Cannot find file ${x}/.webapp" 554 ewarn "Cannot find file ${x}/.webapp"
548 fi 555 fi
549 done 556 done

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67

  ViewVC Help
Powered by ViewVC 1.1.20