[yocto] [Meta-security][PATCH 3/3] barnyard: add recipe

Saul Wold sgw at linux.intel.com
Wed Sep 11 10:50:19 PDT 2013


On 09/10/2013 09:06 PM, b40290 at freescale.com wrote:
> From: Chunrong Guo <B40290 at freescale.com>
>
>     *Barnyard is a output system for Snort
>
> Signed-off-by: Chunrong Guo <B40290 at freescale.com>
> ---
>   recipes-security/barnyard/barnyard_0.2.0.bb |   22 ++++++++++++++++++++++
>   1 files changed, 22 insertions(+), 0 deletions(-)
>   create mode 100644 recipes-security/barnyard/barnyard_0.2.0.bb
>
> diff --git a/recipes-security/barnyard/barnyard_0.2.0.bb b/recipes-security/barnyard/barnyard_0.2.0.bb
> new file mode 100644
> index 0000000..a13ebdc
> --- /dev/null
> +++ b/recipes-security/barnyard/barnyard_0.2.0.bb
> @@ -0,0 +1,22 @@
> +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"
> +RDEPENDS_${PN} = "libpcap"
DEPENDS are also RDEPENDS so this is extra and not needed.
> +
> +SRC_URI = " ${GENTOO_MIRROR}/${P}.tar.gz;name=tarball \
You don't want to use ${P} as it will be prefixed with any multilib type 
of extension, it's better to use ${BP} which won't be expanded.

> +          "
> +SRC_URI[tarball.md5sum] = "be3283028cf414b52b220308ceb411e9"
> +SRC_URI[tarball.sha256sum] = "09e0f8e095e79cfe70ea069d13e7d02521a504a1f400a45556a634dccfd31a3a"
> +
> +
> +S = "${WORKDIR}/${P}"
Same as above, this is also the default, so you should not need to 
specify this item.

> +inherit autotools pkgconfig
> +
> +do_configure_prepend () {
> +	#fix hardcoded include path
> +	sed -i -e 's:extra_incl=-I/usr/include/pcap::g' ${S}/configure.in
> +}
> +
>



More information about the yocto mailing list