Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 65573
Collapse All | Expand All

(-)apache-1.3.31-r3.ebuild.orig (-4 / +16 lines)
Lines 1-10 Link Here
1
# Copyright 1999-2004 Gentoo Foundation
1
# Copyright 1999-2004 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-www/apache/apache-1.3.31-r3.ebuild,v 1.10 2004/09/01 17:10:57 lv Exp $
3
# $Header: $
4
4
5
inherit eutils fixheadtails
5
inherit eutils fixheadtails
6
6
7
IUSE="pam"
7
IUSE="pam lingerd"
8
8
9
mod_ssl_ver=2.8.19
9
mod_ssl_ver=2.8.19
10
PATCH_LEVEL="${PV}-r2"
10
PATCH_LEVEL="${PV}-r2"
Lines 25-31 Link Here
25
	>=dev-libs/expat-1.95.2
25
	>=dev-libs/expat-1.95.2
26
	>=sys-apps/sed-4
26
	>=sys-apps/sed-4
27
	=sys-libs/db-1.85-r1
27
	=sys-libs/db-1.85-r1
28
	selinux? ( sec-policy/selinux-apache )"
28
	selinux? ( sec-policy/selinux-apache )
29
	lingerd? ( net-www/lingerd )"
29
LICENSE="Apache-2.0"
30
LICENSE="Apache-2.0"
30
SLOT="1"
31
SLOT="1"
31
32
Lines 35-47 Link Here
35
src_unpack() {
36
src_unpack() {
36
	local myssl
37
	local myssl
37
	unpack ${A} || die
38
	unpack ${A} || die
39
38
	cd ${S} || die
40
	cd ${S} || die
41
	
42
	use lingerd && cp ${FILESDIR}/lingerd/{ap_lingerd.c,li_config.h} src/main/
39
43
40
	epatch ${FILESDIR}/patches/${PATCH_LEVEL}/00_gentoo_base.patch
44
	epatch ${FILESDIR}/patches/${PATCH_LEVEL}/00_gentoo_base.patch
41
	epatch ${FILESDIR}/patches/${PATCH_LEVEL}/00_gentoo_db4_detect.patch
45
	epatch ${FILESDIR}/patches/${PATCH_LEVEL}/00_gentoo_db4_detect.patch
42
	epatch ${FILESDIR}/patches/${PATCH_LEVEL}/00_gentoo_apachectl.patch
46
	epatch ${FILESDIR}/patches/${PATCH_LEVEL}/00_gentoo_apachectl.patch
43
	epatch ${FILESDIR}/patches/${PATCH_LEVEL}/00_apache_proxy_security_fix.patch
47
	epatch ${FILESDIR}/patches/${PATCH_LEVEL}/00_apache_proxy_security_fix.patch
44
48
	
45
	if use pam ; then
49
	if use pam ; then
46
		epatch ${FILESDIR}/patches/${PATCH_LEVEL}/00_gentoo_suexec_pam.patch
50
		epatch ${FILESDIR}/patches/${PATCH_LEVEL}/00_gentoo_suexec_pam.patch
47
	fi
51
	fi
Lines 58-63 Link Here
58
	# set a reasonable MM_CORE_PATH location..
62
	# set a reasonable MM_CORE_PATH location..
59
	sed -i -e 's:logs/mm:/var/cache/apache-mm/mm:' \
63
	sed -i -e 's:logs/mm:/var/cache/apache-mm/mm:' \
60
		src/include/httpd.h
64
		src/include/httpd.h
65
66
	if use lingerd ; then
67
		cd src/  
68
		epatch ${FILESDIR}/lingerd/aplinger.diff
69
	fi;
61
}
70
}
62
71
63
src_compile() {
72
src_compile() {
Lines 175-180 Link Here
175
	insinto /etc/conf.d ; newins ${FILESDIR}/apache.confd apache
184
	insinto /etc/conf.d ; newins ${FILESDIR}/apache.confd apache
176
	insinto /etc/apache ; doins ${FILESDIR}/apache-builtin-mods
185
	insinto /etc/apache ; doins ${FILESDIR}/apache-builtin-mods
177
186
187
	use lingerd && sed -i 's/\(need net.*\)/\1 lingerd/g' ${D}/etc/init.d/apache
188
189
178
	if use pam; then
190
	if use pam; then
179
		insinto /etc/pam.d ; newins ${FILESDIR}/suexec.pam suexec
191
		insinto /etc/pam.d ; newins ${FILESDIR}/suexec.pam suexec
180
	fi
192
	fi

Return to bug 65573