network/wireshark: Updated for version 4.4.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2024-08-29 10:22:11 +07:00
parent a4c51a0405
commit e71aa16999
3 changed files with 6 additions and 32 deletions

View file

@ -50,12 +50,3 @@ Optional dependencies:
- libsmi
- libminizip
- libilbc
NOTE: Wireshark 3.0 no longer supports legacy GTK+ UI.
NOTE: Although lua is listed as a requirement, it's possible to build
using lua52. This may be needed for some third-party Lua plugins (but,
it may break other third-party Lua plugins; your mileage may vary). The
default is to build with lua52 if it's installed, or lua otherwise. If
you have both lua versions installed, you can build with LUA52=no in
the environment to build with the older lua.

View file

@ -32,7 +32,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=wireshark
VERSION=${VERSION:-4.2.6}
VERSION=${VERSION:-4.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -80,23 +80,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# We have 3 lua versions on SBo: lua is v5.1, lua52 is 5.2, lua53 is 5.3.
# Wireshark only supports 5.1 and 5.2, not 5.3. The lua version doesn't
# affect core wireshark, only 3rd-party plugins written in lua. Most
# plugins should work with either version, but at least one (2ping.lua)
# fails with 5.1. There are also probably some older plugins written
# for 5.1 that would fail with 5.2. So we support both versions here.
# There are 2 possible settings for LUA52:
# - yes (default): use lua52 if it's installed, fall back to lua otherwise.
# - no: don't use lua52; always use lua.
if [ "${LUA52:-yes}" = "yes" -a -x /usr/bin/lua5.2 ]; then
export LUA_CFLAGS="$( pkg-config lua5.2 --cflags )"
export LUA_LIBS="$( pkg-config lua5.2 --libs )"
echo "=== Building with lua52"
else
echo "=== Building with lua (v5.1)"
fi
mkdir -p build
cd build
cmake \
@ -137,7 +120,7 @@ cp resources/freedesktop/org.wireshark.Wireshark.metainfo.xml $PKG/usr/share/met
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS* COPYING ChangeLog NEWS README* doc/READM* \
cp -a AUTHORS* COPYING ChangeLog README* doc/READM* \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,10 +1,10 @@
PRGNAM="wireshark"
VERSION="4.2.6"
VERSION="4.4.0"
HOMEPAGE="https://www.wireshark.org/"
DOWNLOAD="https://2.na.dl.wireshark.org/src/wireshark-4.2.6.tar.xz"
MD5SUM="e118da25ca399111a4e5d947385c7c79"
DOWNLOAD="https://2.na.dl.wireshark.org/src/wireshark-4.4.0.tar.xz"
MD5SUM="50a9ae3a9b90f92d6f352531fe68fbd2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="lua"
REQUIRES="lua53"
MAINTAINER="Willy Sudiarto Raharjo"
EMAIL="willysr@slackbuilds.org"