Patchwork [meta-oe,V3] daq: add recipe

login
register
mail settings
Submitter chunrong guo
Date Aug. 29, 2013, 6:45 a.m.
Message ID <1377758712-4916-1-git-send-email-b40290@freescale.com>
Download mbox | patch
Permalink /patch/56855/
State Superseded, archived
Headers show

Comments

chunrong guo - Aug. 29, 2013, 6:45 a.m.
From: Chunrong Guo <B40290@freescale.com>

  *The dump DAQ test the various inline mode features
  *snort depends daq

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 meta-oe/recipes-connectivity/daq/daq_2.0.1.bb      |   18 ++++++++++++++++++
 .../daq/files/disable-check-pcap-version.patch     |   19 +++++++++++++++++++
 2 files changed, 37 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-connectivity/daq/daq_2.0.1.bb
 create mode 100644 meta-oe/recipes-connectivity/daq/files/disable-check-pcap-version.patch
Koen Kooi - Aug. 29, 2013, 7:28 a.m.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a few minor style nitpicks, see below

Op 29-08-13 08:45, b40290@freescale.com schreef:


There's a stray space at the end. Can you also add a SUMMARY field?



These checksums tend to go below the SRC_URI


new file mode 100644

@@ -0,0 +1,19 @@


I guess it doesn't matter either way since OE actually has dependency
tracking, but would it make sense to fix the AC_CHECK_PCAP_VER to stop using
AC_TRY_RUN?

regards,

Koen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFSHvgZMkyGM64RGpERApt/AJsEqzPKL5OHmzUefLfrzNxBUMlTIQCfRZfO
X3WZ7aQfuil0gVtyjfCAxoQ=
=na+u
-----END PGP SIGNATURE-----

Patch

diff --git a/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb b/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb
new file mode 100644
index 0000000..e3ddf09
--- /dev/null
+++ b/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb
@@ -0,0 +1,18 @@ 
+DESCRIPTION = "The dump DAQ test the various inline mode features "
+HOMEPAGE = "http://www.snort.org"
+LICENSE = "GPLv2"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=f9ce51a65dd738dc1ae631d8b21c40e0"
+
+
+DEPENDS = "libpcap libpcre "
+
+SRC_URI[md5sum] = "044aa3663d44580d005293eeb8ccf175"
+SRC_URI[sha256sum] = "ebba87c2ec76ac65d2980934423b0597909caead3a86ce5d1ba1ea6ce518ec6d"
+
+SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz\
+           file://disable-check-pcap-version.patch "
+
+inherit autotools
+
+
diff --git a/meta-oe/recipes-connectivity/daq/files/disable-check-pcap-version.patch b/meta-oe/recipes-connectivity/daq/files/disable-check-pcap-version.patch
new file mode 100644
index 0000000..05f4031
--- /dev/null
+++ b/meta-oe/recipes-connectivity/daq/files/disable-check-pcap-version.patch
@@ -0,0 +1,19 @@ 
+Upstream-Status:Inappropriate [embedded specific]
+
+fix the below error:
+checking for libpcap version >= "1.0.0"... configure
+configure: error: cannot run test program while cross compiling
+
+Signed-off-by: Chunrong Guo <B40290@freescale.com>
+
+--- a/configure.ac	2013-08-22 02:37:02.453253534 -0500
++++ b/configure.ac	2013-08-22 02:37:53.008254362 -0500
+@@ -179,7 +179,7 @@
+               [enable_pcap_module="$enableval"], [enable_pcap_module="$DEFAULT_ENABLE"])
+ if test "$enable_pcap_module" = yes; then
+     AC_CHECK_HEADER([pcap.h], [], [enable_pcap_module=no])
+-    AC_CHECK_PCAP_VER("1.0.0")
++    #AC_CHECK_PCAP_VER("1.0.0")
+     if test "$enable_pcap_module" = yes; then
+         STATIC_LIBS="${STATIC_LIBS} -lpcap"
+     fi