Patchwork [meta-oe,3/4] daq: add recipe

login
register
mail settings
Submitter chunrong guo
Date Aug. 26, 2013, 3:22 a.m.
Message ID <1377487327-31367-1-git-send-email-b40290@freescale.com>
Download mbox | patch
Permalink /patch/56595/
State Superseded, archived
Headers show

Comments

chunrong guo - Aug. 26, 2013, 3:22 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.0.bb      |   17 +++++++++++++++++
 .../daq/files/disable-check-pcap-version.patch     |   11 +++++++++++
 2 files changed, 28 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-connectivity/daq/daq_2.0.0.bb
 create mode 100644 meta-oe/recipes-connectivity/daq/files/disable-check-pcap-version.patch
Martin Jansa - Aug. 26, 2013, 7:06 a.m.
On Mon, Aug 26, 2013 at 11:22:07AM +0800, b40290@freescale.com wrote:
> 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.0.bb      |   17 +++++++++++++++++
>  .../daq/files/disable-check-pcap-version.patch     |   11 +++++++++++
>  2 files changed, 28 insertions(+), 0 deletions(-)
>  create mode 100644 meta-oe/recipes-connectivity/daq/daq_2.0.0.bb
>  create mode 100644 meta-oe/recipes-connectivity/daq/files/disable-check-pcap-version.patch
> 
> diff --git a/meta-oe/recipes-connectivity/daq/daq_2.0.0.bb b/meta-oe/recipes-connectivity/daq/daq_2.0.0.bb
> new file mode 100644
> index 0000000..0a71894
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/daq/daq_2.0.0.bb
> @@ -0,0 +1,17 @@
> +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] = "a00855a153647df76d47f1ea454f74ae"
> +SRC_URI[sha256sum] = "fbafc8e362a96fcadc69731f91203ef90845507aae0a4774d5c2825e9d2c1c38"
> +
> +SRC_URI = "http://fossies.org/linux/misc/daq-2.0.0.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..416ef65
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/daq/files/disable-check-pcap-version.patch

Please add header explaining why this patch is needed.

> @@ -0,0 +1,11 @@
> +--- 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
> -- 
> 1.7.5.4
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Patch

diff --git a/meta-oe/recipes-connectivity/daq/daq_2.0.0.bb b/meta-oe/recipes-connectivity/daq/daq_2.0.0.bb
new file mode 100644
index 0000000..0a71894
--- /dev/null
+++ b/meta-oe/recipes-connectivity/daq/daq_2.0.0.bb
@@ -0,0 +1,17 @@ 
+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] = "a00855a153647df76d47f1ea454f74ae"
+SRC_URI[sha256sum] = "fbafc8e362a96fcadc69731f91203ef90845507aae0a4774d5c2825e9d2c1c38"
+
+SRC_URI = "http://fossies.org/linux/misc/daq-2.0.0.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..416ef65
--- /dev/null
+++ b/meta-oe/recipes-connectivity/daq/files/disable-check-pcap-version.patch
@@ -0,0 +1,11 @@ 
+--- 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