mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
This Haskell library implements the SHA suite of message digest
functions, according to NIST FIPS 180-2 (with the SHA-224 addendum), as well as the SHA-based HMAC routines. The functions have been tested against most of the NIST and RFC test vectors for the various functions. While some attention has been paid to performance, these do not presently reach the speed of well-tuned libraries, like OpenSSL. WWW: http://hackage.haskell.org/package/SHA
This commit is contained in:
parent
b14ca57666
commit
4d72430e02
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247767
@ -183,6 +183,7 @@
|
||||
SUBDIR += horde-jeta
|
||||
SUBDIR += hostsentry
|
||||
SUBDIR += hotssh
|
||||
SUBDIR += hs-SHA
|
||||
SUBDIR += hs-digest-ghc
|
||||
SUBDIR += httprint
|
||||
SUBDIR += hunch
|
||||
|
78
security/hs-SHA/Makefile
Normal file
78
security/hs-SHA/Makefile
Normal file
@ -0,0 +1,78 @@
|
||||
# New ports collection makefile for: hs-SHA
|
||||
# Date created: January 8, 2010
|
||||
# Whom: Gabor Pali <pgj@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= SHA
|
||||
PORTVERSION= 1.4.0
|
||||
CATEGORIES= security haskell
|
||||
MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
|
||||
PKGNAMEPREFIX= hs-
|
||||
|
||||
MAINTAINER= haskell@FreeBSD.org
|
||||
COMMENT= Haskell Implementations of the SHA suite of message digest functions
|
||||
|
||||
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
|
||||
hs-binary-ghc>=0.4:${PORTSDIR}/devel/hs-binary-ghc
|
||||
|
||||
RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
|
||||
hs-binary-ghc>=0.4:${PORTSDIR}/devel/hs-binary-ghc
|
||||
|
||||
GHC_VERSION= 6.10.4
|
||||
HSSHA_VERSION= ${PORTVERSION}
|
||||
|
||||
GHC_CMD= ${LOCALBASE}/bin/ghc
|
||||
SETUP_CMD= ./setup
|
||||
|
||||
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
|
||||
HSSHA_LIBDIR_REL= lib/${DISTNAME}
|
||||
|
||||
PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
|
||||
HSSHA_VERSION=${HSSHA_VERSION} \
|
||||
HSSHA_LIBDIR_REL=${HSSHA_LIBDIR_REL}
|
||||
|
||||
.if defined(NOPORTDOCS)
|
||||
PLIST_SUB+= NOPORTDOCS=""
|
||||
.else
|
||||
PLIST_SUB+= NOPORTDOCS="@comment "
|
||||
.endif
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
|
||||
PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
|
||||
.if !empty(PORT_HADDOCK:M?0)
|
||||
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
|
||||
.endif
|
||||
BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
|
||||
|
||||
HSCOLOUR_VERSION= 1.15
|
||||
HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
|
||||
|
||||
PORTDOCS= *
|
||||
.endif
|
||||
|
||||
.SILENT:
|
||||
|
||||
do-configure:
|
||||
cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
|
||||
&& ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC} && ${SETUP_CMD} build \
|
||||
&& ${SETUP_CMD} register --gen-script
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
|
||||
--hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC} && ${SETUP_CMD} install \
|
||||
&& ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSSHA_LIBDIR_REL}/register.sh
|
||||
|
||||
post-install:
|
||||
${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
|
||||
|
||||
.include <bsd.port.mk>
|
3
security/hs-SHA/distinfo
Normal file
3
security/hs-SHA/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (SHA-1.4.0.tar.gz) = b89d52db97559b90246a534b1e66af20
|
||||
SHA256 (SHA-1.4.0.tar.gz) = 7f08042fddadd8e3795d627a042d1884b33e066ab67d03b6de92551a4ad9fc7d
|
||||
SIZE (SHA-1.4.0.tar.gz) = 2711278
|
8
security/hs-SHA/pkg-descr
Normal file
8
security/hs-SHA/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
This Haskell library implements the SHA suite of message digest
|
||||
functions, according to NIST FIPS 180-2 (with the SHA-224 addendum), as
|
||||
well as the SHA-based HMAC routines. The functions have been tested
|
||||
against most of the NIST and RFC test vectors for the various functions.
|
||||
While some attention has been paid to performance, these do not
|
||||
presently reach the speed of well-tuned libraries, like OpenSSL.
|
||||
|
||||
WWW: http://hackage.haskell.org/package/SHA
|
16
security/hs-SHA/pkg-plist
Normal file
16
security/hs-SHA/pkg-plist
Normal file
@ -0,0 +1,16 @@
|
||||
@comment $FreeBSD$
|
||||
%%HSSHA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest/Pure/SHA.hi
|
||||
%%HSSHA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSSHA-%%HSSHA_VERSION%%.o
|
||||
%%HSSHA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSSHA-%%HSSHA_VERSION%%.a
|
||||
%%HSSHA_LIBDIR_REL%%/register.sh
|
||||
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
|
||||
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
|
||||
@dirrm %%HSSHA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest/Pure
|
||||
@dirrm %%HSSHA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest
|
||||
@dirrm %%HSSHA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
|
||||
@dirrm %%HSSHA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
|
||||
@dirrm %%HSSHA_LIBDIR_REL%%
|
||||
@exec /bin/sh %D/%%HSSHA_LIBDIR_REL%%/register.sh
|
||||
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
|
||||
@unexec %D/bin/ghc-pkg unregister SHA
|
||||
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
|
Loading…
Reference in New Issue
Block a user