# New ports collection makefile for:    apache mod_auth_pgsql
# Date created:		2000/11/10
# Whom:			Mikhail Teterin <mi@aldan.algebra.com>
#
# $FreeBSD: ports/www/mod_auth_pgsql/Makefile,v 1.23 2009/04/13 02:27:07 pgollucci Exp $

PORTNAME=	mod_auth_pgsql
PORTVERSION=	0.9.12
PORTREVISION=	4
CATEGORIES=	www
MASTER_SITES=	http://www.giuseppetanzilli.it/${PORTNAME}/dist/

MAINTAINER=	apache@FreeBSD.org
COMMENT=	Allows users to use PostgreSQL databases for user authentication

USE_DOS2UNIX=	${PORTNAME}.html

USE_PGSQL=	yes
USE_APACHE=	1.3

WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION:S/a//}

HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-pgsql=${PREFIX} \
		--with-apxs=${APXS}

PORTDOCS=	README index.html

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}/
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.html ${DOCSDIR}/index.html
.endif
	${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
