openbsd-ports/security/p5-Crypt-Random/Makefile
sturm 6cf0a1a7e7 Initial import of
- Crypt-DH-0.03, Diffie-Hellman implementation
- Crypt-DSA-0.12, DSA implementation
- Crypt-Primes-0.50, prime number generator
- Crypt-RSA-1.55, RSA implementation
- Crypt-Random-1.23, cryptographically secure random number generator
all written in pure perl
2005-02-23 20:08:48 +00:00

36 lines
866 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2005/02/23 20:08:48 sturm Exp $
COMMENT= "cryptographically secure random number generator"
DISTNAME= Crypt-Random-1.23
PKGNAME= p5-${DISTNAME}
CATEGORIES= security perl5
MAINTAINER= Nikolay Sturm <sturm@openbsd.org>
# 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= ::devel/p5-Class-Loader \
::math/p5-Math-Pari
CONFIGURE_STYLE=perl
NO_REGRESS= "/dev/srandom tests might take forever"
PKG_ARCH= *
post-configure:
@perl -pi -e "s,/dev/urandom,/dev/arandom,g;" \
-e "s,/dev/random,/dev/srandom,g;" \
${WRKSRC}/lib/Crypt/Random.pm \
${WRKSRC}/lib/Crypt/Random/Provider/devrandom.pm \
${WRKSRC}/lib/Crypt/Random/Provider/devurandom.pm
.include <bsd.port.mk>