# New ports collection makefile for:   	mod_authn_sasl
# Date created:        			February 16, 2009
# Whom:                			Joerg Pulz <Joerg.Pulz@frm2.tum.de>
#
# $FreeBSD: ports/www/mod_authn_sasl/Makefile,v 1.8 2010/05/26 21:43:21 pgollucci Exp $
#

PORTNAME=	mod_authn_sasl
PORTVERSION=	1.1
CATEGORIES=	www
MASTER_SITES=	SF/mod-authn-sasl/mod-authn-sasl/${PORTVERSION}

MAINTAINER=	apache@FreeBSD.org
COMMENT=	Allows user authentication based on libsasl2 mechanisms on apache 2.2

LIB_DEPENDS=	sasl2.2:${PORTSDIR}/security/cyrus-sasl2

MAKE_JOBS_SAFE=  yes

OPTIONS=	SASLAUTHD	"Register dependency for cyrus-sasl2-saslauthd"	off

USE_BZIP2=	yes
USE_APACHE=	22
AP_FAST_BUILD=	YES
AP_GENPLIST=	YES

PORTDOCS=	AUTHORS LICENSE

.include <bsd.port.options.mk>

.if defined(WITH_SASLAUTHD)
RUN_DEPENDS+=	saslauthd:${PORTSDIR}/security/cyrus-sasl2-saslauthd
.endif

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}/
.   for f in ${PORTDOCS}
	@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.   endfor
.endif

.include <bsd.port.mk>
