forked from osmocom/wireshark
debian-setup: add additional params to apt-get.
Can be used to pass params like -qq and -y for automated installations, like in travis-ci. Change-Id: Iddf18829f09ce6b16c1c71264adab38d0a893fe6 Reviewed-on: https://code.wireshark.org/review/15999 Reviewed-by: Balint Reczey <balint@balintreczey.hu> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Dario Lombardo <lomato@gmail.com>
This commit is contained in:
parent
e6481a9e88
commit
9a5cdac6ef
|
@ -19,36 +19,37 @@
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
|
||||||
# Install the packages required for Wireshark development.
|
|
||||||
# (This includes GUI packages; making that optional, with a command-line
|
|
||||||
# flag, is left as an exercise to the reader.)
|
|
||||||
#
|
|
||||||
# We drag in tools that might not be needed by all users; it's easier
|
# We drag in tools that might not be needed by all users; it's easier
|
||||||
# that way.
|
# that way.
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ ! -z $1 ] && [ "$1" != "--install-optional" ]
|
for op in $@
|
||||||
then
|
do
|
||||||
echo "\n*** Invalid parameter: $1\n"
|
if [ "$op" = "--install-optional" ]
|
||||||
exit 1
|
then
|
||||||
fi
|
ADDITIONAL=1
|
||||||
|
else
|
||||||
|
OPTIONS="$OPTIONS $op"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
apt-get install libgtk2.0-dev libpcap-dev bison flex make automake \
|
apt-get install libgtk2.0-dev libpcap-dev bison flex make automake \
|
||||||
libtool libtool-bin python perl
|
libtool libtool-bin python perl $OPTIONS
|
||||||
|
|
||||||
#
|
#
|
||||||
# Now arrange for optional support libraries
|
# Now arrange for optional support libraries
|
||||||
#
|
#
|
||||||
if [ -z $1 ]
|
if [ -z $OPTIONS ]
|
||||||
then
|
then
|
||||||
echo "\n*** Optional packages not installed. Rerun with --install-optional to have them.\n"
|
echo "\n*** Optional packages not installed. Rerun with --install-optional to have them.\n"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
apt-get install libnl-3-dev qttools5-dev qttools5-dev-tools libgtk-3-dev \
|
if [ $ADDITIONAL ]
|
||||||
libc-ares-dev libssh-dev libkrb5-dev libqt5svg5-dev lynx libsmi2-dev \
|
then
|
||||||
portaudio19-dev asciidoc libgcrypt-dev libsbc-dev libgeoip-dev \
|
apt-get install libnl-3-dev qttools5-dev qttools5-dev-tools libgtk-3-dev \
|
||||||
libgnutls-dev qtmultimedia5-dev liblua5.2-dev libnl-cli-3-dev \
|
libc-ares-dev libssh-dev libkrb5-dev libqt5svg5-dev lynx libsmi2-dev \
|
||||||
libparse-yapp-perl qt5-default
|
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
|
Loading…
Reference in New Issue