PORTNAME=	Apache-AuthCookie
PORTVERSION=	3.32
CATEGORIES=	www perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Perl module to provide custom forms for reauthentication
WWW=		https://metacpan.org/release/Apache-AuthCookie

LICENSE=	ART10 GPLv1+
LICENSE_COMB=	dual
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	${APACHE_PKGNAMEPREFIX}mod_perl2>=1.39:www/mod_perl2 \
		p5-Class-Load>=0.03:devel/p5-Class-Load \
		p5-Hash-MultiValue>=0:devel/p5-Hash-MultiValue \
		p5-HTTP-Body>=0:www/p5-HTTP-Body \
		p5-URI>=1.36:net/p5-URI \
		p5-WWW-Form-UrlEncoded>=0:www/p5-WWW-Form-UrlEncoded

USES=		apache perl5
USE_PERL5=	configure

NO_ARCH=	yes

.include <bsd.port.pre.mk>

CURUSER?=	`whoami`
CURGRP?=	`groups | ${AWK} '{print $$1}'`
TESTPORT?=	8228
CONFIGURE_ENV+=	APACHE="${HTTPD}" \
		TESTGRP="${CURGRP}" \
		TESTPORT="${TESTPORT}" \
		TESTUSER="${CURUSER}"

.include <bsd.port.post.mk>
