# $Id: Portfile,v 1.3 2005/03/23 19:14:46 mww Exp $

PortSystem 1.0

name			mod_chroot
version			0.4
categories		www security
platforms		darwin
maintainers		mww@opendarwin.org
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:${prefix}/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}
}
