summaryrefslogtreecommitdiff
path: root/net/ettercap/files/patch-ab
blob: 1d1b7a83177449185deeacb42a58f46eccf257ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
--- configure.orig	Fri Jun 14 18:53:14 2002
+++ configure	Wed Jul 17 17:09:18 2002
@@ -3924,27 +3924,27 @@
 if test "${ac_cv_path_WGET_PATH+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  case $WGET_PATH in
-  [\\/]* | ?:[\\/]*)
+#  case $WGET_PATH in
+#  [\\/]* | ?:[\\/]*)
   ac_cv_path_WGET_PATH="$WGET_PATH" # Let the user override the test with a path.
-  ;;
-  *)
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  for ac_exec_ext in '' $ac_executable_extensions; do
-  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-    ac_cv_path_WGET_PATH="$as_dir/$ac_word$ac_exec_ext"
-    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-done
+#  ;;
+#  *)
+#  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+#for as_dir in $PATH
+#do
+#  IFS=$as_save_IFS
+#  test -z "$as_dir" && as_dir=.
+#  for ac_exec_ext in '' $ac_executable_extensions; do
+#  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+#    ac_cv_path_WGET_PATH="$as_dir/$ac_word$ac_exec_ext"
+#    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+#    break 2
+#  fi
+#done
+#done
 
-  ;;
-esac
+#  ;;
+#esac
 fi
 WGET_PATH=$ac_cv_path_WGET_PATH
 
@@ -6676,8 +6676,8 @@
 fi
 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 if test "$ac_cv_search_pthread_create" = no; then
-  for ac_lib in pthread; do
-    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
+#  for ac_lib in pthread; do
+    LIBS="%%PTHREAD_LIBS%%  $ac_func_search_save_LIBS"
     cat >conftest.$ac_ext <<_ACEOF
 #line $LINENO "configure"
 /* confdefs.h.  */
@@ -6713,7 +6713,7 @@
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
-  ac_cv_search_pthread_create="-l$ac_lib"
+  ac_cv_search_pthread_create="%%PTHREAD_LIBS%%"
 break
 else
   echo "$as_me: failed program was:" >&5
@@ -6721,7 +6721,7 @@
 
 fi
 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-  done
+#  done
 fi
 LIBS=$ac_func_search_save_LIBS
 fi
@@ -9720,14 +9720,14 @@
       ;;
    no)  echo "$as_me:$LINENO: result: no." >&5
 echo "${ECHO_T}no." >&6
-      E_CFLAGS="-O2 -funroll-loops -fomit-frame-pointer -Wall"
+#      E_CFLAGS="-O2 -funroll-loops -fomit-frame-pointer -Wall"
       ac_cv_ec_debug=no
       ;;
 esac
 else
   echo "$as_me:$LINENO: result: no. disabled by default." >&5
 echo "${ECHO_T}no. disabled by default." >&6
-   E_CFLAGS="-O2 -funroll-loops -fomit-frame-pointer -Wall"
+#   E_CFLAGS="-O2 -funroll-loops -fomit-frame-pointer -Wall"
    ac_cv_ec_debug=no
 
 fi;
@@ -10149,6 +10149,8 @@
    if test $ac_cv_ec_ssh = "yes"; then
       CYGWINLIB="$CYGWINLIB cygcrypto.dll cygssl.dll"
       echo "Dissector_ssh" >> ./src/ec_add.def
+   else
+      PLUGINS_SOURCES=`echo $PLUGINS_SOURCES | sed 's/.\/plugins\/H03_hydra1\/H03_hydra1.c//g'`
    fi
 
 
@@ -10302,9 +10304,15 @@
 if test "$ac_cv_ec_plugin" = "yes"; then
 
    PLUGINS=`ls ./plugins | grep -v Make | grep -v CVS | awk ' { printf "%s ", $1 } '`
+   if test $ac_cv_ec_ssh = "no"; then
+      PLUGINS=`echo $PLUGINS | sed 's/H03_hydra1//g'`
+   fi
 
 
    makeplug=`ls ./plugins | grep -v Make | grep -v CVS | awk '{ printf("plugins/%s/Makefile ", $1) }'`
+   if test $ac_cv_ec_ssh = "no"; then
+      makeplug=`echo $makeplug | sed 's/plugins\/H03_hydra1\/Makefile//g'`
+   fi
    makeplug="plugins/Makefile $makeplug"
    MAKEPLUG="1"
 else