diff options
author | Gabor Pali <pgj@FreeBSD.org> | 2012-02-18 16:09:15 +0000 |
---|---|---|
committer | Gabor Pali <pgj@FreeBSD.org> | 2012-02-18 16:09:15 +0000 |
commit | 45819fa5598607fa15d83b405cc786769b65cd82 (patch) | |
tree | 2200a6dab5368cd60998af306f0f7f877f4243a3 /security/hs-RSA/Makefile | |
parent | b57a83d9a749eea8ec36ad29b8a9d86758df2106 (diff) | |
download | ports-45819fa5598607fa15d83b405cc786769b65cd82.tar.gz ports-45819fa5598607fa15d83b405cc786769b65cd82.zip |
This library implements the RSA encryption and signature algorithms for
arbitrarily-sized ByteStrings. While the implementations work, they are
not necessarily the fastest ones on the planet. Particularly key
generation. The algorithms included are based of RFC 3447, or the
Public-Key Cryptography Standard for RSA, version 2.1 (a.k.a, PKCS#1
v2.1).
WWW: http://hackage.haskell.org/package/RSA
Obtained from: FreeBSD Haskell
Notes
Notes:
svn path=/head/; revision=291688
Diffstat (limited to 'security/hs-RSA/Makefile')
-rw-r--r-- | security/hs-RSA/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/security/hs-RSA/Makefile b/security/hs-RSA/Makefile new file mode 100644 index 000000000000..7206046dbfec --- /dev/null +++ b/security/hs-RSA/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: hs-RSA +# Date created: December 26, 2011 +# Whom: haskell@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= RSA +PORTVERSION= 1.0.6.2 +CATEGORIES= security haskell + +MAINTAINER= haskell@FreeBSD.org +COMMENT= Implementation of RSA, using the padding schemes of PKCS#1 v2.1 + +LICENSE= BSD + +CABAL_SETUP= Setup.hs +USE_CABAL= SHA + +OPTIONS= MD5 "Include support for using MD5" on \ + BINARY "Use the binary package for serialization" on + +.include "${.CURDIR}/../../lang/ghc/bsd.cabal.options.mk" +.include <bsd.port.options.mk> + +.if defined(WITH_MD5) +CONFIGURE_ARGS+= --flags="IncludeMD5" +USE_CABAL+= pureMD5 +.else +CONFIGURE_ARGS+= --flags="-IncludeMD5" +.endif + +.if defined(WITH_BINARY) +CONFIGURE_ARGS+= --flags="UseBinary" +USE_CABAL+= binary +.else +CONFIGURE_ARGS+= --flags="-UseBinary" +.endif + +.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" +.include <bsd.port.mk> |