--- mod_chroot-0.2.ebuild.orig 2004-07-20 13:16:27.162789256 +0000 +++ mod_chroot-0.2.ebuild 2004-07-20 13:34:32.724758752 +0000 @@ -1,31 +1,49 @@ -inherit eutils -DESCRIPTION="chroot apache, the easy way" +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + + +DESCRIPTION="chroot apache 1.x, the easy way" HOMEPAGE="http://core.segfault.pl/~hobbit/mod_chroot/" -SRC_URI="http://core.segfault.pl/~hobbit/mod_chroot/dist/mod_chroot-0.2.tar.gz" +SRC_URI="http://core.segfault.pl/~hobbit/mod_chroot/dist/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="x86" +KEYWORDS="~x86" IUSE="" DEPEND="=net-www/apache-1*" -RDEPEND="=net-www/apache-1*" -FEATURES="nomirror" -S=$WORKDIR/$P src_unpack() { unpack ${A} || die; cd ${S} || die } src_compile() { - apxs -c ${S}/mod_chroot.c -o ${S}/mod_chroot.so + apxs -c ${S}/mod_chroot.c -o ${S}/mod_chroot.so || die "Unable to compile mod_chroot.so ." } src_install() { exeinto /usr/lib/apache-extramodules - doexe ${PN}.so + doexe ${PN}.so || die "Cannot install mod_chroot.so" insinto /etc/apache/conf/addon-modules - doins ${FILESDIR}/${PN}.conf + doins ${FILESDIR}/15_${PN}.conf dodoc CAVEATS ChangeLog EAPI INSTALL LICENSE README } + +pkg_postinst() { + einfo + einfo "Execute \"ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config\"" + einfo "to have your apache.conf auto-updated for use with this module." + einfo "You should then edit your /etc/conf.d/apache file to suit." + einfo +} + +pkg_config() { + ${ROOT}/usr/sbin/apacheaddmod \ + ${ROOT}/etc/apache/conf/apache.conf \ + extramodules/mod_chroot.so mod_chroot.c chroot_module \ + define=CHROOT addconf=conf/addon-modules/15_mod_chroot.conf + :; +} +