Skip to contentSkip to conversation

barnyard: add recipe

PATCH In review [email protected] 3 participants 3 messages Sep 23, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 barnyard: add recipe

From: Chunrong Guo <[email protected]>

*Barnyard is a output system for Snort

---
 .../barnyard/barnyard_0.2.0.bb                     |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
 create mode 100644 meta-networking/recipes-connectivity/barnyard/barnyard_0.2.0.bb
meta-networking/recipes-connectivity/barnyard/barnyard_0.2.0.bb new file +19 -0
new file mode 100644
index 0000000..c5e0e78
@@ -0,0 +1,19 @@
+DESCRIPTION = "Barnyard is a output system for Snort."
+HOMEPAGE = "http://www.snort.org/"
+LICENSE = "QPL"
+LIC_FILES_CHKSUM = "file://LICENSE.QPL;md5=1b8ff8c0012b5a2d647357699bf44b41"
+
+DEPENDS = "libpcap"
+
+SRC_URI = " ${GENTOO_MIRROR}/${BP}.tar.gz;name=tarball \
+          "
+SRC_URI[tarball.md5sum] = "be3283028cf414b52b220308ceb411e9"
+SRC_URI[tarball.sha256sum] = "09e0f8e095e79cfe70ea069d13e7d02521a504a1f400a45556a634dccfd31a3a"
+
+inherit autotools pkgconfig
+
+do_configure_prepend () {
+	#fix hardcoded include path
+	sed -i -e 's:extra_incl=-I/usr/include/pcap::g' ${S}/configure.in
+}
+
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 7 lines · On Monday, September 23, 2013, <[email protected]> wrote:

From: Chunrong Guo <[email protected]>

*Barnyard is a output system for Snort

---
 .../barnyard/barnyard_0.2.0.bb                     |   19

+++++++++++++++++++

Quoted 2 lines
 1 files changed, 19 insertions(+), 0 deletions(-)
 create mode 100644 meta-networking/recipes-connectivity/barnyard/

barnyard_0.2.0.bb

Review

Quoted 2 lines
(quoted diff) +0 -0

barnyard_0.2.0.bb b/meta-networking/recipes-connectivity/barnyard/ barnyard_0.2.0.bb

meta-networking/recipes-connectivity/barnyard/barnyard_0.2.0.bb line 4

Quoted 9 lines

new file mode 100644
index 0000000..c5e0e78

meta-networking/recipes-connectivity/barnyard/barnyard_0.2.0.bb new file +4 -0
@@ -0,0 +1,19 @@
+DESCRIPTION = "Barnyard is a output system for Snort."
+HOMEPAGE = "http://www.snort.org/"
+LICENSE = "QPL"
+LIC_FILES_CHKSUM =

"file://LICENSE.QPL;md5=1b8ff8c0012b5a2d647357699bf44b41"

meta-networking/recipes-connectivity/barnyard/barnyard_0.2.0.bb

Quoted 7 lines
meta-networking/recipes-connectivity/barnyard/barnyard_0.2.0.bb new file +7 -0
+
+DEPENDS = "libpcap"
+
+SRC_URI = " ${GENTOO_MIRROR}/${BP}.tar.gz;name=tarball \
+          "
+SRC_URI[tarball.md5sum] = "be3283028cf414b52b220308ceb411e9"
+SRC_URI[tarball.sha256sum] =

"09e0f8e095e79cfe70ea069d13e7d02521a504a1f400a45556a634dccfd31a3a"

meta-networking/recipes-connectivity/barnyard/barnyard_0.2.0.bb line 18

Quoted 7 lines
meta-networking/recipes-connectivity/barnyard/barnyard_0.2.0.bb new file +7 -0
+
+inherit autotools pkgconfig
+
+do_configure_prepend () {
+       #fix hardcoded include path
+       sed -i -e 's:extra_incl=-I/usr/include/pcap::g' ${S}/configure.in
+}

instead of wiping it out completely change it to =/usr/include/pcap

something like that could also be submitted upstream

Quoted 10 lines
meta-networking/recipes-connectivity/barnyard/barnyard_0.2.0.bb new file +1 -1
+
--

1.7.5.4

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw
In reply to [email protected]
Quoted 16 lines · [[oe] [meta-networking][PATCH 3/3] barnyard: add recipe] On 13.09.23 (Mon…

From: Chunrong Guo <[email protected]>

*Barnyard is a output system for Snort

---
 .../barnyard/barnyard_0.2.0.bb                     |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
 create mode 100644 meta-networking/recipes-connectivity/barnyard/barnyard_0.2.0.bb
meta-networking/recipes-connectivity/barnyard/barnyard_0.2.0.bb new file +0 -0
new file mode 100644
index 0000000..c5e0e78

meta-networking/recipes-connectivity/barnyard/barnyard_0.2.0.bb line 3

Quoted 3 lines
meta-networking/recipes-connectivity/barnyard/barnyard_0.2.0.bb new file +3 -0
@@ -0,0 +1,19 @@
+DESCRIPTION = "Barnyard is a output system for Snort."
+HOMEPAGE = "http://www.snort.org/"
+LICENSE = "QPL"

I think this is QPL-1.0.

meta-networking/recipes-connectivity/barnyard/barnyard_0.2.0.bb line 9

Quoted 6 lines
meta-networking/recipes-connectivity/barnyard/barnyard_0.2.0.bb new file +6 -0
+LIC_FILES_CHKSUM = "file://LICENSE.QPL;md5=1b8ff8c0012b5a2d647357699bf44b41"
+
+DEPENDS = "libpcap"
+
+SRC_URI = " ${GENTOO_MIRROR}/${BP}.tar.gz;name=tarball \
+          "

In line with my other request about SRC_URI formatting, can you update this as well? I think you can remove the ";name=tarball" piece and you can move the bottom " back up against the left margin.

I'm curious, too, about the SRC_URI itself. Why GENTOO_MIRROR instead of the SourceForge site?

Also, do you really need Barnyard and not Barnyard2? Barnyard2 is the one currently referenced on snort.org and it appears to be a full re-write. Since the original Barnyard appears to be somewhat idle, I'd be more inclined to adopt Barnyard2 and leave the older version behind. Perhaps there's a good reason to use the older one, though. I can surely be convinced. :-)

meta-networking/recipes-connectivity/barnyard/barnyard_0.2.0.bb line 19

Quoted 10 lines
meta-networking/recipes-connectivity/barnyard/barnyard_0.2.0.bb new file +10 -0
+SRC_URI[tarball.md5sum] = "be3283028cf414b52b220308ceb411e9"
+SRC_URI[tarball.sha256sum] = "09e0f8e095e79cfe70ea069d13e7d02521a504a1f400a45556a634dccfd31a3a"
+
+inherit autotools pkgconfig
+
+do_configure_prepend () {
+	#fix hardcoded include path
+	sed -i -e 's:extra_incl=-I/usr/include/pcap::g' ${S}/configure.in
+}
+

This is probably a fine solution for the snort host include path issue, too.

Thanks.

Signature · 2 lines
-Joe MacDonald.
:wq