[ettercap] Passive DNS fix.
Jon Ciesla
limb at fedoraproject.org
Wed Oct 27 19:43:32 UTC 2010
commit 6d5928a62a5d96d1739a248805537f238fbabbd5
Author: Jon Ciesla <limb at jcomserv.net>
Date: Wed Oct 27 14:43:24 2010 -0500
Passive DNS fix.
ettercap-NG-0.7.3-passive-dns.patch | 38 +++++++++++++++++++++++++++++++++++
ettercap.spec | 10 ++++++++-
2 files changed, 47 insertions(+), 1 deletions(-)
---
diff --git a/ettercap-NG-0.7.3-passive-dns.patch b/ettercap-NG-0.7.3-passive-dns.patch
new file mode 100644
index 0000000..eb9248c
--- /dev/null
+++ b/ettercap-NG-0.7.3-passive-dns.patch
@@ -0,0 +1,38 @@
+--- acinclude.m4 2004-09-17 21:38:34.000000000 +0200
++++ acinclude.m4 2010-10-24 16:12:08.873511475 +0200
+@@ -228,8 +228,33 @@ AC_DEFUN([EC_RESOLVE_CHECK],
+ )
+ AM_CONDITIONAL(HAVE_DN_EXPAND, true) ac_ec_dns=yes
+ ],
+- [AM_CONDITIONAL(HAVE_DN_EXPAND, false) ac_ec_dns=no])
+-
++ [
++ AC_SEARCH_LIBS(__dn_expand, resolv c,
++ [
++ AC_MSG_CHECKING(for additional -lresolv needed by dn_expand)
++ AC_TRY_LINK([
++ #include <sys/types.h>
++ #include <netinet/in.h>
++ #include <arpa/nameser.h>
++ #include <resolv.h>
++ ],
++ [
++ int main(int argc, char **argv)
++ {
++ char *q;
++ char p[NS_MAXDNAME];
++
++ dn_expand(q, q, q, p, sizeof(p));
++ }
++ ],
++ [AC_MSG_RESULT(not needed)],
++ [AC_MSG_RESULT(needed)
++ LIBS="$LIBS -lresolv"]
++ )
++ AM_CONDITIONAL(HAVE_DN_EXPAND, true) ac_ec_dns=yes
++ ],
++ [AM_CONDITIONAL(HAVE_DN_EXPAND, false) ac_ec_dns=no])
++ ])
+ ])
+
+ dnl
diff --git a/ettercap.spec b/ettercap.spec
index 3c32427..e0114f8 100644
--- a/ettercap.spec
+++ b/ettercap.spec
@@ -1,6 +1,6 @@
Name: ettercap
Version: 0.7.3
-Release: 35%{?dist}
+Release: 36%{?dist}
Summary: Network traffic sniffer/analyser, NCURSES interface version
Group: Applications/Internet
License: GPLv2+
@@ -15,6 +15,8 @@ Patch3: ettercap-NG-0.7.3-daemon-textmode.patch
Patch4: ettercap-NG-0.7.3-mitm-loop.patch
Patch5: ettercap-NG-0.7.3-selinux-fcntl.patch
Patch6: ettercap-NG-0.7.3-64bit-crash.patch
+Patch7: ettercap-NG-0.7.3-passive-dns.patch
+
BuildRoot: %{_tmppath}/%{name}-NG-%{version}-%{release}-root%(%{__id_u} -n)
BuildRequires: desktop-file-utils
@@ -23,6 +25,7 @@ BuildRequires: gtk2-devel
BuildRequires: ncurses-devel
BuildRequires: openssl-devel
BuildRequires: pcre-devel
+BuildRequires: autoconf
#some requirements are available in fedora but not in stock epel
#build for epel requires libnet which is only available from rpmforge
%if 0%{?rhel}
@@ -102,8 +105,10 @@ This package contains the GTK version.
%patch4 -p0
%patch5 -p0
%patch6 -p0
+%patch7 -p0
%build
+autoconf
%configure --enable-gtk
make %{?_smp_mflags}
cp src/ettercap src/ettercap-gtk
@@ -198,6 +203,9 @@ rm -rf %{buildroot}
%{_datadir}/icons/hicolor/32x32/apps/ettercap.png
%changelog
+* Tue Oct 26 2010 Jon Ciesla <limb at jcomserv.net> - 0.7.3-36
+- Patch to support passive DNS, BZ 646162.
+
* Fri Apr 23 2010 Jon Ciesla <limb at jcomserv.net> - 0.7.3-35
- Patch for 64bit crash by Timothy Redaelli, BZ 550237.
More information about the scm-commits
mailing list