]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-ci: add ndpi build to the centos-stream9 build
authorJason Ish <jason.ish@oisf.net>
Wed, 15 Jan 2025 18:04:02 +0000 (12:04 -0600)
committerVictor Julien <victor@inliniac.net>
Sat, 29 Mar 2025 21:14:00 +0000 (22:14 +0100)
- Download and build nDPI
- Enable nDPI during Suricata ./configure
- Test that the plugin was built and installed

.github/workflows/builds.yml

index f0e359464f9381c9c69d23646c896795f9bd583d..208d89908a5bcbad7ce6707bd5a73aa9d82d7c70 100644 (file)
@@ -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