ntop: fix compilation issue (bug #1993)
authorJamie Lenehan <lenehan@twibble.org>
Thu, 16 Aug 2007 17:26:20 +0000 (17:26 +0000)
committerPhilippe De Swert <philippedeswert@scarlet.be>
Thu, 16 Aug 2007 17:26:20 +0000 (17:26 +0000)
* applied patch by Jamie Lenehan

packages/ntop/ntop-3.0/autotools.patch
packages/ntop/ntop_3.0.bb

index e40735c..07ed6af 100644 (file)
@@ -1,6 +1,16 @@
---- tmp/base/ntop-3.0-r0/ntop-3.0/acinclude.m4 2004-03-09 12:19:57.000000000 -0500
-+++ ntop-3.0/acinclude.m4      2004-03-09 12:19:57.000000000 -0500
-@@ -205,433 +205,3 @@
+--- ntop-3.0/acinclude.m4      2007/03/15 23:08:29     1.1
++++ ntop-3.0/acinclude.m4      2007/03/15 23:08:43
+@@ -34,6 +34,9 @@
+ dnl>    #undef HAVE_<typedef>
+ dnl>
++LIBTOOL='$host_alias-libtool'
++AC_SUBST(LIBTOOL)dnl
++
+ AC_DEFUN([AC_CHECK_TYPEDEF],[dnl
+ AC_REQUIRE([AC_HEADER_STDC])dnl
+ AC_MSG_CHECKING(for typedef $1)
+@@ -205,433 +208,3 @@
  fi
  # Finished expansion of NTOPCONFIGDEBUG_SETTINGS()
  ])
 -
 -dnl This is just to silence aclocal about the macro not being used
 -ifelse([AC_DISABLE_FAST_INSTALL])dnl
---- tmp/base/ntop-3.0-r0/ntop-3.0/configure.in 2004-03-21 18:45:04.000000000 -0500
-+++ ntop-3.0/configure.in      2004-05-22 14:20:07.000000000 -0400
+--- ntop-3.0/configure.in      2007/03/15 23:08:29     1.1
++++ ntop-3.0/configure.in      2007/03/15 23:08:34
 @@ -190,7 +190,6 @@
  AC_PROG_INSTALL
  AC_PROG_LN_S
index 051b5be..aa72522 100644 (file)
@@ -3,6 +3,7 @@ DESCRIPTION = "ntop is network top"
 SECTION = "console/network"
 PRIORITY = "optional"
 DEPENDS = "gdbm zlib libpcap libpng gd"
+PR = "r1"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/ntop/ntop-${PV}.tgz \
            file://${FILESDIR}/autotools.patch;patch=1 \
@@ -25,11 +26,13 @@ EXTRA_OECONF += " --without-ssl \
 FILES_ntop_append = " ${libdir}/ntop/plugins/*.so ${libdir}/libntop-*.so \
                        ${libdir}/libntopreport-*.so"
 FILES_${PN}-dev = "${includedir} ${libdir}/libntop.so ${libdir}/libntopreport.so \
-                   ${libdir}/libntop.a ${libdir}/libntopreport.a ${libdir}/*.la"
+                   ${libdir}/*.a ${libdir}/libntopreport.a ${libdir}/*.la"
+FILES_${PN}-dbg += "${libdir}/ntop/plugins/.debug"
 
-do_configure () {
+do_configure_prepend () {
        if [ ! -e acinclude.m4 ]; then
                mv acinclude.m4.ntop acinclude.m4
        fi
-       autotools_do_configure
+       rm -f libtool
+       cp ${STAGING_BINDIR_NATIVE}/${TARGET_SYS}-libtool libtool
 }