From 971885a6efb68894afac5a0e0146086e72bffbb9 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 5 Mar 2017 22:30:35 -0700 Subject: [PATCH] Update sngrep.sh --- debian/resources/sngrep.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/debian/resources/sngrep.sh b/debian/resources/sngrep.sh index 3f468ea..7158fa2 100644 --- a/debian/resources/sngrep.sh +++ b/debian/resources/sngrep.sh @@ -1,18 +1,18 @@ #!/bin/sh #add sngrep -if [ ."$cpu_architecture" != ."arm" ]; then - #package - 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 -else - #source +if [ ."$cpu_architecture" = ."arm" ]; then + #source install 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 +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 fi