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

Diff of /eclass/webapp.eclass

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

Revision 1.38 Revision 1.39
1# Copyright 1999-2005 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.38 2006/01/01 01:14:59 swegener Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.39 2006/01/11 15:19:42 rl03 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
9# 9#
10# Author(s) Stuart Herbert <stuart@gentoo.org> 10# Author(s) Stuart Herbert <stuart@gentoo.org>
11# Renat Lumpau <rl03@gentoo.org> 11# Renat Lumpau <rl03@gentoo.org>
12# Gunnar Wrobel <php@gunnarwrobel.org> 12# Gunnar Wrobel <wrobel@gentoo.org>
13# 13#
14# ------------------------------------------------------------------------ 14# ------------------------------------------------------------------------
15# 15#
16# The master copy of this eclass is held in our subversion repository. 16# The master copy of this eclass is held in our subversion repository.
17# http://svn.gnqs.org/projects/vhost-tools/browser/ 17# http://svn.gnqs.org/projects/vhost-tools/browser/
123# @param $1 - config file 123# @param $1 - config file
124# ------------------------------------------------------------------------ 124# ------------------------------------------------------------------------
125 125
126function webapp_configfile () 126function webapp_configfile ()
127{ 127{
128 local m=""
129 for m in "$@" ; do
128 webapp_checkfileexists "${1}" "${D}" 130 webapp_checkfileexists "${m}" "${D}"
129 131
130 local MY_FILE="$(webapp_strip_appdir ${1})" 132 local MY_FILE="$(webapp_strip_appdir ${m})"
131 MY_FILE="$(webapp_strip_cwd ${MY_FILE})" 133 MY_FILE="$(webapp_strip_cwd ${MY_FILE})"
132 134
133 einfo "(config) ${MY_FILE}" 135 einfo "(config) ${MY_FILE}"
134 echo "${MY_FILE}" >> ${D}/${WA_CONFIGLIST} 136 echo "${MY_FILE}" >> ${D}/${WA_CONFIGLIST}
137 done
135} 138}
136 139
137# ------------------------------------------------------------------------ 140# ------------------------------------------------------------------------
138# EXPORTED FUNCTION - FOR USE IN EBUILDS 141# EXPORTED FUNCTION - FOR USE IN EBUILDS
139# 142#
199# 202#
200# ------------------------------------------------------------------------ 203# ------------------------------------------------------------------------
201 204
202function webapp_serverowned () 205function webapp_serverowned ()
203{ 206{
207 local a=""
208 local m=""
209 if [ ${1} = "-R" ]; then
210 shift
211 for m in "$@" ; do
212 for a in $(find ${D}/${m}); do
213 a=${a/${D}\/\///}
214 webapp_checkfileexists "${a}" "$D"
215 local MY_FILE="$(webapp_strip_appdir ${a})"
216 MY_FILE="$(webapp_strip_cwd ${MY_FILE})"
217
218 einfo "(server owned) ${MY_FILE}"
219 echo "${MY_FILE}" >> "${D}/${WA_SOLIST}"
220 done
221 done
222 else
223 for m in "$@" ; do
204 webapp_checkfileexists "${1}" "$D" 224 webapp_checkfileexists "${m}" "$D"
205 local MY_FILE="$(webapp_strip_appdir ${1})" 225 local MY_FILE="$(webapp_strip_appdir ${m})"
206 MY_FILE="$(webapp_strip_cwd ${MY_FILE})" 226 MY_FILE="$(webapp_strip_cwd ${MY_FILE})"
207 227
208 einfo "(server owned) ${MY_FILE}" 228 einfo "(server owned) ${MY_FILE}"
209 echo "${MY_FILE}" >> "${D}/${WA_SOLIST}" 229 echo "${MY_FILE}" >> "${D}/${WA_SOLIST}"
230 done
231 fi
210} 232}
211 233
212# ------------------------------------------------------------------------ 234# ------------------------------------------------------------------------
213# EXPORTED FUNCTION - FOR USE IN EBUILDS 235# EXPORTED FUNCTION - FOR USE IN EBUILDS
214# 236#

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

  ViewVC Help
Powered by ViewVC 1.1.20