diff options
author | Thilo Bangert <bangert@gentoo.org> | 2010-07-11 15:42:25 +0000 |
---|---|---|
committer | Thilo Bangert <bangert@gentoo.org> | 2010-07-11 15:42:25 +0000 |
commit | b66e1c94f9b8c550047f51a9687ed2d1de57e9a7 (patch) | |
tree | b2a2eb61a59397e18dfe8b4449956539b9036ff6 | |
parent | enable AKA auth by default (diff) | |
download | bangert-b66e1c94f9b8c550047f51a9687ed2d1de57e9a7.tar.gz bangert-b66e1c94f9b8c550047f51a9687ed2d1de57e9a7.tar.bz2 bangert-b66e1c94f9b8c550047f51a9687ed2d1de57e9a7.zip |
add sipp from voyager overlay
svn path=/ebuilds/; revision=118
-rw-r--r-- | net-voip/sipp/Manifest | 4 | ||||
-rw-r--r-- | net-voip/sipp/files/sipp-3.1-gcc43.patch | 20 | ||||
-rw-r--r-- | net-voip/sipp/metadata.xml | 14 | ||||
-rw-r--r-- | net-voip/sipp/sipp-3.1.ebuild | 81 |
4 files changed, 119 insertions, 0 deletions
diff --git a/net-voip/sipp/Manifest b/net-voip/sipp/Manifest new file mode 100644 index 0000000..eff3f1a --- /dev/null +++ b/net-voip/sipp/Manifest @@ -0,0 +1,4 @@ +AUX sipp-3.1-gcc43.patch 490 RMD160 f57f7524ccdd90a5367bf5cca13665a1d4072379 SHA1 c63915eec4a0c0789585f84c35c2053ceb3c6696 SHA256 13aea89d251cfecec37a31b3fe773029059689a588e56a422656232e5ff84f1f +DIST sipp.3.1.src.tar.gz 9428792 RMD160 bd89c94b3a006fdc5717d43765776901976dbf71 SHA1 781e50a74844abbdff1b90781fa24d062f0c1352 SHA256 123391c7c5545fc61594cd62334986540604f5a3a3d405faef5e02dab5200399 +EBUILD sipp-3.1.ebuild 1531 RMD160 7ded3ac0981436c7ef7a0f36544abf1c063e4533 SHA1 c5c2d69c26f0356594600205e127e74362432a89 SHA256 5d8e8a5b065657c769b7aa6dbc97b2a519548843fd5330991148cb9a13feacc7 +MISC metadata.xml 944 RMD160 66f629c15c3a41b440e6d484ec76698e80e8ae3b SHA1 f300b8ac471443987016123a16dfff410785fca6 SHA256 fdd22b71c035c698e32c230d47caf5e3d058c22a705f990933bb61d0218ff26a diff --git a/net-voip/sipp/files/sipp-3.1-gcc43.patch b/net-voip/sipp/files/sipp-3.1-gcc43.patch new file mode 100644 index 0000000..0ec0bbc --- /dev/null +++ b/net-voip/sipp/files/sipp-3.1-gcc43.patch @@ -0,0 +1,20 @@ +--- call.cpp~ 2007-11-06 13:18:07.000000000 +0300 ++++ call.cpp 2008-02-21 13:22:54.000000000 +0300 +@@ -41,6 +41,7 @@ + #include <iostream> + #include <sys/types.h> + #include <sys/wait.h> ++#include <limits.h> + + #ifdef PCAPPLAY + #include "send_packets.h" +--- scenario.cpp~ 2007-07-26 14:16:49.000000000 +0400 ++++ scenario.cpp 2008-02-21 13:22:19.000000000 +0300 +@@ -27,6 +27,7 @@ + */ + + #include <stdlib.h> ++#include <limits.h> + #include "sipp.hpp" + #ifdef HAVE_GSL + #include <gsl/gsl_rng.h> diff --git a/net-voip/sipp/metadata.xml b/net-voip/sipp/metadata.xml new file mode 100644 index 0000000..d8a8b4d --- /dev/null +++ b/net-voip/sipp/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>bangert@gentoo.org</email> +</maintainer> +<use> +<flag name="pcap">Enable support for <pkg>net-libs/libpcap</pkg></flag> +</use> +<longdescription lang="en"> +SIPp is a free Open Source test tool / traffic generator for the SIP protocol. It includes a few basic SipStone user agent scenarios (UAC and UAS) and establishes and releases multiple calls with the INVITE and BYE methods. It can also reads custom XML scenario files describing from very simple to complex call flows. It features the dynamic display of statistics about running tests (call rate, round trip delay, and message statistics), periodic CSV statistics dumps, TCP and UDP over multiple sockets or multiplexed with retransmission management and dynamically adjustable call rates.</longdescription> +</pkgmetadata> + diff --git a/net-voip/sipp/sipp-3.1.ebuild b/net-voip/sipp/sipp-3.1.ebuild new file mode 100644 index 0000000..1831702 --- /dev/null +++ b/net-voip/sipp/sipp-3.1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="3" + +inherit toolchain-funcs eutils + +DESCRIPTION="A free Open Source test tool and traffic generator for the SIP protocol" +HOMEPAGE="http://sipp.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P/-/.}.src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +IUSE="debug gsl pcap ssl" + +DEPEND="sys-libs/ncurses + gsl? ( sci-libs/gsl ) + pcap? ( net-libs/libpcap + net-libs/libnet ) + ssl? ( dev-libs/openssl )" + +S="${WORKDIR}/${PN}.svn" + +src_prepare() { + + epatch "${FILESDIR}"/${P}-gcc43.patch +} + +src_configure() { + local incdir="-I." + local extracflags="${CFLAGS}" + local extracppflags="${CXXFLAGS}" + local extralibs="" + local debugflags="" + + if use ssl; then + incdir+=" -I/usr/include/openssl" + fi + + if use gsl; then + extracflags+=" -DHAVE_GSL" + extracppflags+=" -DHAVE_GSL" + extralibs+=" -lgsl -lgslcblas" + fi + + if use debug; then + debugflags+=" -g -pg" + fi + + cat << EOLOCALMK >> local.mk +CC_linux=$(tc-getCC) +CPP_linux=$(tc-getCXX) +CCLINK_linux=$(tc-getCC) +INCDIR_linux=${incdir} +EXTRACFLAGS=${extracflags} +EXTRACPPFLAGS=${extracppflags} +EXTRALIBS=${extralibs} +DEBUG_FLAGS=${debugflags} +EOLOCALMK +} + +src_compile() { + local makeopt + + use pcap && makeopt="pcapplay" + use ssl && makeopt="${makeopt:+${makeopt}_}ossl" + + emake ${makeopt} || die "make failed" +} + +src_install() { + dobin sipp + dodoc *.txt sipp.dtd + if use pcap; then + insinto /usr/share/${PN}/pcap + doins "${S}"/pcap/*pcap + fi +} |