2017-03-06 06:10:25 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
#add sngrep
|
|
|
|
|
if [ ."$cpu_architecture" != ."arm" ]; then
|
2017-03-06 06:27:56 +01:00
|
|
|
#package
|
2017-03-06 06:10:25 +01:00
|
|
|
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:27:56 +01:00
|
|
|
else
|
|
|
|
|
#source
|
|
|
|
|
apt-get install git autoconf automake gcc make libncurses5-dev libpcap-dev libssl-dev libpcre3-dev
|
|
|
|
|
cd /usr/src/sngrep
|
|
|
|
|
git clone https://github.com/irontec/sngrep
|
|
|
|
|
./bootstrap.sh
|
|
|
|
|
./configure
|
|
|
|
|
make install
|
2017-03-06 06:10:25 +01:00
|
|
|
fi
|