Skip to content

Instantly share code, notes, and snippets.

@timkent
Last active September 23, 2025 23:22
Show Gist options
  • Save timkent/b607fdc59fa86e40e2c7ddf5f23c3b71 to your computer and use it in GitHub Desktop.
Save timkent/b607fdc59fa86e40e2c7ddf5f23c3b71 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -eu
sudo apt-get -y install devscripts dpkg-dev git uthash-dev
git clone -b release-4.6 --single-branch https://gitlab.com/wireshark/wireshark.git
cd wireshark
ln -sn packaging/debian
sudo DEB_BUILD_PROFILES="pkg.wireshark.stratoshark" mk-build-deps -i debian/control
sudo sed -i 's/^prefix=${pcfiledir}\/..\/..$/prefix=${pcfiledir}\/..\/..\/../' \
/usr/lib/x86_64-linux-gnu/pkgconfig/libsinsp.pc
DEB_BUILD_PROFILES="pkg.wireshark.stratoshark" dpkg-buildpackage -us -uc -rfakeroot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment