# Created by: Henk van Oers <hvo.pm@xs4all.nl>
# $FreeBSD: tags/RELEASE_10_3_0/security/p5-Dancer2-Plugin-Auth-Extensible/Makefile 391544 2015-07-08 03:11:28Z pgollucci $

PORTNAME=	Dancer2-Plugin-Auth-Extensible
PORTVERSION=	0.401
CATEGORIES=	security perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	hvo.pm@xs4all.nl
COMMENT=	Extensible authentication framework for Dancer2 apps

LICENSE=	ART10 GPLv1
LICENSE_COMB=	dual

BUILD_DEPENDS=	p5-Crypt-SaltedHash>=0:${PORTSDIR}/security/p5-Crypt-SaltedHash \
		p5-Session-Token>=0:${PORTSDIR}/security/p5-Session-Token \
		p5-Dancer2>=0.153002:${PORTSDIR}/www/p5-Dancer2
RUN_DEPENDS:=	${BUILD_DEPENDS}

USES=		perl5
USE_PERL5=	configure

OPTIONS_DEFINE=	DPAEPD DPAEPU
DPAEPD_DESC=	Extra dependencies for Provider::Database
DPAEPU_DESC=	Extra dependencies for Provider::Unix

DPAEPD_BUILD_DEPENDS=	p5-Dancer2-Plugin-Database>=0:${PORTSDIR}/databases/p5-Dancer2-Plugin-Database
DPAEPU_BUILD_DEPENDS=	p5-Authen-Simple-PAM>=0:${PORTSDIR}/security/p5-Authen-Simple-PAM \
			p5-Unix-Passwd-File>=0:${PORTSDIR}/security/p5-Unix-Passwd-File

# bin/generate-crypted-password belongs to D1 version
post-patch:
	${REINPLACE_CMD} -e '/generate-crypted-password/d' ${WRKSRC}/MANIFEST
	${REINPLACE_CMD} -e '/generate-crypted-password/d' ${WRKSRC}/Makefile.PL

.include <bsd.port.mk>
