summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Bangert <bangert@gentoo.org>2010-07-11 15:42:25 +0000
committerThilo Bangert <bangert@gentoo.org>2010-07-11 15:42:25 +0000
commitb66e1c94f9b8c550047f51a9687ed2d1de57e9a7 (patch)
treeb2a2eb61a59397e18dfe8b4449956539b9036ff6 /net-voip/sipp/sipp-3.1.ebuild
parentenable AKA auth by default (diff)
downloadbangert-b66e1c94f9b8c550047f51a9687ed2d1de57e9a7.tar.gz
bangert-b66e1c94f9b8c550047f51a9687ed2d1de57e9a7.tar.bz2
bangert-b66e1c94f9b8c550047f51a9687ed2d1de57e9a7.zip
add sipp from voyager overlay
svn path=/ebuilds/; revision=118
Diffstat (limited to 'net-voip/sipp/sipp-3.1.ebuild')
-rw-r--r--net-voip/sipp/sipp-3.1.ebuild81
1 files changed, 81 insertions, 0 deletions
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
+}