fastnetmon-ng/buildpls

12 lines
574 B
Bash
Executable File

#!/bin/bash
# get and build nDPI and deps before building fastnetmon
export MAKEFLAGS="$MAKEFLAGS -j$(nproc)"
export moarflags="-Wno-reorder -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare -Wno-unused-but-set-variable -Wno-format-truncation -Wno-implicit-fallthrough -Wno-type-limits -Wno-class-memaccess" # since there's just so many warnings (I know, they should be fixed)
cd src
git apply patches/cmake-libndpi-nolibicu-cpp17-includes-protoc-grpc.patch
cmake -DCMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS -Wall -Werror $moarflags -Wextra"
make clean fastnetmon all