summaryrefslogtreecommitdiff
blob: 03dd12d73c791f345212dd72e8e34ff1427f3695 (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
40
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_fcgid/mod_fcgid-1.05-r2.ebuild,v 1.2 2005/04/17 19:20:27 ramereth Exp $

DESCRIPTION="mod_fcgid is a binary-compatible alternative to mod_fastcgi
with better process management"
KEYWORDS="~x86"
IUSE=""
SLOT="0"

MY_P=${PN}.${PV}

HOMEPAGE="http://fastcgi.coremail.cn/"
SRC_URI="http://fastcgi.coremail.cn/${MY_P}.tar.gz"
LICENSE="GPL-2"
# For now, I only support the 'stable' layout for apache
DEPEND="<=net-www/apache-2.0.52-r2
	!>net-www/apache-2.0.52-r2
	!<=net-www/apache-1*"
RDEPEND="<=net-www/apache-2.0.52-r2
	!>net-www/apache-2.0.52-r2
	!<=net-www/apache-1*"

src_unpack() {
	unpack ${MY_P}.tar.gz
	cd ${WORKDIR}
	mv ${MY_P} ${PN}-${PV}
	cd ${S}
	sed -i '/^include/s:$:\nINCLUDES=-I/usr/include/apache2:;/^top_dir/s:local:lib:' Makefile
}

src_install() {
	dodoc AUTHOR ChangeLog INSTALL.txt
	exeinto /usr/lib/apache2-extramodules ; doexe .libs/${PN}.so
	insinto /etc/apache2/conf/modules.d ; doins ${FILESDIR}/20_mod_fcgid.conf
}

pkg_postinst() {
	einfo "Add '-D FCGID' to your APACHE2_OPTS in /etc/conf.d/apache2"
}