summaryrefslogtreecommitdiff
path: root/sipp
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-09 14:14:52 +0200
committerErich Eckner <git@eckner.net>2019-07-09 14:14:52 +0200
commit32c0530bae440aab4d1c911a1b7510f559d4f278 (patch)
treea73f201c2053ca27f903be7f12e1ed6fbd537269 /sipp
parent969d98d0bfc722daa4012ef1d0502a330d755a0c (diff)
downloadarchlinuxewe-32c0530bae440aab4d1c911a1b7510f559d4f278.tar.xz
sipp new
Diffstat (limited to 'sipp')
-rw-r--r--sipp/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/sipp/PKGBUILD b/sipp/PKGBUILD
new file mode 100644
index 000000000..83767e9a7
--- /dev/null
+++ b/sipp/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Xavier Devlamynck <magicrhesus@ouranos.be>
+# Contributor: Aleshus <aleshusi@gmail.com>
+
+pkgname=sipp
+pkgver=3.5.2
+pkgrel=1
+pkgdesc="A free Open Source test tool / traffic generator for the SIP protocol."
+arch=('i686' 'pentium4' 'x86_64')
+url="http://sipp.sourceforge.net/"
+license=('GPL')
+depends=('openssl' 'libpcap' 'lksctp-tools')
+makedepends=('gcc8')
+source=(https://github.com/SIPp/${pkgname}/releases/download/v${pkgver}/sipp-${pkgver}.tar.gz)
+sha256sums=('875fc2dc2e46064aa8af576a26166b45e8a0ae22ec2ae0481baf197931c59609')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ sed -i 's/SSL_library_init/SSL_CTX_new/' configure.ac
+ sed -i 's/CRYPTO_num_locks/CRYPTO_free/' configure.ac
+ sed -i 's/TLSv1_method/TLS_method/' src/socket.cpp
+ CC=/usr/bin/gcc-8 \
+ CXX=/usr/bin/g++-8 \
+ ./build.sh --with-pcap --with-sctp --with-openssl
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ install -D -m0755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+}