Skip to content

Commit

Permalink
updated build script and 4.4.0 binaries for linux and mac (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
noeltimothy authored Sep 9, 2024
1 parent 99de266 commit d8e93f1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
Binary file added wireshark/binaries/linux/4.4.0/ja4.so.linux
Binary file not shown.
Binary file added wireshark/binaries/macos/4.4.0/arm/ja4.so.macos
Binary file not shown.
22 changes: 16 additions & 6 deletions wireshark/build-scripts/linux_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,26 @@ if [ -x $VER ]
then echo "Enter a wireshark version (supported versions) => 4.0.3, 4.0.6, 4.0.10, 4.2.0"; exit
fi

echo "fetching wireshark sources with tag => tags/wireshark-$VER"
git clone -o upstream --branch wireshark-$VER https://gitlab.com/wireshark/wireshark.git --depth=5000
mv wireshark wireshark-$VER
if [ ! -d wireshark-$VER ]
then
echo "fetching wireshark sources with tag => tags/wireshark-$VER"
git clone -o upstream --branch wireshark-$VER https://gitlab.com/wireshark/wireshark.git --depth=5000
mv wireshark wireshark-$VER
fi

cd wireshark-$VER
git checkout tags/wireshark-$VER

cp -r ../../linux ./plugins/epan/ja4
cp -r ../../source ./plugins/epan/ja4
mv CMakeListsCustom.txt.example CMakeListsCustom.txt
sed -i "/plugins\/epan\/foo/c\plugins\/epan\/ja4" CMakeListsCustom.txt
mkdir build && cd build && cmake -G Ninja -DBUILD_wireshark=off ../
./tools/debian-setup.sh

if [ ! -d build ]
then
mkdir build
fi

cd build && cmake -G Ninja -DBUILD_wireshark=off ../
echo 'building using ninja...'
ninja -j8

Expand Down

0 comments on commit d8e93f1

Please sign in to comment.