# $OpenBSD: Makefile,v 1.8 2010/11/20 17:22:44 espie Exp $

COMMENT=	Diffie-Hellman key exchange system

DISTNAME=	Crypt-DH-0.06
PKGNAME=	p5-${DISTNAME}
REVISION=	0
CATEGORIES=	security perl5

# GPL/Artistic
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes

MASTER_SITES=	${MASTER_SITE_PERL_CPAN:=Crypt/}

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	security/p5-Crypt-Random

CONFIGURE_STYLE=perl
USE_GROFF =	Yes

PKG_ARCH=	*

# use a fast computer, tests will finish eventually
#NO_REGRESS=	tests take ages to complete

pre-build:
	@perl -pi -e "s/urandom/arandom/g" ${WRKSRC}/lib/Crypt/DH.pm

.include <bsd.port.mk>
