summaryrefslogtreecommitdiff
blob: 9ddb0cdc1b646fb1b076eca0992819b938ac1007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/mod_scgi/mod_scgi-1.10.ebuild,v 1.2 2007/01/14 19:59:34 chtekk Exp $

inherit apache-module

KEYWORDS="~ppc ~x86"

DESCRIPTION="Apache module for a replacement of the CGI protocol, similar to FastCGI."
HOMEPAGE="http://www.mems-exchange.org/software/scgi/"
SRC_URI="http://www.mems-exchange.org/software/files/scgi/${P/mod_}.tar.gz"
LICENSE="CNRI"
SLOT="0"
IUSE=""

DEPEND="www-apps/scgi"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${P/mod_}"

APXS1_S="${S}/apache1"
APACHE1_MOD_FILE="${S}/apache1/${PN}.so"
APACHE1_MOD_CONF="20_mod_scgi"
APACHE1_MOD_DEFINE="SCGI"

APXS2_S="${S}/apache2"
APACHE2_MOD_FILE="${S}/apache2/.libs/${PN}.so"
APACHE2_MOD_CONF="20_mod_scgi"
APACHE2_MOD_DEFINE="SCGI"

need_apache

DOCFILES="PKG-INFO LICENSE.txt CHANGES"

if use apache2 ; then
	DOCFILES="${DOCFILES} apache2/README"
else
	DOCFILES="${DOCFILES} apache1/README"
fi