Return-Path: Received: from mail-qa0-f46.google.com (mail-qa0-f46.google.com [209.85.216.46]) by mail.openembedded.org (Postfix) with ESMTP id 520B36CCC9 for ; Fri, 1 Nov 2013 14:13:56 +0000 (UTC) Received: by mail-qa0-f46.google.com with SMTP id j15so637916qaq.12 for ; Fri, 01 Nov 2013 07:13:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=X8db0qEBYs+3JOCvJaWMlyJffDOL2DRnGsE8LCaeS7Q=; b=j7l7L1CVujJWpS/NgCmUvKklLQEz+CcXy4rbW6xXGtjV22wCYFqPmfbn5M1s5svq2t 7Fy90pcTLkAB6SVmxyhDxwQtEh+p6hxmM3eoOfA/nx8w+aALbxW3aIAROLrLP1KmcNdH J/BeO3ya+PgLlK6BqOBLWbC6VALr3QsK48Wug4y0UvvXIdt3jkJEYclsC+/x19W3kzw0 nNUxL2DYdwadjv/oKbsSiCaJfc/1VQF7BZ1X8na0fxkn3VTrO+8FRqLYWvLPd3pdVEwz QPpBU3ihkz31b/36ho8NlShqryg5xtK6IdMn8bnIMAhU76hsoOe4l/XcISm9xUmmtNUK KcUg== X-Gm-Message-State: ALoCoQnaDWQPGOWIERyBj0lzkk9ZMq0mRCcDPyTFD+AwZ3cKPo2U7iQljaKLKmqvOgs29Q0+QFMA X-Received: by 10.49.76.6 with SMTP id g6mr4229239qew.41.1383315237672; Fri, 01 Nov 2013 07:13:57 -0700 (PDT) Received: from deserted.net ([128.224.252.2]) by mx.google.com with ESMTPSA id k2sm21365727qan.8.2013.11.01.07.13.55 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 01 Nov 2013 07:13:56 -0700 (PDT) Date: Fri, 1 Nov 2013 10:13:53 -0400 From: Joe MacDonald To: Chunrong Guo Message-ID: <20131101141351.GC4412@deserted.net> References: <1382084537-10877-1-git-send-email-b40290@freescale.com> <20131029192008.GB9931@deserted.net> <20131030124911.GA3716@deserted.net> MIME-Version: 1.0 In-Reply-To: X-URL: http://github.com/joeythesaint/joe-s-common-environment/tree/master X-Configuration: git://github.com/joeythesaint/joe-s-common-environment.git X-Editor: Vim-703 http://www.vim.org User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "openembedded-devel@lists.openembedded.org" Subject: Re: [meta-networking][PATCH v2 1/3] snort : add recipe X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2013 14:13:57 -0000 X-Groupsio-MsgNum: 46977 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dkEUBIird37B8yKS" Content-Disposition: inline --dkEUBIird37B8yKS Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [RE: [oe] [meta-networking][PATCH v2 1/3] snort : add recipe] On 13.11.01 (= Fri 07:15) Chunrong Guo wrote: > Hello=EF=BC=8Cjoe=20 >=20 > I investigate barnyard2 and barnyard .=20 > I have the following conclusions:=20 > 1) Barnyard2 maintains majority of the command syntax of barnyard. > 2) Barnyard has not seen an updated in over 4 years and is not go= ing to be maintained by the original developers.=20 > 3) Barnyard2 is a very popular plugin . >=20 > I will submit new patch about " snort + Barnyard2". Thanks. That was my read on barnyard v. barnyard2 as well but it is good to know you've verified my impression. I saw the latest version (please do try to ensure you tag them with meta-networking in the subject) and I'll have a look at them and try them out later this morning. -J. >=20 > Thanks, > chunrong >=20 > -----Original Message----- > From: Joe MacDonald [mailto:joe@deserted.net]=20 > Sent: Wednesday, October 30, 2013 8:49 PM > To: Guo Chunrong-B40290 > Cc: openembedded-devel@lists.openembedded.org > Subject: Re: [oe] [meta-networking][PATCH v2 1/3] snort : add recipe >=20 > [RE: [oe] [meta-networking][PATCH v2 1/3] snort : add recipe] On 13.10.30= (Wed 01:40) Guo Chunrong-B40290 wrote: >=20 > > Hi, Joe MacDonald > >=20 > > Thank you for your comments. > >=20 > > The current snort simply do not need sysvinit config. >=20 > I apologize, I don't mean to belabor the point, but can you point me at t= hat information? http://www.snort.org/docs/ contains a lot of documentatio= n around getting snort started on various systems and there are a number of= startup scripts there that indicate they belong in /etc/init.d of their re= spective distributions. Perhaps things have changed in the most recent ver= sion of snort, but the "Snort Startup Scripts" section seem to apply to the= versions of snort you're proposing we include in meta-networking. >=20 > Also, please don't forget about the include path and barnyard questions. >=20 > Thanks. >=20 > -J. >=20 > >=20 > >=20 > > Thanks, > > Chunrong > >=20 > > -----Original Message----- > > From: Joe MacDonald [mailto:joe@deserted.net] > > Sent: Wednesday, October 30, 2013 3:20 AM > > To: openembedded-devel@lists.openembedded.org > > Cc: Guo Chunrong-B40290 > > Subject: Re: [oe] [meta-networking][PATCH v2 1/3] snort : add recipe > >=20 > > Hi Chunrong, > >=20 > > Sorry about the confusion here, there were still at least a couple of o= utstanding questions / requests, I thought. > >=20 > > I had a quick look back at the latest barnyard recipe and it appears to= be removing the include path as opposed to using -I=3D/usr/include/pcap th= at Khem suggested, I was hoping to hear back on the question I had as well = WRT barnyard versus barnyard2 (I could make the license tweak myself since = I'm confident that won't invalidate any of your work) and the Gentoo mirror= as the primary source for this version of Barnyard. > >=20 > > I also noticed that in the most recent version of the snort recipe the= =20 > > sysvinit components have been dropped entirely. Was that due to=20 > > problems inheriting update-rc.d as Koen suggested? (Or perhaps the=20 > > current snort simply doesn't have a functional sysvinit config? I=20 > > hope that's not the case.) I'm probably not the only one still making= =20 > > use of sysvinit stuff in some scenarios. :-) > >=20 > > -J. > >=20 > > [Re: [oe] [meta-networking][PATCH v2 1/3] snort : add recipe] On 13.10.= 28 (Mon 02:23) Guo Chunrong-B40290 wrote: > >=20 > > > pings > > >=20 > > > -----Original Message----- > > > From: Guo Chunrong-B40290 > > > Sent: Friday, October 18, 2013 4:22 PM > > > To: openembedded-devel@lists.openembedded.org > > > Cc: Liu Ting-B28495; Luo Zhenhua-B19537; Guo Chunrong-B40290 > > > Subject: [meta-networking][PATCH v2 1/3] snort : add recipe > > >=20 > > > From: Chunrong Guo > > >=20 > > > *snort - a free lightweight network intrusion detection > > > system for UNIX and Windows > > >=20 > > > Signed-off-by: Chunrong Guo > > > --- > > > .../snort/files/disable-dap-address-space-id.patch | 52 ++++++++++= ++++ > > > .../snort/files/disable-inaddr-none.patch | 75 ++++++++++= ++++++++++ > > > .../recipes-connectivity/snort/snort_2.9.4.6.bb | 64 ++++++++++= +++++++ > > > 3 files changed, 191 insertions(+), 0 deletions(-) create mode > > > 100644 > > > meta-networking/recipes-connectivity/snort/files/disable-dap-address > > > -s > > > pace-id.patch create mode 100644 > > > meta-networking/recipes-connectivity/snort/files/disable-inaddr-none > > > .p > > > atch create mode 100644 > > > meta-networking/recipes-connectivity/snort/snort_2.9.4.6.bb > > >=20 > > > diff --git > > > a/meta-networking/recipes-connectivity/snort/files/disable-dap-addre > > > ss > > > -space-id.patch > > > b/meta-networking/recipes-connectivity/snort/files/disable-dap-addre > > > ss > > > -space-id.patch > > > new file mode 100644 > > > index 0000000..39e5c9c > > > --- /dev/null > > > +++ b/meta-networking/recipes-connectivity/snort/files/disable-dap-a > > > +++ dd > > > +++ re > > > +++ ss-space-id.patch > > > @@ -0,0 +1,52 @@ > > > +Upstream-Status:Inappropriate [embedded specific] > > > + > > > +fix the below error: > > > +checking for dap address space id... configure:=20 > > > +configure: error: cannot run test program while cross compiling > > > + > > > + > > > +Signed-off-by: Chunrong Guo > > > + > > > +--- a/configure.in 2013-08-23 00:06:37.239361932 -0500 > > > ++++ b/configure.in 2013-08-23 00:07:32.860266534 -0500 > > > +@@ -679,23 +679,23 @@ > > > +=20 > > > + AC_CHECK_FUNCS([daq_hup_apply] [daq_acquire_with_meta]) > > > +=20 > > > +-AC_MSG_CHECKING([for daq address space ID]) -AC_RUN_IFELSE(=20 > > > +-[AC_LANG_PROGRAM( -[[ -#include -]], -[[ > > > +- DAQ_PktHdr_t hdr; > > > +- hdr.address_space_id =3D 0; > > > +-]])], > > > +-[have_daq_address_space_id=3D"yes"], > > > +-[have_daq_address_space_id=3D"no"]) > > > +-AC_MSG_RESULT($have_daq_address_space_id) > > > +-if test "x$have_daq_address_space_id" =3D "xyes"; then > > > +- AC_DEFINE([HAVE_DAQ_ADDRESS_SPACE_ID],[1], > > > +- [DAQ version supports address space ID in header.]) > > > +-fi > > > ++#AC_MSG_CHECKING([for daq address space ID]) #AC_RUN_IFELSE(=20 > > > ++#[AC_LANG_PROGRAM( #[[ ##include #]], #[[ > > > ++# DAQ_PktHdr_t hdr; > > > ++# hdr.address_space_id =3D 0; > > > ++#]])], > > > ++have_daq_address_space_id=3D"yes" > > > ++#[have_daq_address_space_id=3D"no"]) > > > ++#AC_MSG_RESULT($have_daq_address_space_id) > > > ++#if test "x$have_daq_address_space_id" =3D "xyes"; then > > > ++# AC_DEFINE([HAVE_DAQ_ADDRESS_SPACE_ID],[1], > > > ++# [DAQ version supports address space ID in header.]) > > > ++#fi > > > +=20 > > > + # any sparc platform has to have this one defined. > > > + AC_MSG_CHECKING(for sparc) > > > diff --git > > > a/meta-networking/recipes-connectivity/snort/files/disable-inaddr-no > > > ne > > > .patch > > > b/meta-networking/recipes-connectivity/snort/files/disable-inaddr-no > > > ne > > > .patch > > > new file mode 100644 > > > index 0000000..9dafe63 > > > --- /dev/null > > > +++ b/meta-networking/recipes-connectivity/snort/files/disable-inadd > > > +++ r- > > > +++ no > > > +++ ne.patch > > > @@ -0,0 +1,75 @@ > > > +Upstream-Status: Inappropriate [embedded specific] > > > + > > > +fix the below error: > > > +checking for INADDR_NONE... configure: > > > +configure: error: cannot run test program while cross compiling > > > + > > > +Signed-off-by: Chunrong Guo > > > + > > > + > > > +--- a/configure.in 2013-08-21 03:56:17.197414789 -0500 > > > ++++ b/configure.in 2013-08-21 23:19:05.298553560 -0500 > > > +@@ -281,25 +281,7 @@ > > > + AC_CHECK_TYPES([boolean]) > > > +=20 > > > + # In case INADDR_NONE is not defined (like on Solaris)=20 > > > +-have_inaddr_none=3D"no" > > > +-AC_MSG_CHECKING([for INADDR_NONE]) -AC_RUN_IFELSE(=20 > > > +-[AC_LANG_PROGRAM( -[[ -#include -#include=20 > > > + -#include -]], -[[ > > > +- if (inet_addr("10,5,2") =3D=3D INADDR_NONE); > > > +- return 0; > > > +-]])], > > > +-[have_inaddr_none=3D"yes"], > > > +-[have_inaddr_none=3D"no"]) > > > +-AC_MSG_RESULT($have_inaddr_none) > > > +-if test "x$have_inaddr_none" =3D "xno"; then > > > +- AC_DEFINE([INADDR_NONE],[-1],[For INADDR_NONE definition]) > > > +-fi > > > ++have_inaddr_none=3D"yes" > > > +=20 > > > + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ > > > + #include > > > +@@ -397,21 +379,21 @@ > > > + fi > > > + fi > > > +=20 > > > +-AC_MSG_CHECKING([for pcap_lex_destroy]) -AC_RUN_IFELSE(=20 > > > +-[AC_LANG_PROGRAM( -[[ -#include -]], -[[ > > > +- pcap_lex_destroy(); > > > +-]])], > > > +-[have_pcap_lex_destroy=3D"yes"], > > > +-[have_pcap_lex_destroy=3D"no"]) > > > +-AC_MSG_RESULT($have_pcap_lex_destroy) > > > +-if test "x$have_pcap_lex_destroy" =3D "xyes"; then > > > +- AC_DEFINE([HAVE_PCAP_LEX_DESTROY],[1],[Can cleanup lex buffer s= tack created by pcap bpf filter]) > > > +-fi > > > ++#AC_MSG_CHECKING([for pcap_lex_destroy]) #AC_RUN_IFELSE(=20 > > > ++#[AC_LANG_PROGRAM( #[[ ##include #]], #[[ > > > ++# pcap_lex_destroy(); > > > ++#]])], > > > ++have_pcap_lex_destroy=3D"yes" > > > ++#[have_pcap_lex_destroy=3D"no"]) > > > ++#AC_MSG_RESULT($have_pcap_lex_destroy) > > > ++#if test "x$have_pcap_lex_destroy" =3D "xyes"; then > > > ++# AC_DEFINE([HAVE_PCAP_LEX_DESTROY],[1],[Can cleanup lex buffer = stack created by pcap bpf filter]) > > > ++#fi > > > +=20 > > > + AC_MSG_CHECKING([for pcap_lib_version]) AC_LINK_IFELSE( > > > diff --git > > > a/meta-networking/recipes-connectivity/snort/snort_2.9.4.6.bb > > > b/meta-networking/recipes-connectivity/snort/snort_2.9.4.6.bb > > > new file mode 100644 > > > index 0000000..8639639 > > > --- /dev/null > > > +++ b/meta-networking/recipes-connectivity/snort/snort_2.9.4.6.bb > > > @@ -0,0 +1,64 @@ > > > +DESCRIPTION =3D "snort - a free lightweight network intrusion detect= ion system for UNIX and Windows." > > > +HOMEPAGE =3D "http://www.snort.org/" > > > +LICENSE =3D "GPL-2.0" > > > +LIC_FILES_CHKSUM =3D "file://COPYING;md5=3D78fa8ef966b48fbf9095e13cc= 92377c5" > > > + > > > +DEPENDS =3D "libpcap libpcre daq libdnet" > > > + > > > + > > > +SRC_URI =3D " ${GENTOO_MIRROR}/${BP}.tar.gz;name=3Dtarball \ > > > + file://disable-inaddr-none.patch \ > > > + file://disable-dap-address-space-id.patch " > > > + > > > +SRC_URI[tarball.md5sum] =3D "4111df01a4f21bd1d328a18b76d625bd" > > > +SRC_URI[tarball.sha256sum] =3D "cfaa5390b1840aaaa68a6c05a7077dd92cb9= 16e6186a014baa451d43cdb0b3bc" > > > + > > > +inherit autotools gettext > > > + > > > +EXTRA_OECONF =3D " \ > > > + --enable-gre \ =20 > > > + --enable-linux-smp-stats \ > > > + --enable-reload \ > > > + --enable-reload-error-restart \ > > > + --enable-targetbased \ > > > + --disable-static-daq \ > > > + " > > > + > > > +do_install_append() { > > > + install -d ${D}/${sysconfdir}/snort/rules > > > + install -d ${D}/${sysconfdir}/snort/preproc_rules > > > + for i in map config conf dtd; do > > > + cp ${S}/etc/*.$i ${D}/${sysconfdir}/snort/ > > > + done > > > + cp ${S}/preproc_rules/*.rules ${D}/${sysconfdir}/snort/preproc_rule= s/ > > > + mkdir -p ${D}/${localstatedir}/log/snort } > > > + > > > +FILES_${PN} +=3D " \ > > > + ${libdir}/snort_dynamicengine/*.so.* \ > > > + ${libdir}/snort_dynamicpreprocessor/*.so.* \ > > > + ${libdir}/snort_dynamicrules/*.so.* \ > > > + " > > > +FILES_${PN}-dbg +=3D " \ > > > + ${libdir}/snort_dynamicengine/.debug \ > > > + ${libdir}/snort_dynamicpreprocessor/.debug \ > > > + ${libdir}/snort_dynamicrules/.debug \ > > > + " > > > +FILES_${PN}-staticdev +=3D " \ > > > + ${libdir}/snort_dynamicengine/*.a \ > > > + ${libdir}/snort_dynamicpreprocessor/*.a \ > > > + ${libdir}/snort_dynamicrules/*.a \ > > > + ${libdir}/snort/dynamic_preproc/*.a \ > > > + ${libdir}/snort/dynamic_output/*.a \ > > > + " > > > +FILES_${PN}-dev +=3D " \ > > > + ${libdir}/snort_dynamicengine/*.la \ > > > + ${libdir}/snort_dynamicpreprocessor/*.la \ > > > + ${libdir}/snort_dynamicrules/*.la \ > > > + ${libdir}/snort_dynamicengine/*.so \ > > > + ${libdir}/snort_dynamicpreprocessor/*.so \ > > > + ${libdir}/snort_dynamicrules/*.so \ > > > + ${prefix}/src/snort_dynamicsrc \ > > > + " > > > + > > > +RRECOMMENDS_${PN} +=3D "barnyard" > > > -- > > > 1.7.5.4 > > >=20 > > >=20 > > > _______________________________________________ > > > Openembedded-devel mailing list > > > Openembedded-devel@lists.openembedded.org > > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel > >=20 > > -- > > -Joe MacDonald. > > :wq > >=20 >=20 > -- > -Joe MacDonald. > :wq --=20 -Joe MacDonald. :wq --dkEUBIird37B8yKS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlJztx8ACgkQwFvcllog0XyPQACeMCZmqm9Uh6cecPBm6d2DXdel YgcAnRtHn3mt1IeZT0lIZXus5hv2UOox =teG+ -----END PGP SIGNATURE----- --dkEUBIird37B8yKS--