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

(-)mod_chroot-0.2.ebuild.orig (-10 / +28 lines)
Lines 1-31 Link Here
1
inherit eutils
1
# Copyright 1999-2004 Gentoo Technologies, Inc.
2
DESCRIPTION="chroot apache, the easy way"
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: $
4
5
6
DESCRIPTION="chroot apache 1.x, the easy way"
3
HOMEPAGE="http://core.segfault.pl/~hobbit/mod_chroot/"
7
HOMEPAGE="http://core.segfault.pl/~hobbit/mod_chroot/"
4
SRC_URI="http://core.segfault.pl/~hobbit/mod_chroot/dist/mod_chroot-0.2.tar.gz"
8
SRC_URI="http://core.segfault.pl/~hobbit/mod_chroot/dist/${P}.tar.gz"
5
LICENSE="GPL-2"
9
LICENSE="GPL-2"
6
SLOT="0"
10
SLOT="0"
7
KEYWORDS="x86"
11
KEYWORDS="~x86"
8
IUSE=""
12
IUSE=""
9
DEPEND="=net-www/apache-1*"
13
DEPEND="=net-www/apache-1*"
10
RDEPEND="=net-www/apache-1*"
11
FEATURES="nomirror"
12
14
13
S=$WORKDIR/$P
14
15
15
src_unpack() {
16
src_unpack() {
16
	unpack ${A} || die; cd ${S} || die
17
	unpack ${A} || die; cd ${S} || die
17
}
18
}
18
19
19
src_compile() {
20
src_compile() {
20
	apxs -c ${S}/mod_chroot.c -o ${S}/mod_chroot.so
21
	apxs -c ${S}/mod_chroot.c -o ${S}/mod_chroot.so || die "Unable to compile mod_chroot.so ."
21
}
22
}
22
23
23
src_install() {
24
src_install() {
24
	exeinto /usr/lib/apache-extramodules
25
	exeinto /usr/lib/apache-extramodules
25
	doexe ${PN}.so
26
	doexe ${PN}.so || die "Cannot install mod_chroot.so"
26
27
27
	insinto /etc/apache/conf/addon-modules
28
	insinto /etc/apache/conf/addon-modules
28
	doins ${FILESDIR}/${PN}.conf
29
	doins ${FILESDIR}/15_${PN}.conf
29
	dodoc CAVEATS ChangeLog EAPI INSTALL LICENSE README
30
	dodoc CAVEATS ChangeLog EAPI INSTALL LICENSE README
30
}
31
}
31
32
33
34
pkg_postinst() {
35
        einfo
36
        einfo "Execute \"ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config\""
37
        einfo "to have your apache.conf auto-updated for use with this module."
38
        einfo "You should then edit your /etc/conf.d/apache file to suit."
39
        einfo
40
}
41
42
pkg_config() {
43
        ${ROOT}/usr/sbin/apacheaddmod \
44
                ${ROOT}/etc/apache/conf/apache.conf \
45
                extramodules/mod_chroot.so mod_chroot.c chroot_module \
46
                define=CHROOT addconf=conf/addon-modules/15_mod_chroot.conf
47
        :;
48
}
49

Return to bug 55707