--- ent-1.1debian.orig/randtest.c +++ ent-1.1debian/randtest.c @@ -7,26 +7,18 @@ */ +#define _ISOC99_SOURCE #include #define FALSE 0 #define TRUE 1 -#define log2of10 3.32192809488736234787 - static int binary = FALSE; /* Treat input as a bitstream */ static long ccount[256], /* Bins to count occurrences of values */ totalc = 0; /* Total bytes counted */ static double prob[256]; /* Probabilities per bin for entropy */ -/* LOG2 -- Calculate log to the base 2 */ - -static double log2(double x) -{ - return log2of10 * log10(x); -} - #define MONTEN 6 /* Bytes used as Monte Carlo co-ordinates. This should be no more bits than the mantissa of your --- ent-1.1debian.orig/debian/compat +++ ent-1.1debian/debian/compat @@ -0,0 +1 @@ +5 --- ent-1.1debian.orig/debian/copyright +++ ent-1.1debian/debian/copyright @@ -0,0 +1,17 @@ +Package Maintainers: + Wesley J. Landaker from Sun, 5 Sep 2004 08:25:33 -0600 + Emanuele Rocca from Sun, 16 Nov 2003 17:30:41 +0100 + Viral Shah from Fri, 26 Oct 2001 23:04:21 -0600. + +Upstream Author: John Walker +Upstream Homepage: + +Copyright: + + This software is in the public domain. Permission to use, copy, + modify, and distribute this software and its documentation for any + purpose and without fee is hereby granted, without any conditions or + restrictions. This software is provided "as is" without express or + implied warranty. + +(The Debian packaging is released under this same license.) --- ent-1.1debian.orig/debian/rules +++ ent-1.1debian/debian/rules @@ -0,0 +1,48 @@ +#!/usr/bin/make -f + +build: build-stamp +build-stamp: + dh_testdir + + $(MAKE) + $(MAKE) test + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + install -D ent $(CURDIR)/debian/ent/usr/bin/ent + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installman + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- ent-1.1debian.orig/debian/changelog +++ ent-1.1debian/debian/changelog @@ -0,0 +1,77 @@ +ent (1.1debian-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Remove private definition of log2() function; use the function provided by + the C library library instead (closes: #552835). + * Add ‘Depends: ${misc:Depends}’. + + -- Jakub Wilk Sat, 17 Jul 2010 18:41:09 +0200 + +ent (1.1debian-1) unstable; urgency=low + + * New upstream release + * All Debian patches rolled in upstream + * Now generates documentation with asciidoc, docbook2x + * Updated to Debian Policy 3.7.2 (no changes necessary) + * Bumped debhelper compatibility up to 5 + * Removed test stuff from examples; it's now verified during build + + -- Wesley J. Landaker Sat, 25 Aug 2007 23:54:01 -0600 + +ent (1.0-6) unstable; urgency=low + + * Compile with -Wall and -Werror + * Add missing braces in multi-dimensional array initializer + * Update to Policy 3.7.1.0 (no changes necessary) + * Clarify packaging license in debian/copyright + * More slight manpage fixes, not using txt2man anymore + * Fixed up Makefile's clean target a bit + * Disabled test target during build; it's unnecessary (closes: #355726) + * Allow -h for command line help so we aren't confusing + + -- Wesley J. Landaker Wed, 3 May 2006 20:08:23 -0600 + +ent (1.0-5) unstable; urgency=low + + * Fixed package description slightly + * Cleaned up debian/rules + * Fixed manpage title (ENT -> ent) + + -- Wesley J. Landaker Tue, 14 Jun 2005 23:34:09 -0600 + +ent (1.0-4) unstable; urgency=low + + * Acknowledge QA maintainer. + * Fixed hyphens in man page + + -- Wesley J. Landaker Fri, 18 Mar 2005 08:20:35 -0700 + +ent (1.0-3) unstable; urgency=medium + + * New maintainer (closes: 214925) + * Cleaned up debian/dirs and debian/rules + * Fixed entest.sh to actually work once installed + * Made regression test run during build + * Rewrote man page, this time based on ent.html + * Removed README.Debian, as it no longer is pertinent + * Urgency=medium to try to get these fixes into sarge + + -- Wesley J. Landaker Sun, 5 Sep 2004 09:36:50 -0600 + +ent (1.0-2) unstable; urgency=low + + * Maintainer field set to QA group. + * Lintian fixes: + - Upstream Author(s) in the copyright file + - Removed dh_testversion from debian/rules + - Standard-versions to 3.6.1 + * Debhelper compatibility level updated to 4. + * Project homepage added in the long description. + + -- Emanuele Rocca Sun, 16 Nov 2003 17:30:41 +0100 + +ent (1.0-1) unstable; urgency=low + + * Initial Release. (Closes: #116434) + + -- Viral Shah Fri, 26 Oct 2001 23:04:21 -0600 --- ent-1.1debian.orig/debian/manpages +++ ent-1.1debian/debian/manpages @@ -0,0 +1 @@ +ent.1 --- ent-1.1debian.orig/debian/control +++ ent-1.1debian/debian/control @@ -0,0 +1,19 @@ +Source: ent +Section: science +Priority: optional +Maintainer: Wesley J. Landaker +Standards-Version: 3.7.2 +Build-Depends: debhelper (>= 5), asciidoc, docbook2x + +Package: ent +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: pseudorandom number sequence test program + This program applies various tests to sequences of bytes stored in + files and reports the results of those tests. The program is useful + for those evaluating pseudorandom number generators for encryption and + statistical sampling applications, compression algorithms, and other + applications where the information density of a file is of interest. + . + Original Homepage: http://www.fourmilab.ch/random/ + (Now maintained primarily in Debian.)