diff options
author | Dane Smith <smithdanea@gmail.com> | 2010-12-21 09:56:15 -0500 |
---|---|---|
committer | Dane Smith <smithdanea@gmail.com> | 2010-12-21 09:56:15 -0500 |
commit | bd810b3838bec8468b66208960d6c2cd0bab9829 (patch) | |
tree | e58a585eb15cfcb698f223bd8dcdf4bb1a95e386 | |
parent | Rename init (diff) | |
download | c1pher-bd810b3838bec8468b66208960d6c2cd0bab9829.tar.gz c1pher-bd810b3838bec8468b66208960d6c2cd0bab9829.tar.bz2 c1pher-bd810b3838bec8468b66208960d6c2cd0bab9829.zip |
Testing ebuild for dieharder.
-rw-r--r-- | app-crypt/dieharder/ChangeLog | 12 | ||||
-rw-r--r-- | app-crypt/dieharder/Manifest | 5 | ||||
-rw-r--r-- | app-crypt/dieharder/dieharder-2.28.1.ebuild | 38 | ||||
-rw-r--r-- | app-crypt/dieharder/files/dieharder-2.28.1-qafixes.patch | 33 | ||||
-rw-r--r-- | app-crypt/dieharder/metadata.xml | 9 |
5 files changed, 97 insertions, 0 deletions
diff --git a/app-crypt/dieharder/ChangeLog b/app-crypt/dieharder/ChangeLog new file mode 100644 index 0000000..29dfe87 --- /dev/null +++ b/app-crypt/dieharder/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for app-crypt/dieharder +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*dieharder-2.28.1 (21 Dec 2010) + + 21 Dec 2010; Dane Smith <c1pher@gentoo.org> +dieharder-2.28.1.ebuild, + +files/dieharder-2.28.1-qafixes.patch, +metadata.xml: + New ebuild for dieharder from the Sunrise overlay. Patch fixes some + upstream + programming practices. Will be submitted upstream. + diff --git a/app-crypt/dieharder/Manifest b/app-crypt/dieharder/Manifest new file mode 100644 index 0000000..fe32c07 --- /dev/null +++ b/app-crypt/dieharder/Manifest @@ -0,0 +1,5 @@ +AUX dieharder-2.28.1-qafixes.patch 1334 RMD160 9bd9ed8eda16a030263cfc7d2263cf895c63be4f SHA1 950a2c577cd4fb571e8aa98f4d7f6fa29cf0b925 SHA256 2986d58380472316e7e2b7a06124436d8d1218de56a90f981eeff0ebaf160694 +DIST dieharder-2.28.1.tgz 766985 RMD160 955d39077c093aec39da2688e4e51a249438d59e SHA1 789984e5ce582e3e59b8af0ae330d061435a10ed SHA256 748ec4716e64de38807e126f10335e45136fa789056e9f647a6bf73698205286 +EBUILD dieharder-2.28.1.ebuild 810 RMD160 bb76f110c763ef3c25c3f5f878cb5d11d495055f SHA1 4c7bee988d455fb682c00394eb3a6f4f952f614e SHA256 9c593a39f704418c48020ed27dd289c64b3041f39670317dc9a9061867d84736 +MISC ChangeLog 416 RMD160 cc73df7e653f8635fe01cc848f8ae3a61b837f8c SHA1 5b45f95297f4ff6c59eb2380eb75e835442709a3 SHA256 0649d64cbbd05487a9e0e211fffdfc5e4bf0b0a55c9ce4c8a2323391d3acfb6b +MISC metadata.xml 249 RMD160 9e6c4cbeb7c56f4a8a6a404caba243bc43987007 SHA1 1253e617bfc5df483e730af0285d48301dad6730 SHA256 e14bc23df34373a562d9b2d09e037959ba43d96ccb1ad3de19e47cd6959a0af6 diff --git a/app-crypt/dieharder/dieharder-2.28.1.ebuild b/app-crypt/dieharder/dieharder-2.28.1.ebuild new file mode 100644 index 0000000..a17fa8b --- /dev/null +++ b/app-crypt/dieharder/dieharder-2.28.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 + +WANT_AUTOCONF="2.5" +inherit autotools eutils + +DESCRIPTION="An advanced suite for testing the randomness of RNG's" +HOMEPAGE="http://www.phy.duke.edu/~rgb/General/dieharder.php" +SRC_URI="http://www.phy.duke.edu/~rgb/General/${PN}/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="" + +DEPEND="sci-libs/gsl" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-qafixes.patch + eautoreconf +} + +src_compile() { + emake all-recursive || die +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc NEWS README* NOTES || die + docinto "dieharder" + dodoc dieharder/README dieharder/NOTES || die + docinto "libdieharder" + dodoc libdieharder/README libdieharder/NOTES || die +} diff --git a/app-crypt/dieharder/files/dieharder-2.28.1-qafixes.patch b/app-crypt/dieharder/files/dieharder-2.28.1-qafixes.patch new file mode 100644 index 0000000..265d566 --- /dev/null +++ b/app-crypt/dieharder/files/dieharder-2.28.1-qafixes.patch @@ -0,0 +1,33 @@ +--- libdieharder/static_get_bits.c 2008-09-08 08:37:18.000000000 -0400 ++++ libdieharder/static_get_bits.c.new 2010-12-21 09:39:02.000000000 -0500 +@@ -44,7 +44,7 @@ + } + if(nbits > 32){ + fprintf(stderr,"Warning! dieharder cannot yet work with\b"); +- fprintf(stderr," %u > 32 bit chunks. Exiting!\n\n"); ++ fprintf(stderr," %u > 32 bit chunks. Exiting!\n\n", nbits); + exit(0); + } + +--- libdieharder/bits.c 2008-09-08 08:37:18.000000000 -0400 ++++ libdieharder/bits.c.new 2010-12-21 09:45:51.000000000 -0500 +@@ -944,7 +944,7 @@ + */ + MYDEBUG(D_BITS) { + printf("bu = %d bl = %d\n",bu,bl); +- printf(" init %2d: |"); ++ printf(" init %2d: |",bleft); + dumpbits(&bits_rand[0],bu); + printf("|"); + dumpbits(&bits_rand[1],bu); +--- libdieharder/marsaglia_tsang_gcd.c 2008-09-08 08:37:19.000000000 -0400 ++++ libdieharder/marsaglia_tsang_gcd.c.new 2010-12-21 09:47:40.000000000 -0500 +@@ -289,7 +289,7 @@ + Vtest_destroy(&vtest_u); + + if(verbose == D_USER_TEMPLATE || verbose == D_ALL){ +- printf("# user_marsaglia_tsang_gcd(): ks_pvalue_k[%u] = %10.5f ks_pvalue_w[%u] = %10.5f\n",kspi,ks_pvalue[kspi],ks_pvalue2[kspi]); ++ printf("# user_marsaglia_tsang_gcd(): ks_pvalue_k[%u] = %10.5f ks_pvalue_w[%u] = %10.5f\n",kspi,ks_pvalue[kspi],kspi,ks_pvalue2[kspi]); + } + + kspi++; diff --git a/app-crypt/dieharder/metadata.xml b/app-crypt/dieharder/metadata.xml new file mode 100644 index 0000000..a82acb7 --- /dev/null +++ b/app-crypt/dieharder/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>crypto</herd> + <maintainer> + <email>c1pher@gentoo.org</email> + <name>Dane Smith</name> + </maintainer> +</pkgmetadata> |