network/sipp: Added (SIP test tool)

Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
Kent Fritz 2011-11-15 18:00:37 -06:00 committed by Robby Workman
parent 3fb34c8353
commit 36eec7ab6d
4 changed files with 110 additions and 0 deletions

11
network/sipp/README Normal file
View file

@ -0,0 +1,11 @@
SIPp (SIP test tool)
SIPp is a test tool / traffic generator for the SIP protocol. It
includes a few basic built-in scenarios (UAC and UAS) and can also
read custom XML scenario files describing arbitrary call flows.
It supports UDP, TCP, TLS, SIP authentication, RTP replay, and many
more features. For more information, see the documentation from:
sipp -h
and the SIPp homepage:
http://sipp.sourceforge.net/

View file

@ -0,0 +1,70 @@
#!/bin/sh
# Slackware build script for SIPp
# Written by Kent Fritz fritz.kent@gmail.com
PRGNAM=sipp
VERSION=${VERSION:-3.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
else
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM.svn
tar xvf $CWD/$PRGNAM.svn.tar.gz
cd $PRGNAM.svn
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
make pcapplay_ossl
mkdir -p $PKG/usr/bin
cp -a sipp $PKG/usr/bin
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/share/$PRGNAM/pcap
cp -a pcap/* $PKG/usr/share/$PRGNAM/pcap
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
README.txt LICENSE.txt MEDIA.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

10
network/sipp/sipp.info Normal file
View file

@ -0,0 +1,10 @@
PRGNAM="sipp"
VERSION="3.2"
HOMEPAGE="http://sipp.sourceforge.net"
DOWNLOAD="http://sourceforge.net/projects/sipp/files/sipp/3.2/sipp.svn.tar.gz"
MD5SUM="2a3a60cb4317dcf8eb5482f6a955e4d0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Kent Fritz"
EMAIL="fritz.kent@gmail.com"
APPROVED="Erik Hanson"

19
network/sipp/slack-desc Normal file
View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
sipp: SIPp (SIP test tool)
sipp:
sipp: SIPp is a test tool / traffic generator for the SIP protocol. It
sipp: includes a few basic built-in scenarios (UAC and UAS) and can also
sipp: read custom XML scenario files describing arbitrary call flows.
sipp:
sipp: It supports UDP, TCP, TLS, SIP authentication, RTP replay, and many
sipp: more features. For more information, see the documentation from:
sipp: sipp -h
sipp: and the SIPp homepage:
sipp: http://sipp.sourceforge.net/