Ticket #12162: ent.diff
File ent.diff, 2.5 KB (added by nox@…, 17 years ago) |
---|
-
files/patch-randtest.c
1 --- randtest.c.orig 1998-10-19 14:18:06.000000000 -06002 +++ randtest.c 2005-05-09 21:33:14.000000000 -06003 @@ -22,10 +22,12 @@4 5 /* LOG2 -- Calculate log to the base 2 */6 7 +#ifndef HAVE_LOG28 static double log2(double x)9 {10 return log2of10 * log10(x);11 }12 +#endif13 14 #define MONTEN 6 /* Bytes used as Monte Carlo15 co-ordinates. This should be no more -
files/patch-Makefile
1 --- Makefile Tue Oct 20 17:25:24 19982 +++ /Users/blb/build/ent/Makefile Fri Jul 20 17:35:45 20011 --- Makefile.orig 2007-08-12 19:28:02.000000000 +0200 2 +++ Makefile 2007-08-12 19:28:24.000000000 +0200 3 3 @@ -1,11 +1,11 @@ 4 4 5 5 # Unix make file for random test program … … 11 11 12 12 ent: ent.o iso8859.o randtest.o 13 13 - cc -O ent.o iso8859.o randtest.o -o ent -lm 14 + cc -O3 ent.o iso8859.o randtest.o -o ent 14 + cc -O3 ent.o iso8859.o randtest.o -o ent 15 15 16 16 ent.c: iso8859.h randtest.h 17 17 -
Portfile
2 2 3 3 PortSystem 1.0 4 4 name ent 5 version 19981020 6 revision 2 5 version 20060616 7 6 categories math security 8 maintainers blb @macports.org7 maintainers blb 9 8 description Entropy calculator 10 9 long_description \ 11 10 ent applies various tests to sequences of bytes stored in files and \ … … 22 21 use_zip yes 23 22 worksrcdir ent 24 23 25 checksums md5 ccaa3fffd4d84d46e9b712d0c88f008c 24 checksums md5 9e9ff769c4816ae9f7f402984ae54790 \ 25 sha1 e5d91565a3d0a4bd9208a5bec8ff786e734eec55 \ 26 rmd160 6cf7f052f450cd2f027a954d52a2beb7e2bdc81f 26 27 27 28 pre-extract { 28 29 extract.post_args "-d ${worksrcpath}" 29 30 } 30 31 31 patchfiles patch-Makefile patch-randtest.c32 patchfiles patch-Makefile 32 33 33 34 use_configure no 34 35 … … 36 37 37 38 destroot { 38 39 xinstall -m 755 -d ${destroot}${prefix}/bin \ 39 ${destroot}${prefix}/share/doc/${name} 40 ${destroot}${prefix}/share/doc/${name}-${version}/html 40 41 xinstall -m 755 -W ${worksrcpath} ent ${destroot}${prefix}/bin 41 42 xinstall -m 644 -W ${worksrcpath} ent.html entitle.gif \ 42 ${destroot}${prefix}/share/doc/${name} 43 ${destroot}${prefix}/share/doc/${name}-${version}/html 43 44 } 44 45 45 46 platform darwin {