ettercap-ng: Attempt to unbreak the build with a recent libtool
authorHolger Hans Peter Freyther <zecke@selfish.org>
Tue, 23 Mar 2010 07:57:37 +0000 (15:57 +0800)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Tue, 23 Mar 2010 08:07:34 +0000 (16:07 +0800)
The variable for the plugin extension appears to have changed, at
least this value is "so" so it should work on the device.

recipes/ettercap/ettercap-ng_0.7.3.bb
recipes/ettercap/files/configure.patch [new file with mode: 0644]

index 00bf64d..fea9302 100644 (file)
@@ -5,8 +5,11 @@ SECTION = "console/network"
 DEPENDS = "virtual/libiconv libnet libpcap openssl libpcre ncurses zlib libtool"
 LICENSE = "GPL"
 
+PR = "r1"
+
 SRC_URI = "${SOURCEFORGE_MIRROR}/ettercap/ettercap-NG-${PV}.tar.gz \
-           file://autotools.patch;patch=1"
+           file://autotools.patch;patch=1 \
+           file://configure.patch;patch=1 "
 
 S = "${WORKDIR}/ettercap-NG-${PV}"
 
diff --git a/recipes/ettercap/files/configure.patch b/recipes/ettercap/files/configure.patch
new file mode 100644 (file)
index 0000000..4a6a5e3
--- /dev/null
@@ -0,0 +1,27 @@
+Index: ettercap-NG-0.7.3/configure.in
+===================================================================
+--- ettercap-NG-0.7.3.orig/configure.in        2010-03-23 15:41:37.021090022 +0800
++++ ettercap-NG-0.7.3/configure.in     2010-03-23 15:43:52.594188005 +0800
+@@ -198,6 +198,9 @@
+ dnl   Libtool related...
+ dnl ========================
++LT_INIT
++LTDL_INIT
++LT_CONFIG_LTDL_DIR([libltdl])
+ AC_DISABLE_STATIC
+ AC_LIBTOOL_WIN32_DLL
+ AC_LIBTOOL_DLOPEN
+Index: ettercap-NG-0.7.3/src/ec_plugins.c
+===================================================================
+--- ettercap-NG-0.7.3.orig/src/ec_plugins.c    2010-03-23 15:47:32.371100910 +0800
++++ ettercap-NG-0.7.3/src/ec_plugins.c 2010-03-23 15:48:20.644990548 +0800
+@@ -131,7 +131,7 @@
+ int plugin_filter(const struct dirent *d)
+ #endif
+ {
+-   if ( match_pattern(d->d_name, PLUGIN_PATTERN LTDL_SHLIB_EXT) )
++   if ( match_pattern(d->d_name, PLUGIN_PATTERN LT_MODULE_EXT) )
+       return 1;
+    return 0;