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

Diff of /eclass/webapp.eclass

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

Revision 1.57 Revision 1.58
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.57 2008/02/22 14:59:07 hollow Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.58 2008/02/22 15:33:32 hollow 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
112} 112}
113 113
114# ============================================================================== 114# ==============================================================================
115# PUBLIC FUNCTIONS 115# PUBLIC FUNCTIONS
116# ============================================================================== 116# ==============================================================================
117
118# @FUNCTION: need_httpd
119# @DESCRIPTION:
120# Call this function AFTER your ebuild's DEPEND line if any of the available
121# webservers are able to run this application.
122need_httpd() {
123 DEPEND="${DEPEND}
124 || ( virtual/httpd-basic virtual/httpd-cgi virtual/httpd-fastcgi )"
125}
126
127# @FUNCTION: need_httpd_cgi
128# @DESCRIPTION:
129# Call this function AFTER your ebuild's DEPEND line if any of the available
130# CGI-capable webservers are able to run this application.
131need_httpd_cgi() {
132 DEPEND="${DEPEND}
133 || ( virtual/httpd-cgi virtual/httpd-fastcgi )"
134}
135
136# @FUNCTION: need_httpd_fastcgi
137# @DESCRIPTION:
138# Call this function AFTER your ebuild's DEPEND line if any of the available
139# FastCGI-capabale webservers are able to run this application.
140need_httpd_fastcgi() {
141 DEPEND="${DEPEND}
142 virtual/httpd-fastcgi"
143}
117 144
118# @FUNCTION: webapp_configfile 145# @FUNCTION: webapp_configfile
119# @USAGE: <file> [more files ...] 146# @USAGE: <file> [more files ...]
120# @DESCRIPTION: 147# @DESCRIPTION:
121# Mark a file config-protected for a web-based application. 148# Mark a file config-protected for a web-based application.

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58

  ViewVC Help
Powered by ViewVC 1.1.20