3 # A little shell script to install all the packages necesary to do Wireshark
4 # development. Both the development and runtime packages are installed
5 # although the latter aren't strictly necessary.
7 # Ideally this could automatically pull the packages out of
8 # packaging/rpm/SPECS/wireshark.spec.in but given the variance in package names
9 # between distributions, this seems painful...
11 # Copyright 2013 Jeff Morriss <jeff.morriss.ws [AT] gmail.com>
13 # Wireshark - Network traffic analyzer
14 # By Gerald Combs <gerald@wireshark.org>
15 # Copyright 1998 Gerald Combs
17 # This program is free software; you can redistribute it and/or
18 # modify it under the terms of the GNU General Public License
19 # as published by the Free Software Foundation; either version 2
20 # of the License, or (at your option) any later version.
22 # This program is distributed in the hope that it will be useful,
23 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 # GNU General Public License for more details.
27 # You should have received a copy of the GNU General Public License
28 # along with this program; if not, write to the Free Software
29 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
31 if [ -r /etc/SuSE-release ]
34 GTK2="gtk2-devel libgtk-2_0-0"
35 GTK3="gtk3-devel libgtk-3-0"
36 QT="libqt4-devel gcc-c++"
37 GLIB2="glib2-devel libglib-2_0-0"
38 PCAP="libpcap-devel libpcap1"
39 ZLIB="zlib-devel libz1"
40 SNAPPY="snappy-devel libsnappy1"
41 # The runtime package name changes with the version. Just pull it
42 # in through the -devel package.
44 CARES="libcares-devel libcares2"
46 # SUSE doesn't split the pod2* commands into a separate package like RH
48 GNUTLS="libgnutls-devel"
49 GETTEXT="gettext-tools"
50 QT5="libqt5-linguist-devel libqt5-qtsvg-devel libqt5-qtmultimedia-devel
51 libQt5PrintSupport-devel"
52 CAP_PROGS="libcap-progs"
54 if [ ! -r /etc/redhat-release ]
56 echo "* * Unknown distro! Assuming Redhat-like. * *"
60 if type -p dnf > /dev/null
63 POD2HTML="perl-Pod-Html"
67 GTK2="gtk2-devel gtk2"
68 GTK3="gtk3-devel gtk3"
69 QT="qt-devel gcc-c++ qt5-qtbase-devel qt5-qtmultimedia-devel"
70 GLIB2="glib2-devel glib2"
71 PCAP="libpcap-devel libpcap"
72 ZLIB="zlib-devel zlib"
73 SNAPPY="snappy-devel snappy"
74 LZ4="lz4 lz4-devel" # May need to enable EPEL
75 CARES="c-ares-devel c-ares"
77 PERLPODS="perl-podlators"
79 GETTEXT="gettext-devel"
80 QT5="qt5-linguist qt5-qtsvg-devel"
82 MAXMINDDB="libmaxminddb-devel"
85 PKGS="autoconf automake libtool gcc flex bison python perl $GLIB2
86 $PCAP $ZLIB lua-devel lua $CARES $GTK3 $GTK2 desktop-file-utils $QT fop
87 asciidoc git git-review $PERLPODS"
89 PKGS_OPT="libnl3-devel libnghttp2-devel $NGHTTP2 $SNAPPY $LZ4 libcap $CAP_PROGS
90 libcap-devel $MAXMINDDB libgcrypt-devel $GNUTLS $GETTEXT libssh-devel
91 krb5-devel perl-Parse-Yapp sbc-devel libsmi-devel $POD2HTML $QT5 asciidoctor"
93 echo "Run this command (as root):"
95 echo $INSTALL_CMD install $PKGS
97 echo "To install optional packages:"
99 echo $INSTALL_CMD install $PKGS_OPT
101 echo "This tool has been obsoleted by tools/rpm-setup.sh"