| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 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.28 2004/07/17 15:21:01 stuart Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.29 2004/07/22 14:07:01 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 |
| … | |
… | |
| 119 | function webapp_configfile () |
119 | function webapp_configfile () |
| 120 | { |
120 | { |
| 121 | webapp_checkfileexists "$1" "$D" |
121 | webapp_checkfileexists "$1" "$D" |
| 122 | |
122 | |
| 123 | local MY_FILE="`webapp_strip_appdir \"$1\"`" |
123 | local MY_FILE="`webapp_strip_appdir \"$1\"`" |
| 124 | echo $MY_FILE |
124 | MY_FILE="`webapp_strip_cwd \"$MY_FILE\"`" |
| 125 | |
125 | |
| 126 | einfo "(config) $MY_FILE" |
126 | einfo "(config) $MY_FILE" |
| 127 | echo "$MY_FILE" >> ${D}${WA_CONFIGLIST} |
127 | echo "$MY_FILE" >> ${D}${WA_CONFIGLIST} |
| 128 | } |
128 | } |
| 129 | |
129 | |
| … | |
… | |
| 200 | |
200 | |
| 201 | function webapp_serverowned () |
201 | function webapp_serverowned () |
| 202 | { |
202 | { |
| 203 | webapp_checkfileexists "$1" "$D" |
203 | webapp_checkfileexists "$1" "$D" |
| 204 | local MY_FILE="`webapp_strip_appdir \"$1\"`" |
204 | local MY_FILE="`webapp_strip_appdir \"$1\"`" |
|
|
205 | MY_FILE="`webapp_strip_cwd \"$MY_FILE\"`" |
| 205 | |
206 | |
| 206 | einfo "(server owned) $MY_FILE" |
207 | einfo "(server owned) $MY_FILE" |
| 207 | echo "$MY_FILE" >> "${D}${WA_SOLIST}" |
208 | echo "$MY_FILE" >> "${D}${WA_SOLIST}" |
| 208 | } |
209 | } |
| 209 | |
210 | |