summaryrefslogtreecommitdiff
path: root/sipp/PKGBUILD
blob: 83767e9a735c10d35911f6a6b3088e4e8bad5f89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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}"
}