From db899783b4252e0ce4e7c7f9a580817f5be6d60b Mon Sep 17 00:00:00 2001 From: Catena cyber <35799796+catenacyber@users.noreply.github.com> Date: Tue, 13 Apr 2021 18:27:20 +0200 Subject: [PATCH] Suricata with pcre2 (#5606) * Builds pcre2 dependency for Suricata * Update Dockerfile Co-authored-by: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> --- projects/suricata/Dockerfile | 5 +++-- projects/suricata/build.sh | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/projects/suricata/Dockerfile b/projects/suricata/Dockerfile index 257e7fb04..837a8892d 100644 --- a/projects/suricata/Dockerfile +++ b/projects/suricata/Dockerfile @@ -15,9 +15,10 @@ ################################################################################ FROM gcr.io/oss-fuzz-base/base-builder -RUN apt-get update && apt-get install -y build-essential autoconf automake libtool make pkg-config python flex bison zlib1g-dev libpcre3-dev libpcre2-dev cmake tshark +RUN apt-get update && apt-get install -y build-essential autoconf automake libtool make pkg-config python flex bison zlib1g-dev libpcre3-dev cmake tshark -#TODO libmagic, liblzma, pcre and other optional libraries +# TODO libmagic, liblzma and other optional libraries +ADD https://ftp.pcre.org/pub/pcre/pcre2-10.36.tar.gz pcre2-10.36.tar.gz ADD https://www.tcpdump.org/release/libpcap-1.9.1.tar.gz libpcap-1.9.1.tar.gz ADD http://www.digip.org/jansson/releases/jansson-2.12.tar.gz jansson-2.12.tar.gz RUN git clone --depth=1 https://github.com/yaml/libyaml diff --git a/projects/suricata/build.sh b/projects/suricata/build.sh index 95c905ace..78de1fbb1 100755 --- a/projects/suricata/build.sh +++ b/projects/suricata/build.sh @@ -16,6 +16,15 @@ ################################################################################ # build dependencies statically +( +tar -xvzf pcre2-10.36.tar.gz +cd pcre2-10.36 +./configure --disable-shared +make -j$(nproc) clean +make -j$(nproc) all +make -j$(nproc) install +) + tar -xvzf lz4-1.9.2.tar.gz cd lz4-1.9.2 make liblz4.a