Some small improvements before first building of the package
This commit is contained in:
parent
d7e8f13c59
commit
0834a91348
@ -1,20 +1,26 @@
|
|||||||
Patch by <kees@ubuntu.com> for dsniff >= 2.4b1, which adds a clock fix.
|
Patch by <kees@ubuntu.com> for dsniff >= 2.4b1, which adds a clock fix. It
|
||||||
|
was improved by Robert Scheck <robert@fedoraproject.org> to work with older
|
||||||
|
Linux kernel versions, too.
|
||||||
|
|
||||||
--- dsniff-2.4b1/sshow.c 2001-03-18 22:52:15.000000000 -0800
|
--- dsniff-2.4b1/sshow.c 2007-12-03 23:50:12.000000000 +0100
|
||||||
+++ dsniff-2.4b1/sshow.c.sysconf_clocks 2006-10-12 13:24:29.299111443 -0700
|
+++ dsniff-2.4b1/sshow.c.sysconf_clocks 2007-12-03 23:53:12.000000000 +0100
|
||||||
@@ -216,6 +216,7 @@
|
@@ -217,6 +217,9 @@
|
||||||
{
|
{
|
||||||
clock_t delay;
|
clock_t delay;
|
||||||
int payload;
|
int payload;
|
||||||
+ long CLK_TCK= sysconf(_SC_CLK_TCK);
|
+#if defined(_SC_CLK_TCK)
|
||||||
|
+ long CLK_TCK = sysconf(_SC_CLK_TCK);
|
||||||
|
+#endif
|
||||||
|
|
||||||
delay = add_history(session, 0, cipher_size, plain_range);
|
delay = add_history(session, 0, cipher_size, plain_range);
|
||||||
|
|
||||||
@@ -264,6 +265,7 @@
|
@@ -265,6 +268,9 @@
|
||||||
clock_t delay;
|
clock_t delay;
|
||||||
int skip;
|
int skip;
|
||||||
range string_range;
|
range string_range;
|
||||||
+ long CLK_TCK= sysconf(_SC_CLK_TCK);
|
+#if defined(_SC_CLK_TCK)
|
||||||
|
+ long CLK_TCK = sysconf(_SC_CLK_TCK);
|
||||||
|
+#endif
|
||||||
|
|
||||||
delay = add_history(session, 1, cipher_size, plain_range);
|
delay = add_history(session, 1, cipher_size, plain_range);
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ Patch16: dsniff-2.4-checksum_libnids.patch
|
|||||||
Patch17: dsniff-2.4-fedora_dirs.patch
|
Patch17: dsniff-2.4-fedora_dirs.patch
|
||||||
Patch18: dsniff-2.4-glib2.patch
|
Patch18: dsniff-2.4-glib2.patch
|
||||||
BuildRequires: libnet-devel, openssl-devel, libnids-devel
|
BuildRequires: libnet-devel, openssl-devel, libnids-devel
|
||||||
BuildRequires: glib2-devel, db4-devel, libcap-devel
|
BuildRequires: glib2-devel, db4-devel, %{_includedir}/pcap.h
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -50,7 +50,9 @@ by exploiting weak bindings in ad-hoc PKI.
|
|||||||
%patch7 -p1 -b .checksum
|
%patch7 -p1 -b .checksum
|
||||||
%patch8 -p1 -b .openssl_098
|
%patch8 -p1 -b .openssl_098
|
||||||
%patch9 -p1 -b .sshcrypto
|
%patch9 -p1 -b .sshcrypto
|
||||||
|
%if 0%{?rhel}%{?fedora} >= 5
|
||||||
%patch10 -p1 -b .sysconf_clocks
|
%patch10 -p1 -b .sysconf_clocks
|
||||||
|
%endif
|
||||||
%patch11 -p1 -b .urlsnarf_escape
|
%patch11 -p1 -b .urlsnarf_escape
|
||||||
%patch12 -p1 -b .string_header
|
%patch12 -p1 -b .string_header
|
||||||
%patch13 -p1 -b .arpa_inet_header
|
%patch13 -p1 -b .arpa_inet_header
|
||||||
|
Loading…
Reference in New Issue
Block a user