diff options
Diffstat (limited to 'sipp/PKGBUILD')
-rw-r--r-- | sipp/PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sipp/PKGBUILD b/sipp/PKGBUILD new file mode 100644 index 00000000..83767e9a --- /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}" +} |