#! /bin/bash # Rocky9 compatible # libpcap-devel requires dnf config-manager --set-enabled crb (done in rocky9_actions.sh script) # sngrep is a tool for displaying SIP calls message flows from terminal # https://github.com/irontec/sngrep/wiki . /usr/src/k_framework/main.sh VERSION="1.0.1" SCRIPT_NAME="sngrep install" k_start if [ -f /usr/local/bin/sngrep ]; then report "sngrep already installed" 3 else yum -y install ncurses-devel make libpcap-devel pcre-devel openssl-devel git gcc autoconf automake cd /usr/src git clone https://github.com/irontec/sngrep cd sngrep ./bootstrap.sh ./configure --enable-unicode make make install if [ -f /usr/local/bin/sngrep ]; then report "sngrep installed" 0 else report "Failed to install sngrep" 1 EXIT_CODE=1 fi fi k_exit $EXIT_CODE