2013-02-04 00:29:27 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Setup development environment on Debian and derivatives such as Ubuntu
|
|
|
|
#
|
2013-09-13 21:40:19 +00:00
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
|
|
# Copyright 1998 Gerald Combs
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
2013-02-04 00:29:27 +00:00
|
|
|
# We drag in tools that might not be needed by all users; it's easier
|
|
|
|
# that way.
|
|
|
|
#
|
2016-01-29 09:13:57 +00:00
|
|
|
|
2016-06-17 17:30:57 +00:00
|
|
|
for op in $@
|
|
|
|
do
|
|
|
|
if [ "$op" = "--install-optional" ]
|
|
|
|
then
|
|
|
|
ADDITIONAL=1
|
|
|
|
else
|
|
|
|
OPTIONS="$OPTIONS $op"
|
|
|
|
fi
|
|
|
|
done
|
2016-01-29 09:13:57 +00:00
|
|
|
|
|
|
|
apt-get install libgtk2.0-dev libpcap-dev bison flex make automake \
|
2016-06-17 17:30:57 +00:00
|
|
|
libtool libtool-bin python perl $OPTIONS
|
2013-02-04 00:29:27 +00:00
|
|
|
|
|
|
|
#
|
2016-01-29 09:13:57 +00:00
|
|
|
# Now arrange for optional support libraries
|
2013-02-04 00:29:27 +00:00
|
|
|
#
|
2016-06-17 17:30:57 +00:00
|
|
|
if [ -z $OPTIONS ]
|
2016-01-29 09:13:57 +00:00
|
|
|
then
|
|
|
|
echo "\n*** Optional packages not installed. Rerun with --install-optional to have them.\n"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2016-06-17 17:30:57 +00:00
|
|
|
if [ $ADDITIONAL ]
|
|
|
|
then
|
|
|
|
apt-get install libnl-3-dev qttools5-dev qttools5-dev-tools libgtk-3-dev \
|
|
|
|
libc-ares-dev libssh-dev libkrb5-dev libqt5svg5-dev lynx libsmi2-dev \
|
|
|
|
portaudio19-dev asciidoc libgcrypt-dev libsbc-dev libgeoip-dev \
|
|
|
|
libgnutls-dev qtmultimedia5-dev liblua5.2-dev libnl-cli-3-dev \
|
|
|
|
libparse-yapp-perl qt5-default $OPTIONS
|
|
|
|
fi
|