summaryrefslogtreecommitdiffstats
path: root/network/wireshark
diff options
context:
space:
mode:
Diffstat (limited to 'network/wireshark')
-rw-r--r--network/wireshark/README62
-rw-r--r--network/wireshark/wireshark.SlackBuild38
-rw-r--r--network/wireshark/wireshark.info8
3 files changed, 62 insertions, 46 deletions
diff --git a/network/wireshark/README b/network/wireshark/README
index 43e6e37efc..7b9f4a600b 100644
--- a/network/wireshark/README
+++ b/network/wireshark/README
@@ -1,29 +1,33 @@
-Wireshark (aka Ethereal) is a free packet sniffer computer application. It
-is used for network troubleshooting, analysis, software and communications
-protocol development, and education. In June 2006, the project was renamed
-from Ethereal due to trademark issues.
-
-The functionality Wireshark provides is very similar to tcpdump, but it has
-a graphical front-end and many more information sorting and filtering
-options. It allows the user to see all traffic being passed over the network
-(usually an Ethernet network but support is being added for others) by
-putting the network interface into promiscuous mode.
-
-Wireshark uses the cross-platform Qt5 widget toolkit. Its powerful features
-make it the tool of choice for network troubleshooting, protocol development,
-and education worldwide.
-
-If you use a filesystem that supports posix capabilities, an easy way to
-start wireshark as a normal user, while still providing it with all of the
-access permissions it requires, is by issuing the following command:
- $ setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap
-
-One may also test if things are ok running this command as a normal user:
+Wireshark (aka Ethereal) is a free packet sniffer computer
+application. It is used for network troubleshooting, analysis,
+software and communications protocol development, and education.
+In June 2006, the project was renamed from Ethereal due to trademark
+issues.
+
+The functionality Wireshark provides is very similar to tcpdump, but
+it has a graphical front-end and many more information sorting and
+filtering options. It allows the user to see all traffic being passed
+over the network (usually an Ethernet network but support is being
+added for others) by putting the network interface into promiscuous
+mode.
+
+Wireshark uses the cross-platform Qt5 widget toolkit. Its powerful
+features make it the tool of choice for network troubleshooting,
+protocol development, and education worldwide.
+
+If you use a filesystem that supports posix capabilities, an easy way
+to start wireshark as a normal user, while still providing it with
+all of the access permissions it requires, is by issuing the following
+command as root:
+ # setcap cap_net_raw,cap_net_admin=ep /usr/bin/dumpcap
+
+One may also test if things are ok running this command as a normal
+user:
$ dumpcap -L
-You may also create a special group (wireshark) and include users allowed
-to monitor networks in that group:
+You may also create a special group (wireshark) and include users
+allowed to monitor networks in that group:
# groupadd wireshark
# usermod -a -G wireshark <user>
@@ -32,8 +36,8 @@ to monitor networks in that group:
# setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap
$ newgrp wireshark
-Other users not in the group wireshark can still open files with previously
-saved monitorings and inspect them.
+Other users not in the group wireshark can still open files with
+previously saved monitorings and inspect them.
You will need to remove any already-installed wireshark package before
building this one or else the new one will not work (the new build will
@@ -41,15 +45,13 @@ link libraries present in the old package, which will then be removed
when upgrading).
Optional dependencies:
-- c-ares
-- krb5
-- nghttp2
- spandsp
- snappy
-- lz4
- libsmi
+- libminizip
+- libilbc
-NOTE: Wireshark 3.0 no longer support legacy GTK+ UI.
+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,
diff --git a/network/wireshark/wireshark.SlackBuild b/network/wireshark/wireshark.SlackBuild
index 5624a7fea8..dee353ae35 100644
--- a/network/wireshark/wireshark.SlackBuild
+++ b/network/wireshark/wireshark.SlackBuild
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for wireshark
# Copyright 2008-2014 Michiel van Wessem, Leicester, United Kingdom
-# Copyright 2017-2019 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2017-2024 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# Originally written by Jick Nan (jick.nan@gmail.com)
# All rights reserved.
#
@@ -27,12 +27,15 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Modified by Mario Preksavec <mario@slackware.hr>
-# Modified by B. Watson <yalhcru@gmail.com> to add lua52 support.
+# Modified by B. Watson <urchlay@slackware.uk> to add lua52 support.
+
+cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=wireshark
-VERSION=${VERSION:-3.0.6}
+VERSION=${VERSION:-4.2.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -42,7 +45,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -96,7 +103,10 @@ cd build
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_MANDIR=/usr/man \
+ -DCMAKE_INSTALL_DOCDIR=/usr/doc/$PRGNAM-$VERSION \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DUSE_qt6=OFF \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
@@ -105,25 +115,29 @@ cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mv $PKG/usr/share/man $PKG/usr/
-
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/include/$PRGNAM/{epan/{crypt,dfilter,dissectors,ftypes,wmem},wiretap,wsutil}
-install -m644 ws_diag_control.h ws_symbol_export.h $PKG/usr/include/$PRGNAM
- for d in epan epan/crypt epan/dfilter epan/dissectors epan/ftypes epan/wmem; do
+install -m644 include/ws_diag_control.h include/ws_symbol_export.h $PKG/usr/include/$PRGNAM
+ for d in epan epan/crypt epan/dfilter epan/dissectors epan/ftypes; do
install -m644 $d/*.h $PKG/usr/include/$PRGNAM/$d
done
mkdir -p $PKG/usr/share/applications
-cp $PRGNAM.desktop $PKG/usr/share/applications
+cp resources/freedesktop/org.wireshark.Wireshark.desktop $PKG/usr/share/applications
+
+mkdir -p $PKG/usr/share/mime/packages
+cp resources/freedesktop/org.wireshark.Wireshark-mime.xml $PKG/usr/share/mime/packages
+
+mkdir -p $PKG/usr/share/metainfo
+cp resources/freedesktop/org.wireshark.Wireshark.metainfo.xml $PKG/usr/share/metainfo
# Remove any .la files
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS* COPYING ChangeLog INSTALL NEWS README* doc/READM* \
+cp -a AUTHORS* COPYING ChangeLog NEWS README* doc/READM* \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -132,4 +146,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/network/wireshark/wireshark.info b/network/wireshark/wireshark.info
index f130ee5d07..c3f620160f 100644
--- a/network/wireshark/wireshark.info
+++ b/network/wireshark/wireshark.info
@@ -1,10 +1,10 @@
PRGNAM="wireshark"
-VERSION="3.0.6"
+VERSION="4.2.4"
HOMEPAGE="https://www.wireshark.org/"
-DOWNLOAD="https://1.as.dl.wireshark.org/src/wireshark-3.0.6.tar.xz"
-MD5SUM="c6f8d12a3efe21cc7885f7cb0c4bd938"
+DOWNLOAD="https://2.na.dl.wireshark.org/src/wireshark-4.2.4.tar.xz"
+MD5SUM="cebb012489563a8eb9c3829cdcb0579c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="qt5 lua python3"
+REQUIRES="lua"
MAINTAINER="Willy Sudiarto Raharjo"
EMAIL="willysr@slackbuilds.org"