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

login
register
mail settings
Submitter chunrong guo
Date Aug. 26, 2013, 7:44 a.m.
Message ID <1377503059-30534-1-git-send-email-b40290@freescale.com>
Download mbox | patch
Permalink /patch/56607/
State Accepted, archived
Headers show

Comments

chunrong guo - Aug. 26, 2013, 7:44 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     |   19 +++++++++++++++++++
 2 files changed, 36 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. 29, 2013, 5:39 a.m.
On Mon, Aug 26, 2013 at 03:44:19PM +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     |   19 +++++++++++++++++++
>  2 files changed, 36 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 "

Fails to fetch:

ERROR: Fetcher failure: Fetch command failed with exit code 8, output:
http://fossies.org/linux/misc/daq-2.0.0.tar.gz:
2013-08-28 19:37:00 ERROR 410: Gone.

> +
> +
> +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
> -- 
> 1.7.5.4
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
chunrong guo - Aug. 29, 2013, 6:19 a.m.
Hello,
fossies.org changed source URLs to http://fossies.org/linux/misc/daq-2.0.1.tar.gz.
So Fails to fetch.
I will submit new patch about it .

Thanks,
chunrong

-----Original Message-----
From: openembedded-devel-bounces@lists.openembedded.org [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of Martin Jansa
Sent: Thursday, August 29, 2013 1:40 PM
To: openembedded-devel@lists.openembedded.org
Subject: Re: [oe] [meta-oe][PATCH V2 ] daq: add recipe

On Mon, Aug 26, 2013 at 03:44:19PM +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     |   19 +++++++++++++++++++
>  2 files changed, 36 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.patc
> h
> 
> 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 "

Fails to fetch:

ERROR: Fetcher failure: Fetch command failed with exit code 8, output:
http://fossies.org/linux/misc/daq-2.0.0.tar.gz:
2013-08-28 19:37:00 ERROR 410: Gone.

> +
> +
> +inherit autotools
> +
> diff --git 
> a/meta-oe/recipes-connectivity/daq/files/disable-check-pcap-version.pa
> tch 
> b/meta-oe/recipes-connectivity/daq/files/disable-check-pcap-version.pa
> tch
> new file mode 100644
> index 0000000..05f4031
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/daq/files/disable-check-pcap-versio
> +++ n.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
> --
> 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..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