From: Graham Gower <graham.gower@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH] dsniff_2.3.bb: fix buildability.
Date: Mon, 11 Oct 2010 16:55:10 +1030 [thread overview]
Message-ID: <4CB2ADC6.3030804@gmail.com> (raw)
This almost 10 year old software is beginning to suffer bitrot. Libnids now
uses glib, and openssl structs have moved headers.
Signed-off-by: Graham Gower <graham.gower@gmail.com>
---
recipes/dsniff/dsniff-2.3/openssl-includes.patch | 11 +++++++++++
recipes/dsniff/dsniff_2.3.bb | 7 ++++---
2 files changed, 15 insertions(+), 3 deletions(-)
create mode 100644 recipes/dsniff/dsniff-2.3/openssl-includes.patch
diff --git a/recipes/dsniff/dsniff-2.3/openssl-includes.patch b/recipes/dsniff/dsniff-2.3/openssl-includes.patch
new file mode 100644
index 0000000..033fc5c
--- /dev/null
+++ b/recipes/dsniff/dsniff-2.3/openssl-includes.patch
@@ -0,0 +1,11 @@
+--- dsniff-2.3/sshcrypto.c.orig 2010-10-11 16:38:25.000000000 +1030
++++ dsniff-2.3/sshcrypto.c 2010-10-11 16:38:30.000000000 +1030
+@@ -14,6 +14,8 @@
+
+ #include <sys/types.h>
+ #include <openssl/ssl.h>
++#include <openssl/blowfish.h>
++#include <openssl/des.h>
+
+ #include <err.h>
+ #include <stdio.h>
diff --git a/recipes/dsniff/dsniff_2.3.bb b/recipes/dsniff/dsniff_2.3.bb
index 03ef527..51f2113 100644
--- a/recipes/dsniff/dsniff_2.3.bb
+++ b/recipes/dsniff/dsniff_2.3.bb
@@ -3,16 +3,17 @@ SECTION = "console/network"
HOMEPAGE = "http://www.monkey.org/~dugsong/dsniff/"
AUTHOR = "Dug Song <dugsong@monkey.org>"
LICENSE = "BSD"
-PR = "r2"
+PR = "r3"
# There is a significant API change beween 1.0.2a of libnet and
# 1.1.x, dsniff will only work with the older and there is no
# updated version of dnsniff.
-DEPENDS = "virtual/db libpcap libnet-1.0 libnids openssl"
+DEPENDS = "virtual/db libpcap libnet-1.0 libnids openssl glib-2.0"
SRC_URI = "\
http://www.monkey.org/~dugsong/dsniff/dsniff-${PV}.tar.gz \
file://configure.patch \
+ file://openssl-includes.patch \
"
inherit autotools
@@ -27,7 +28,7 @@ EXTRA_OECONF = "\
EXTRA_OEMAKE = "'install_prefix=${D}'"
CFLAGS =+ "-I${S}/missing"
-LDFLAGS += "-lresolv"
+LDFLAGS += "-lresolv -lglib-2.0 -lgthread-2.0 -lrt -pthread"
SRC_URI[md5sum] = "183e336a45e38013f3af840bddec44b4"
SRC_URI[sha256sum] = "82e492455486e655c315f027d393dbeb49ad930804acccdc51b30d57e1294ff5"
--
1.7.1
reply other threads:[~2010-10-11 6:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CB2ADC6.3030804@gmail.com \
--to=graham.gower@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.