All of lore.kernel.org
 help / color / mirror / Atom feed
* Help creating zeek recipe #yocto
@ 2020-07-03 21:22 gary
  2020-07-06  8:51 ` [yocto] " Quentin Schulz
  0 siblings, 1 reply; 2+ messages in thread
From: gary @ 2020-07-03 21:22 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1730 bytes --]

I would like to create a recipe for zeek (a network security monitoring tool, https://zeek.org/). It fails while compiling because it cannot find a executable that it needs to install called binpac.  binpac is included in the zeek repo and is normally built as part of the zeek build.  I've created a recipe for binpac and included the native class and included binpac-native in the zeek recipe.  The binpac-native builds.

binpac_git.bb

SUMMARY = "BinPAC is a high level language for describing protocol parsers and generates C++ code."
HOMEPAGE = "https://github.com/zeek/binpac"

LICENSE = "Unknown"
LIC_FILES_CHKSUM = "file://COPYING;md5=5139995cafc8b5273b85dd8bab509855"

SRC_URI = "git://git@github.com/zeek/binpac.git;protocol=ssh"

# Modify these as desired
PV = "0.55-8+git${SRCPV}"
SRCREV = "9c3211ff121ddc677d0ed8bd3a85783f87921cce"

BBCLASSEXTEND = "native"

DEPENDS += "bison-native \
flex-native \
"
S = "${WORKDIR}/git"

inherit distutils

zeek_3.1.4.bb:
# Zeek
# Install reference:
# https://docs.zeek.org/en/current/install/install.html
SRC_URI = "https://download.zeek.org/zeek-${PV}.tar.gz"
SRC_URI[md5sum] = "b9d82fbd4964ea2d49c31653726d0dc0"
SRC_URI[sha256sum] = "d72b8bcba0def6ba93b650d6f25896d9326ee0b02113b80696f47b08bd73e964"

<lots of license lines>

DEPENDS = "\
binpac-native \
bifcl-native \
swig-native \
bison-native \
flex-native \
sed \
libpcap \
zlib \
openssl \
"

RDEPENDS_${PN} += "\
bash \
python \
libpcap \
openssl \
bind \
zlib \
"

inherit cmake pythonnative

# So that cmake can find sed
OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH"
# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
EXTRA_OECMAKE = ""

[-- Attachment #2: Type: text/html, Size: 3725 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-06  8:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-03 21:22 Help creating zeek recipe #yocto gary
2020-07-06  8:51 ` [yocto] " Quentin Schulz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.