Patchwork [meta-networking,v3,2/3] barnyard2: add recipe

login
register
mail settings
Submitter chunrong guo
Date Nov. 4, 2013, 2:43 a.m.
Message ID <1383533016-31244-1-git-send-email-b40290@freescale.com>
Download mbox | patch
Permalink /patch/61041/
State Accepted, archived
Headers show

Comments

chunrong guo - Nov. 4, 2013, 2:43 a.m.
From: Chunrong Guo <B40290@freescale.com>

  *Barnyard2 is a output system for Snort

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 .../barnyard2-1.8/barnyard2-cross-fix.patch        |   21 ++++++++++++++++++++
 .../barnyard2/barnyard2_1.8.bb                     |   18 +++++++++++++++++
 2 files changed, 39 insertions(+), 0 deletions(-)
 create mode 100644 meta-networking/recipes-connectivity/barnyard2/barnyard2-1.8/barnyard2-cross-fix.patch
 create mode 100644 meta-networking/recipes-connectivity/barnyard2/barnyard2_1.8.bb
Joe MacDonald - Nov. 20, 2013, 9:34 p.m.
And also merged.  Thanks.
-J.

[[oe] [meta-networking][PATCH v3 2/3] barnyard2:  add recipe] On 13.11.04 (Mon 10:43) b40290@freescale.com wrote:

> From: Chunrong Guo <B40290@freescale.com>
> 
>   *Barnyard2 is a output system for Snort
> 
> Signed-off-by: Chunrong Guo <B40290@freescale.com>
> ---
>  .../barnyard2-1.8/barnyard2-cross-fix.patch        |   21 ++++++++++++++++++++
>  .../barnyard2/barnyard2_1.8.bb                     |   18 +++++++++++++++++
>  2 files changed, 39 insertions(+), 0 deletions(-)
>  create mode 100644 meta-networking/recipes-connectivity/barnyard2/barnyard2-1.8/barnyard2-cross-fix.patch
>  create mode 100644 meta-networking/recipes-connectivity/barnyard2/barnyard2_1.8.bb
> 
> diff --git a/meta-networking/recipes-connectivity/barnyard2/barnyard2-1.8/barnyard2-cross-fix.patch b/meta-networking/recipes-connectivity/barnyard2/barnyard2-1.8/barnyard2-cross-fix.patch
> new file mode 100644
> index 0000000..0e94598
> --- /dev/null
> +++ b/meta-networking/recipes-connectivity/barnyard2/barnyard2-1.8/barnyard2-cross-fix.patch
> @@ -0,0 +1,21 @@
> +Index: barnyard2-1.8/configure.in
> +===================================================================
> +--- barnyard2-1.8.orig/configure.in	2010-08-03 15:12:06.000000000 +0400
> ++++ barnyard2-1.8/configure.in	2010-08-03 15:13:46.000000000 +0400
> +@@ -73,7 +73,6 @@
> +     # libpcap doesn't even LOOK at the timeout you give it under Linux
> +     AC_DEFINE([PCAP_TIMEOUT_IGNORED],[1],[Define if pcap timeout is ignored])
> +     AC_SUBST(extra_incl)
> +-    extra_incl="-I/usr/include/pcap"
> +     ;;
> +   *-hpux10*|*-hpux11*)
> +     AC_DEFINE([HPUX],[1],[Define if HP-UX 10 or 11])
> +@@ -230,7 +229,7 @@
> + # In case INADDR_NONE is not defined (like on Solaris)
> + have_inaddr_none="no"
> + AC_MSG_CHECKING([for INADDR_NONE])
> +-AC_RUN_IFELSE(
> ++AC_COMPILE_IFELSE(
> + [AC_LANG_PROGRAM(
> + [[
> + #include <sys/types.h>
> diff --git a/meta-networking/recipes-connectivity/barnyard2/barnyard2_1.8.bb b/meta-networking/recipes-connectivity/barnyard2/barnyard2_1.8.bb
> new file mode 100644
> index 0000000..14acdac
> --- /dev/null
> +++ b/meta-networking/recipes-connectivity/barnyard2/barnyard2_1.8.bb
> @@ -0,0 +1,18 @@
> +DESCRIPTION = "Barnyard2 is a fork of the original barnyard project, designed specifically for Snort's new unified2 file format"
> +HOMEPAGE = "http://www.securixlive.com/barnyard2/"
> +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"
> +DEPENDS = "libpcap"
> +
> +SRC_URI = " \
> +	http://www.securixlive.com/download/barnyard2/${BP}.tar.gz \
> +	file://barnyard2-cross-fix.patch \
> +	"
> +SRC_URI[md5sum] = "72fc6c490db6ea6a0f46c27d24998067"
> +SRC_URI[sha256sum] = "1abfe6530d721debd98921421722b02c844c289564730b1e85729e4915b2bb7a"
> +
> +inherit autotools pkgconfig
> +
> +EXTRA_OECONF = "--enable-prelude --enable-gre --without-mysql"
> +
> +CONFFILES_${PN} = "${sysconfdir}/barnyard2.conf"

Patch

diff --git a/meta-networking/recipes-connectivity/barnyard2/barnyard2-1.8/barnyard2-cross-fix.patch b/meta-networking/recipes-connectivity/barnyard2/barnyard2-1.8/barnyard2-cross-fix.patch
new file mode 100644
index 0000000..0e94598
--- /dev/null
+++ b/meta-networking/recipes-connectivity/barnyard2/barnyard2-1.8/barnyard2-cross-fix.patch
@@ -0,0 +1,21 @@ 
+Index: barnyard2-1.8/configure.in
+===================================================================
+--- barnyard2-1.8.orig/configure.in	2010-08-03 15:12:06.000000000 +0400
++++ barnyard2-1.8/configure.in	2010-08-03 15:13:46.000000000 +0400
+@@ -73,7 +73,6 @@
+     # libpcap doesn't even LOOK at the timeout you give it under Linux
+     AC_DEFINE([PCAP_TIMEOUT_IGNORED],[1],[Define if pcap timeout is ignored])
+     AC_SUBST(extra_incl)
+-    extra_incl="-I/usr/include/pcap"
+     ;;
+   *-hpux10*|*-hpux11*)
+     AC_DEFINE([HPUX],[1],[Define if HP-UX 10 or 11])
+@@ -230,7 +229,7 @@
+ # In case INADDR_NONE is not defined (like on Solaris)
+ have_inaddr_none="no"
+ AC_MSG_CHECKING([for INADDR_NONE])
+-AC_RUN_IFELSE(
++AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[
+ #include <sys/types.h>
diff --git a/meta-networking/recipes-connectivity/barnyard2/barnyard2_1.8.bb b/meta-networking/recipes-connectivity/barnyard2/barnyard2_1.8.bb
new file mode 100644
index 0000000..14acdac
--- /dev/null
+++ b/meta-networking/recipes-connectivity/barnyard2/barnyard2_1.8.bb
@@ -0,0 +1,18 @@ 
+DESCRIPTION = "Barnyard2 is a fork of the original barnyard project, designed specifically for Snort's new unified2 file format"
+HOMEPAGE = "http://www.securixlive.com/barnyard2/"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"
+DEPENDS = "libpcap"
+
+SRC_URI = " \
+	http://www.securixlive.com/download/barnyard2/${BP}.tar.gz \
+	file://barnyard2-cross-fix.patch \
+	"
+SRC_URI[md5sum] = "72fc6c490db6ea6a0f46c27d24998067"
+SRC_URI[sha256sum] = "1abfe6530d721debd98921421722b02c844c289564730b1e85729e4915b2bb7a"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = "--enable-prelude --enable-gre --without-mysql"
+
+CONFFILES_${PN} = "${sysconfdir}/barnyard2.conf"