stegdetect stable port information

Package: stegdetect
Version: 0.6
Revision: 4
###
Description: Detects data hidden in JPEG files
License: BSD
Maintainer: None
###
Source: http://www.outguess.org/%n-%v.tar.gz
Source-MD5: 850a3551b5c450b9f450a919ad021767
PatchFile: %n.patch
PatchFile-MD5: fad585529ec0fedba131c27e0289ad9f
# unknown assembler pseudo-ops on macintel in bf-586.s :
PatchScript: <<
%{default_script}
perl -pi -e 's,bf-586\.o,bf_enc.o,' configure
perl -pi -e 's,echo \-n,/bin/echo -n,g' file/Makefile.in
head -n 29 stegdetect.c > Copyright
<<
Depends: libjpeg-bin, x11, gtk+-shlibs, glib-shlibs, libgettext8-shlibs, libevent1-shlibs, libjpeg8-shlibs
BuildDepends: x11-dev, gtk+, glib, libgettext8-dev, libevent1, libjpeg8, fink (>= 0.24.12)
###
ConfigureParams: --datadir=%p/share/%n --mandir=%p/share/man
###
InstallScript: <<
make install DESTDIR=%d
<<
###
DocFiles: Copyright
###
Homepage: http://www.outguess.org/detection.php
###
DescDetail: <<
Stegdetect is an automated tool for detecting steganographic content
in images. It is capable of detecting several different
steganographic methods to embed hidden information in JPEG images.
Currently, the detectable schemes are jsteg, jphide (unix and windows),
invisible secrets, outguess 01.3b, F5 (header analysis), appendX and
camouflage. Stegbreak is used to launch dictionary attacks against
JSteg-Shell, JPHide and OutGuess 0.13b.
<<
###
DescUsage: <<
There are man pages for stegdetect and stegbreak. If you wish
to try stegbreak on the first steganographic image found in the wild
(at http://www.citi.umich.edu/u/provos/stego/abc.html), make sure "abc"
is in your dictionary.
<<
###
DescPort: <<
v 0.6-1 (dmacks): new %v that works with gcc-3.3; patched to force
linking to included jpeg and file/magic libs instead of ones available
from fink or system (uses modified versions of these libs)
v 0.6-2 (dmacks): patch out redefined var so works with gcc4
v 0.6-3 (dmacks): cleaner handling of flags (global *after* local)
<<
DescPackaging: Previously maintained by James Gibbs.

stegdetect stable port .patch

diff -Nurd -x'*~' stegdetect-0.6.orig/Makefile.in stegdetect-0.6/Makefile.in
--- stegdetect-0.6.orig/Makefile.in 2004-08-31 10:59:42.000000000 -0400
+++ stegdetect-0.6/Makefile.in 2005-12-20 01:56:06.000000000 -0500
@@ -70,12 +70,12 @@

JPEGDIR = ./jpeg-6b
JPEGINC = -I$(JPEGDIR)
-JPEGLIB = -L$(JPEGDIR) -ljpeg
+JPEGLIB = $(JPEGDIR)/libjpeg.a
JPEGDEP = $(JPEGDIR)/libjpeg.a

FILEDIR = ./file
FILEINC = -I$(FILEDIR)
-FILELIB = -L$(FILEDIR) -lfile
+FILELIB = $(FILEDIR)/libfile.a
FILEDEP = $(FILEDIR)/libfile.a

GTKINC = @GTKINC@
diff -Nurd -x'*~' stegdetect-0.6.orig/arc4.c stegdetect-0.6/arc4.c
--- stegdetect-0.6.orig/arc4.c 2004-08-29 19:11:00.000000000 -0400
+++ stegdetect-0.6/arc4.c 2005-12-20 02:30:23.000000000 -0500
@@ -29,6 +29,7 @@
*/

#include
+#include

#include "config.h"

diff -Nurd -x'*~' stegdetect-0.6.orig/file/Makefile.in stegdetect-0.6/file/Makefile.in
--- stegdetect-0.6.orig/file/Makefile.in 2004-08-29 19:11:06.000000000 -0400
+++ stegdetect-0.6/file/Makefile.in 2005-12-20 02:24:50.000000000 -0500
@@ -78,7 +78,7 @@
@FSECT5_TRUE@man_MAGIC = magic.5
@FSECT5_FALSE@man_MAGIC = magic.4
fsect = @fsect@
-man_MANS = file.1 $(man_MAGIC)
+man_MANS =

libfile_a_SOURCES = file.c apprentice.c fsmagic.c softmagic.c ascmagic.c compress.c is_tar.c readelf.c print.c file.h names.h patchlevel.h readelf.h tar.h magic.c

diff -Nurd -x'*~' stegdetect-0.6.orig/jpeg-6b/makefile.cfg stegdetect-0.6/jpeg-6b/makefile.cfg
--- stegdetect-0.6.orig/jpeg-6b/makefile.cfg 2004-08-29 19:11:09.000000000 -0400
+++ stegdetect-0.6/jpeg-6b/makefile.cfg 2007-03-28 02:23:22.000000000 -0400
@@ -23,7 +23,7 @@
CC= @CC@

# You may need to adjust these cc options:
-CFLAGS= @CFLAGS@ @CPPFLAGS@ @INCLUDEFLAGS@
+CFLAGS= @INCLUDEFLAGS@ @CFLAGS@ @CPPFLAGS@
# Generally, we recommend defining any configuration symbols in jconfig.h,
# NOT via -D switches here.
# However, any special defines for ansi2knr.c may be included here:
@@ -193,7 +193,9 @@

# Installation rules:

-install: cjpeg djpeg jpegtran rdjpgcom wrjpgcom @FORCE_INSTALL_LIB@
+install:
+
+install_ORIG: cjpeg djpeg jpegtran rdjpgcom wrjpgcom @FORCE_INSTALL_LIB@
$(INSTALL_PROGRAM) cjpeg $(bindir)/$(binprefix)cjpeg
$(INSTALL_PROGRAM) djpeg $(bindir)/$(binprefix)djpeg
$(INSTALL_PROGRAM) jpegtran $(bindir)/$(binprefix)jpegtran
diff -Nurd -x'*~' stegdetect-0.6.orig/jutil.c stegdetect-0.6/jutil.c
--- stegdetect-0.6.orig/jutil.c 2004-08-29 19:41:48.000000000 -0400
+++ stegdetect-0.6/jutil.c 2005-12-20 01:50:43.000000000 -0500
@@ -41,6 +41,7 @@
#include
#include
#include
+#include

#include

diff -Nurd -x'*~' stegdetect-0.6.orig/md5.c stegdetect-0.6/md5.c
--- stegdetect-0.6.orig/md5.c 2004-08-29 20:16:47.000000000 -0400
+++ stegdetect-0.6/md5.c 2005-12-20 01:51:06.000000000 -0500
@@ -24,6 +24,7 @@
public domain. */

#include
+#include

#ifdef HAVE_CONFIG_H
#include "config.h"
diff -Nurd -x'*~' stegdetect-0.6.orig/stegbreak.c stegdetect-0.6/stegbreak.c
--- stegdetect-0.6.orig/stegbreak.c 2004-08-29 19:11:00.000000000 -0400
+++ stegdetect-0.6/stegbreak.c 2005-12-20 02:35:35.000000000 -0500
@@ -597,7 +597,7 @@
total_count += count;
fprintf(stderr, "Processed %d files, found %d embeddings.\n",
n, found);
- fprintf(stderr, "Time: %d seconds: Cracks: %d, % 8.1f c/s\n",
+ fprintf(stderr, "Time: %ld seconds: Cracks: %d, % 8.1f c/s\n",
now, total_count, (float)total_count/now);
} else
fprintf(stderr, "Converted %d files.\n", n);
diff -Nurd -x'*~' stegdetect-0.6.orig/stegdetect.c stegdetect-0.6/stegdetect.c
--- stegdetect-0.6.orig/stegdetect.c 2004-09-03 00:01:35.000000000 -0400
+++ stegdetect-0.6/stegdetect.c 2006-02-02 23:32:42.000000000 -0800
@@ -78,7 +78,6 @@
float DCThist[257];
float scale = 1; /* Sensitivity scaling */

-static int debug = 0;
static int quiet = 0;
static int ispositive = 0; /* Current images contain stego */
static char *transformname; /* Current transform name */
@@ -1046,7 +1045,7 @@
}
}
done:
- fprintf(stdout, " %s(%d)<[%s][", what,
+ fprintf(stdout, " %s(%ld)<[%s][", what,
buflen, is_random(buf, buflen) ? "random" : "nonrandom");
noprint = 0;
/* Prints to stdout */

stegdetect _unstable_ port .patch