summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-09-17 03:03:43 +0100
committerSam James <sam@gentoo.org>2021-09-17 03:03:43 +0100
commitd76e8f371a57dc16eb2365a180da827b450835ed (patch)
treea37f63db8316426dac3a47cb5423986821ec5ab6 /net-misc/sipp/sipp-3.6.1-r1.ebuild
parentsys-auth/seatd: Security cleanup, 0.6.0 (diff)
downloadgentoo-d76e8f371a57dc16eb2365a180da827b450835ed.tar.gz
gentoo-d76e8f371a57dc16eb2365a180da827b450835ed.tar.bz2
gentoo-d76e8f371a57dc16eb2365a180da827b450835ed.zip
net-misc/sipp: fix installation of binary
Closes: https://bugs.gentoo.org/813420 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/sipp/sipp-3.6.1-r1.ebuild')
-rw-r--r--net-misc/sipp/sipp-3.6.1-r1.ebuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/net-misc/sipp/sipp-3.6.1-r1.ebuild b/net-misc/sipp/sipp-3.6.1-r1.ebuild
new file mode 100644
index 000000000000..d46f12c26028
--- /dev/null
+++ b/net-misc/sipp/sipp-3.6.1-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="A free Open Source test tool / traffic generator for the SIP protocol"
+HOMEPAGE="http://sipp.sourceforge.net/ https://github.com/SIPp/sipp/releases"
+SRC_URI="https://github.com/SIPp/sipp/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2 ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gsl +pcap sctp +ssl"
+
+DEPEND="sys-libs/ncurses:=
+ gsl? ( sci-libs/gsl:= )
+ pcap? (
+ net-libs/libpcap
+ net-libs/libnet:1.1
+ )
+ sctp? ( net-misc/lksctp-tools )
+ ssl? ( dev-libs/openssl:= )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+
+ # version.h is in ${S}, and needs to be in ${S}/include for cmake to work.
+ ln -s ../version.h "${S}/include/" || die "Error creating version.h symlink"
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DUSE_GSL=$(usex gsl 1 0)
+ -DUSE_PCAP=$(usex pcap 1 0)
+ -DUSE_SCTP=$(usex sctp 1 0)
+ -DUSE_SSL=$(usex ssl 1 0)
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ insinto /usr/share/${PN}
+ use pcap && doins pcap/*.pcap
+ dodoc CHANGES.md README.md
+}