]> git.pld-linux.org Git - packages/ettercap6.git/commitdiff
- Should make ettercap check version of kernel sources installed, not of
authormkochano <mkochano@pld-linux.org>
Thu, 6 Sep 2001 16:57:33 +0000 (16:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  kernel version running.

Changed files:
    ettercap-kernel_version.patch -> 1.1

ettercap-kernel_version.patch [new file with mode: 0644]

diff --git a/ettercap-kernel_version.patch b/ettercap-kernel_version.patch
new file mode 100644 (file)
index 0000000..0ff6854
--- /dev/null
@@ -0,0 +1,21 @@
+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 @@
+ 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])
This page took 0.045198 seconds and 4 git commands to generate.