# $Id: Portfile 41808 2008-11-10 23:41:44Z ryandesign@macports.org $

PortSystem 1.0

name			mod_chroot
version			0.4
categories		www security
platforms		darwin
maintainers		nomaintainer
description		module for running apache2 in a secure chroot environment
long_description	mod_chroot makes running apache2 in a secure chroot \
				environment easy. You don't need to create a special \
				directory hierarchy containing /dev, /lib, /etc...

homepage		http://core.segfault.pl/~hobbit/mod_chroot
master_sites	${homepage}/dist/ \
				freebsd
checksums		md5 abd2c8209b61b2a2fecdf10a61051060

depends_lib		path:apache2/bin/apxs:apache2

use_configure	no

build.cmd		${prefix}/apache2/bin/apxs
build.args		-c mod_chroot.c
build.target

destroot {
	set mdir ${destroot}${prefix}/apache2/modules/
	xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} ${mdir}
	xinstall -m 644 ${worksrcpath}/.libs/mod_chroot.so ${mdir}
	xinstall -m 644 -W ${worksrcpath} CAVEATS ChangeLog INSTALL LICENSE \
		README README.Apache20 ${destroot}${prefix}/share/doc/${name}
}
