aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects
diff options
context:
space:
mode:
authorGravatar Catena cyber <35799796+catenacyber@users.noreply.github.com>2020-12-03 17:23:18 +0100
committerGravatar GitHub <noreply@github.com>2020-12-03 08:23:18 -0800
commiteb0c225372412a2918e141d9ff38355503572d1e (patch)
treeba9622b914ab2f583f1539c97afe2d742503a5de /projects
parent8f8148438aa156ff876fca305b4f6b04789c78d7 (diff)
Compiles json-c in ndpi project (#4773)
Diffstat (limited to 'projects')
-rw-r--r--projects/ndpi/Dockerfile3
-rwxr-xr-xprojects/ndpi/build.sh7
2 files changed, 9 insertions, 1 deletions
diff --git a/projects/ndpi/Dockerfile b/projects/ndpi/Dockerfile
index 2cef8155..fafb0815 100644
--- a/projects/ndpi/Dockerfile
+++ b/projects/ndpi/Dockerfile
@@ -15,7 +15,8 @@
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder
-RUN apt-get update && apt-get install -y make autoconf automake autogen pkg-config libtool flex bison libjson-c-dev
+RUN apt-get update && apt-get install -y make autoconf automake autogen pkg-config libtool flex bison cmake
+RUN git clone --depth 1 https://github.com/json-c/json-c.git json-c
RUN git clone --depth 1 https://github.com/ntop/nDPI.git ndpi
ADD https://www.tcpdump.org/release/libpcap-1.9.1.tar.gz libpcap-1.9.1.tar.gz
COPY build.sh $SRC/
diff --git a/projects/ndpi/build.sh b/projects/ndpi/build.sh
index a48c042e..cf844d1f 100755
--- a/projects/ndpi/build.sh
+++ b/projects/ndpi/build.sh
@@ -23,6 +23,13 @@ make -j$(nproc)
make install
cd ..
+cd json-c
+mkdir build
+cd build
+cmake -DBUILD_SHARED_LIBS=OFF ..
+make install
+cd ../..
+
# build project
cd ndpi
sh autogen.sh