fusionpbx-install.sh/debian/resources/sngrep.sh

26 lines
739 B
Bash
Raw Normal View History

2017-03-06 06:10:25 +01:00
#!/bin/sh
2017-03-06 06:34:36 +01:00
#move to script directory so all relative paths work
cd "$(dirname "$0")"
#includes
. ./config.sh
. ./colors.sh
. ./environment.sh
2017-03-06 06:10:25 +01:00
#add sngrep
2017-03-06 06:30:35 +01:00
if [ ."$cpu_architecture" = ."arm" ]; then
#source install
2017-03-06 06:36:28 +01:00
apt-get install -y --force-yes git autoconf automake gcc make libncurses5-dev libpcap-dev libssl-dev libpcre3-dev
2017-03-06 06:37:15 +01:00
cd /usr/src/sngrep && git clone https://github.com/irontec/sngrep
cd /usr/src/sngrep && ./bootstrap.sh
cd /usr/src/sngrep && ./configure
cd /usr/src/sngrep && make install
2017-03-06 06:30:35 +01:00
else
#package install
echo 'deb http://packages.irontec.com/debian jessie main' > /etc/apt/sources.list.d/sngrep.list
wget http://packages.irontec.com/public.key -q -O - | apt-key add -
apt-get update
apt-get install sngrep
2017-03-06 06:10:25 +01:00
fi