# New ports collection makefile for:	mod_limitipconn2
# Date created:				18 November 2003
# Whom:					Gea-Suan Lin <gslin@ccca.nctu.edu.tw>
#
# $FreeBSD: ports/www/mod_limitipconn2/Makefile,v 1.1 2004/01/06 00:47:23 clement Exp $
#

PORTNAME=	mod_limitipconn
PORTVERSION=	0.22
CATEGORIES=	www
MASTER_SITES=	http://dominia.org/djao/limit/
DIST_SUBDIR=	apache2

MAINTAINER=	gslin@ccca.nctu.edu.tw
COMMENT=	Allows you to limit the number of simultaneous connexions

USE_APACHE=	YES
WITH_APACHE2=	YES

PORTDOCS=	ChangeLog INSTALL README

do-build:
	@(cd ${WRKSRC} && ${APXS} -c ${PORTNAME}.c)

do-install:
	@(cd ${WRKSRC} && ${APXS} -i -A -n ${PORTNAME:S/mod_//} ${PORTNAME}.la)

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

.include <bsd.port.mk>
