From: Jason Ish Date: Wed, 15 Jan 2025 18:04:02 +0000 (-0600) Subject: github-ci: add ndpi build to the centos-stream9 build X-Git-Tag: suricata-8.0.0-beta1~181 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=078b7a4251090d0f6de9ac8b2a08d61420cf8572;p=thirdparty%2Fsuricata.git github-ci: add ndpi build to the centos-stream9 build - Download and build nDPI - Enable nDPI during Suricata ./configure - Test that the plugin was built and installed --- diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index f0e359464f..208d89908a 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -592,9 +592,19 @@ jobs: uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 with: name: dist + + - name: Build and install nDPI + run: | + curl -OL https://github.com/ntop/nDPI/archive/refs/tags/4.12.tar.gz + tar xvf 4.12.tar.gz + cd nDPI-4.12 + ./autogen.sh + ./configure + make -j ${{ env.CPUS }} + - run: tar zxvf suricata-*.tar.gz --strip-components=1 - name: ./configure - run: CFLAGS="${DEFAULT_CFLAGS}" ./configure + run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-ndpi --with-ndpi=$(pwd)/nDPI-4.12 - run: make -j ${{ env.CPUS }} - run: make install - run: make install-conf @@ -612,6 +622,8 @@ jobs: with: name: prep path: prep + - name: Check if the nDPI plugin was installed + run: test -e /usr/local/lib/suricata/ndpi.so - run: tar xf prep/suricata-verify.tar.gz - run: python3 ./suricata-verify/run.py -q --debug-failed - run: suricata-update -V