From 41139906e9dbfe776d429c15e7a685295698fb0d Mon Sep 17 00:00:00 2001 From: pgj Date: Fri, 23 Jan 2009 23:47:58 +0000 Subject: This package provides efficient cryptographic hash implementations for strict and lazy bytestrings for the functional programming language Haskell. WWW: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/digest Reviewed by: gabor Approved by: tabthorpe --- security/Makefile | 1 + security/hs-digest-ghc/Makefile | 55 ++++++++++++++++++++++++++++++++++++++++ security/hs-digest-ghc/distinfo | 3 +++ security/hs-digest-ghc/pkg-descr | 5 ++++ security/hs-digest-ghc/pkg-plist | 13 ++++++++++ security/hs-digest/Makefile | 55 ++++++++++++++++++++++++++++++++++++++++ security/hs-digest/distinfo | 3 +++ security/hs-digest/pkg-descr | 5 ++++ security/hs-digest/pkg-plist | 13 ++++++++++ 9 files changed, 153 insertions(+) create mode 100644 security/hs-digest-ghc/Makefile create mode 100644 security/hs-digest-ghc/distinfo create mode 100644 security/hs-digest-ghc/pkg-descr create mode 100644 security/hs-digest-ghc/pkg-plist create mode 100644 security/hs-digest/Makefile create mode 100644 security/hs-digest/distinfo create mode 100644 security/hs-digest/pkg-descr create mode 100644 security/hs-digest/pkg-plist diff --git a/security/Makefile b/security/Makefile index bc8f8baa24f1..9f4f80c27783 100644 --- a/security/Makefile +++ b/security/Makefile @@ -185,6 +185,7 @@ SUBDIR += hmap SUBDIR += horde-jeta SUBDIR += hostsentry + SUBDIR += hs-digest-ghc SUBDIR += httprint SUBDIR += hunch SUBDIR += hydra diff --git a/security/hs-digest-ghc/Makefile b/security/hs-digest-ghc/Makefile new file mode 100644 index 000000000000..a9a5cd77712b --- /dev/null +++ b/security/hs-digest-ghc/Makefile @@ -0,0 +1,55 @@ +# New ports collection makefile for: hs-digest-ghc +# Date created: January 22, 2009 +# Whom: Gabor Pali +# +# $FreeBSD$ +# + +PORTNAME= digest +PORTVERSION= 0.0.0.2 +CATEGORIES= security haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- +PKGNAMESUFFIX= -ghc + +MAINTAINER= haskell@FreeBSD.org +COMMENT= Efficient cryptographic hash implementations in Haskell + +BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc +RUN_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc + +GHC_VERSION= 6.8.3 +CABALCMD= ${LOCALBASE}/bin/runghc Setup.hs +CABALDIR= lib/ghc-${GHC_VERSION}/cabal + +SUBDIR= lib/${PORTNAME}-${PORTVERSION} +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + PORTNAME=${PORTNAME} \ + PORTVERSION=${PORTVERSION} \ + SUBDIR=${CABALDIR} +DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} +PORTDOCS= LICENSE html + +CONFIGURE_ARGS= --ghc --prefix=${PREFIX} --libdir=${PREFIX}/${CABALDIR} --libsubdir='' --datasubdir='' + +.if !defined(NOPORTDOCS) +BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock +PLIST_SUB+= RMLIC="@comment " +.else +PLIST_SUB+= RMLIC="" +.endif + +do-configure: + cd ${WRKSRC} && ${CABALCMD} configure ${CONFIGURE_ARGS} + +do-build: + cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register +.if !defined(NOPORTDOCS) + cd ${WRKSRC} && ${CABALCMD} haddock +.endif + +do-install: + cd ${WRKSRC} && ${CABALCMD} install + ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${CABALDIR}/${PORTNAME}-register.sh + +.include diff --git a/security/hs-digest-ghc/distinfo b/security/hs-digest-ghc/distinfo new file mode 100644 index 000000000000..26a631db0ae8 --- /dev/null +++ b/security/hs-digest-ghc/distinfo @@ -0,0 +1,3 @@ +MD5 (digest-0.0.0.2.tar.gz) = c093bf8ba6b0e94492e125d2aae710e1 +SHA256 (digest-0.0.0.2.tar.gz) = f91066f0f1c3b7b0126e8bbcf774d8a1d3f4fa78cd28693411cda7a37172b8ac +SIZE (digest-0.0.0.2.tar.gz) = 44339 diff --git a/security/hs-digest-ghc/pkg-descr b/security/hs-digest-ghc/pkg-descr new file mode 100644 index 000000000000..c57435d330e6 --- /dev/null +++ b/security/hs-digest-ghc/pkg-descr @@ -0,0 +1,5 @@ +This package provides efficient cryptographic hash implementations for +strict and lazy bytestrings for the functional programming language +Haskell. + +WWW: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/digest diff --git a/security/hs-digest-ghc/pkg-plist b/security/hs-digest-ghc/pkg-plist new file mode 100644 index 000000000000..a379656b2624 --- /dev/null +++ b/security/hs-digest-ghc/pkg-plist @@ -0,0 +1,13 @@ +%%SUBDIR%%/Data/Digest/Adler32.hi +%%SUBDIR%%/Data/Digest/CRC32.hi +%%SUBDIR%%/HS%%PORTNAME%%-%%PORTVERSION%%.o +%%SUBDIR%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a +%%SUBDIR%%/%%PORTNAME%%-register.sh +%%RMLIC%%%%DOCSDIR%%/LICENSE +%%RMLIC%%@dirrm %%DOCSDIR%% +@dirrmtry %%SUBDIR%%/Data/Digest +@dirrmtry %%SUBDIR%%/Data +@exec sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh +@exec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec ghc-pkg unregister %%PORTNAME%% +@unexec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old diff --git a/security/hs-digest/Makefile b/security/hs-digest/Makefile new file mode 100644 index 000000000000..a9a5cd77712b --- /dev/null +++ b/security/hs-digest/Makefile @@ -0,0 +1,55 @@ +# New ports collection makefile for: hs-digest-ghc +# Date created: January 22, 2009 +# Whom: Gabor Pali +# +# $FreeBSD$ +# + +PORTNAME= digest +PORTVERSION= 0.0.0.2 +CATEGORIES= security haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- +PKGNAMESUFFIX= -ghc + +MAINTAINER= haskell@FreeBSD.org +COMMENT= Efficient cryptographic hash implementations in Haskell + +BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc +RUN_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc + +GHC_VERSION= 6.8.3 +CABALCMD= ${LOCALBASE}/bin/runghc Setup.hs +CABALDIR= lib/ghc-${GHC_VERSION}/cabal + +SUBDIR= lib/${PORTNAME}-${PORTVERSION} +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + PORTNAME=${PORTNAME} \ + PORTVERSION=${PORTVERSION} \ + SUBDIR=${CABALDIR} +DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} +PORTDOCS= LICENSE html + +CONFIGURE_ARGS= --ghc --prefix=${PREFIX} --libdir=${PREFIX}/${CABALDIR} --libsubdir='' --datasubdir='' + +.if !defined(NOPORTDOCS) +BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock +PLIST_SUB+= RMLIC="@comment " +.else +PLIST_SUB+= RMLIC="" +.endif + +do-configure: + cd ${WRKSRC} && ${CABALCMD} configure ${CONFIGURE_ARGS} + +do-build: + cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register +.if !defined(NOPORTDOCS) + cd ${WRKSRC} && ${CABALCMD} haddock +.endif + +do-install: + cd ${WRKSRC} && ${CABALCMD} install + ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${CABALDIR}/${PORTNAME}-register.sh + +.include diff --git a/security/hs-digest/distinfo b/security/hs-digest/distinfo new file mode 100644 index 000000000000..26a631db0ae8 --- /dev/null +++ b/security/hs-digest/distinfo @@ -0,0 +1,3 @@ +MD5 (digest-0.0.0.2.tar.gz) = c093bf8ba6b0e94492e125d2aae710e1 +SHA256 (digest-0.0.0.2.tar.gz) = f91066f0f1c3b7b0126e8bbcf774d8a1d3f4fa78cd28693411cda7a37172b8ac +SIZE (digest-0.0.0.2.tar.gz) = 44339 diff --git a/security/hs-digest/pkg-descr b/security/hs-digest/pkg-descr new file mode 100644 index 000000000000..c57435d330e6 --- /dev/null +++ b/security/hs-digest/pkg-descr @@ -0,0 +1,5 @@ +This package provides efficient cryptographic hash implementations for +strict and lazy bytestrings for the functional programming language +Haskell. + +WWW: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/digest diff --git a/security/hs-digest/pkg-plist b/security/hs-digest/pkg-plist new file mode 100644 index 000000000000..a379656b2624 --- /dev/null +++ b/security/hs-digest/pkg-plist @@ -0,0 +1,13 @@ +%%SUBDIR%%/Data/Digest/Adler32.hi +%%SUBDIR%%/Data/Digest/CRC32.hi +%%SUBDIR%%/HS%%PORTNAME%%-%%PORTVERSION%%.o +%%SUBDIR%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a +%%SUBDIR%%/%%PORTNAME%%-register.sh +%%RMLIC%%%%DOCSDIR%%/LICENSE +%%RMLIC%%@dirrm %%DOCSDIR%% +@dirrmtry %%SUBDIR%%/Data/Digest +@dirrmtry %%SUBDIR%%/Data +@exec sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh +@exec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec ghc-pkg unregister %%PORTNAME%% +@unexec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old -- cgit