blob: 12960fad13b3c895d87b06407bbdf91351c85e20 (
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-2005 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.2_alpha1.ebuild,v 1.7 2005/01/09 00:20:51 hollow 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}
www-apps/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
}
|