summaryrefslogtreecommitdiff
blob: 1ffade292b6799efc49662985837d8ab0ecff21f (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/mod_scgi/mod_scgi-1.2_alpha1.ebuild,v 1.4 2003/09/06 01:54:08 msterret Exp $

apachedir='1'
apache=''
use apache2 && apache=2 apachedir=2

P0=${P/mod_/}
MY_P=${P0/_alpha/a}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Apache module for a Replacement for the CGI protocol that is similar to FastCGI"
HOMEPAGE="http://www.mems-exchange.org/software/scgi/"
SRC_URI="http://www.mems-exchange.org/software/files/${PN}/${MY_P}.tar.gz"
LICENSE="CNRI"
SLOT="${apachedir}"
KEYWORDS="~x86"
IUSE="apache2"
DEPEND="${DEPEND}
		net-www/scgi
		net-www/apache
		apache2? ( >=net-www/apache-2 )"

src_compile() {
	cd apache${apachedir}
	make || die "apache${apachedir} mod_scgi make failed"
}

src_install() {
	newdoc apache1/README README.apache1
	newdoc apache2/README README.apache2
	dodoc README PKG-INFO LICENSE.txt CHANGES
	exeinto /usr/lib/apache${apache}-extramodules
	doexe apache${apachedir}/.libs/${PN}.so
	insinto /etc/apache${apache}/conf/modules.d
	doins ${FILESDIR}/20_mod_scgi.conf
}