]> git.pld-linux.org Git - packages/ettercap6.git/blobdiff - ettercap-kernel_version.patch
- now builds,
[packages/ettercap6.git] / ettercap-kernel_version.patch
index 0ff6854d2b0f617e429734f02763e4c4165e8c49..65a859dee5ca0c6126746c1a0b1c79c00970d58a 100644 (file)
@@ -1,21 +1,16 @@
-diff -urN ettercap-0.5.4.orig/aclocal.m4 ettercap-0.5.4/aclocal.m4
---- ettercap-0.5.4.orig/aclocal.m4     Thu Jul 19 06:48:09 2001
-+++ ettercap-0.5.4/aclocal.m4  Thu Sep  6 18:39:46 2001
-@@ -25,8 +25,8 @@
+diff -uNr ettercap-0.6.3.1.orig/aclocal.m4 ettercap-0.6.3.1/aclocal.m4
+--- ettercap-0.6.3.1.orig/aclocal.m4   Thu Dec 13 18:05:18 2001
++++ ettercap-0.6.3.1/aclocal.m4        Sun Feb 10 16:32:29 2002
+@@ -25,9 +25,9 @@
  AC_DEFUN(EC_LINUX_KERNEL,[
  
-       AC_MSG_CHECKING(Linux kernel version)
--      major=`uname -r  | cut -f1 -d"."`
--      minor=`uname -r  | cut -f2 -d"."`
-+      major=`awk -v FS='[".] '/UTS_RELEASE/ { print $2; }' < /usr/include/linux/version.h`
-+      minor=`awk -v FS='[".] '/UTS_RELEASE/ { print $3; }' < /usr/include/linux/version.h`
-       uname=`uname -r`
-       AC_MSG_RESULT($uname)
-       if test "$major$minor" -lt 20; then
-@@ -198,4 +198,4 @@
-     AC_MSG_RESULT($ac_cv_lbl_sockaddr_has_sa_len)
-     if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
-             AC_DEFINE(HAVE_SOCKADDR_SA_LEN,1,[if struct sockaddr has sa_len])
--    fi])
-\ No newline at end of file
-+    fi])
+    AC_MSG_CHECKING(Linux kernel version)
+-   major=`uname -r  | cut -f1 -d"."`
+-   minor=`uname -r  | cut -f2 -d"."`
+-   uname=`uname -r`
++   major=`grep UTS_RELEASE /usr/include/linux/version.h | cut -f2 -d"\"" | cut -f1 -d"."`
++   minor=`grep UTS_RELEASE /usr/include/linux/version.h | cut -f2 -d"."`
++   uname=`grep UTS_RELEASE /usr/include/linux/version.h | cut -f2 -d"\""`
+    AC_MSG_RESULT($uname)
+    if test "$major$minor" -lt 20; then
+       AC_MSG_WARN(*******************************);
This page took 0.054955 seconds and 4 git commands to generate.