aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorSylvio Cesar Teixeira <sylvio@FreeBSD.org>2010-03-07 23:10:45 +0000
committerSylvio Cesar Teixeira <sylvio@FreeBSD.org>2010-03-07 23:10:45 +0000
commit065e03e937a1b59252a720f70b9096c7c4b6d026 (patch)
tree8d1ff86d97db8ea569b9e8a04b4720ac0c885e02 /security
parente12180ef3d6f35ea04942a0a6b09fa068f867740 (diff)
downloadports-065e03e937a1b59252a720f70b9096c7c4b6d026.tar.gz
ports-065e03e937a1b59252a720f70b9096c7c4b6d026.zip
Notes
Diffstat (limited to 'security')
-rw-r--r--security/stegdetect/Makefile13
-rw-r--r--security/stegdetect/files/patch-xsteg.c32
2 files changed, 40 insertions, 5 deletions
diff --git a/security/stegdetect/Makefile b/security/stegdetect/Makefile
index f25424e65243..62e40d016c2f 100644
--- a/security/stegdetect/Makefile
+++ b/security/stegdetect/Makefile
@@ -7,20 +7,23 @@
PORTNAME= stegdetect
PORTVERSION= 0.6
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= security
MASTER_SITES= http://www.outguess.org/ \
- http://distfiles.master.finkmirrors.net/
+ http://distfiles.master.finkmirrors.net/ \
+ http://www.predatorlabs.net/dl/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= rfarmer@predatorlabs.net
COMMENT= Automated tool for detecting steganographic content in JPEGs
+OPTIONS= X11 "Build xsteg" On
+
+.include <bsd.port.options.mk>
+
.if !defined(WITHOUT_X11)
LIB_DEPENDS= event-1.4:${PORTSDIR}/devel/libevent
.endif
-BROKEN= does not build
-
# Note: stegdetect includes a modified version of jpeg-6b linked statically
GNU_CONFIGURE= yes
USE_GMAKE= yes
diff --git a/security/stegdetect/files/patch-xsteg.c b/security/stegdetect/files/patch-xsteg.c
new file mode 100644
index 000000000000..23ff6c103867
--- /dev/null
+++ b/security/stegdetect/files/patch-xsteg.c
@@ -0,0 +1,32 @@
+--- xsteg.c.orig 2010-02-07 02:37:05.398520068 -0800
++++ xsteg.c 2010-02-07 02:38:33.877232865 -0800
+@@ -56,9 +56,6 @@
+ #define FLAG_DOINVIS 0x0008
+ #define FLAG_DOF5 0x0010
+
+-extern int (*event_sigcb)(void);
+-extern int event_gotsig;
+-
+ struct event start_ev;
+ struct event gtk_ev;
+ int quit = 0;
+@@ -744,8 +741,7 @@
+ sigprocmask(SIG_BLOCK, &set, &oldset);
+
+ while ((pid = waitpid(-1, &status, WNOHANG)) > 0) {
+- if (WIFEXITED(status) || WIFSIGNALED(status))
+- event_gotsig = 1;
++ ;
+ }
+
+ signal(SIGCHLD, chld_handler);
+@@ -1106,8 +1102,7 @@
+ gtk_widget_show(window);
+
+ event_init();
+- event_sigcb = signal_cb;
+-
++
+ add_gtk_timeout();
+
+ event_dispatch();