# New ports collection makefile for:		mod_jail
# Date created:				Oct 7 2005
# Whom:					Frank Laszlo <laszlof@vonostingroup.com>
#
# $FreeBSD: ports/www/mod_jail/Makefile,v 1.11 2012/01/01 16:47:38 ohauer Exp $
#

PORTNAME=	mod_jail
PORTVERSION=	0.5.1
PORTREVISION=	1
CATEGORIES=	www
MASTER_SITES=	http://mod-jail.googlecode.com/files/

MAINTAINER=	apache@FreeBSD.org
COMMENT=	Apache 1.3.x/2.0.xx module to enable an easy alternative to mod_chroot

MAKE_JOBS_SAFE=	yes

WRKSRC=		${WRKDIR}/mod_jail-0.5.1
USE_APACHE=	20+
AP_FAST_BUILD=	YES
AP_GENPLIST=	YES

NOPORTDOCS=	YES
PORTDOCS=	changelog.html documentation.html download.html \
		index.html

.include <bsd.port.pre.mk>

post-extract:
	@${REINPLACE_CMD} -e "s|= apxs|= ${APXS}|" ${WRKSRC}/Makefile

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	@cd ${WRKSRC}/doc && \
		${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.post.mk>
