| 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.25 2004/06/27 00:30:56 stuart Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.26 2004/06/28 16:00:29 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 |
| … | |
… | |
| 219 | # NOTE: |
219 | # NOTE: |
| 220 | # this function will automagically prepend $1 to the front of your |
220 | # this function will automagically prepend $1 to the front of your |
| 221 | # config file's name |
221 | # config file's name |
| 222 | # ------------------------------------------------------------------------ |
222 | # ------------------------------------------------------------------------ |
| 223 | |
223 | |
| 224 | function webapp_server_config () |
224 | function webapp_server_configfile () |
| 225 | { |
225 | { |
| 226 | webapp_checkfileexists "$2" |
226 | webapp_checkfileexists "$2" |
| 227 | |
227 | |
| 228 | # sort out what the name will be of the config file |
228 | # sort out what the name will be of the config file |
| 229 | |
229 | |
| … | |
… | |
| 429 | dodir "${MY_CGIBINDIR}" |
429 | dodir "${MY_CGIBINDIR}" |
| 430 | dodir "${MY_ICONSDIR}" |
430 | dodir "${MY_ICONSDIR}" |
| 431 | dodir "${MY_ERRORSDIR}" |
431 | dodir "${MY_ERRORSDIR}" |
| 432 | dodir "${MY_SQLSCRIPTSDIR}" |
432 | dodir "${MY_SQLSCRIPTSDIR}" |
| 433 | dodir "${MY_HOOKSCRIPTSDIR}" |
433 | dodir "${MY_HOOKSCRIPTSDIR}" |
|
|
434 | dodir "${MY_SERVERCONFIGDIR}" |
| 434 | } |
435 | } |
| 435 | |
436 | |
| 436 | function webapp_pkg_postinst () |
437 | function webapp_pkg_postinst () |
| 437 | { |
438 | { |
| 438 | . "${ETC_CONFIG}" |
439 | . "${ETC_CONFIG}" |