blob: d4cb58ffbefb172849f4947c0ed80597e13795cd (
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
41
|
# Copyright 1999-2006 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.07.ebuild,v 1.2 2006/02/04 20:18:04 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.54-r30
!>net-www/apache-2.0.54-r30
!=net-www/apache-1*"
RDEPEND="<=net-www/apache-2.0.54-r30
!>net-www/apache-2.0.54-r30
!=net-www/apache-1*"
src_unpack() {
unpack ${MY_P}.tar.gz
cd ${WORKDIR}
mv ${MY_P} ${P}
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
newins ${FILESDIR}/20_mod_fcgid.conf-oldlayout 20_mod_fcgid.conf
}
pkg_postinst() {
einfo "Add '-D FCGID' to your APACHE2_OPTS in /etc/conf.d/apache2"
}
|