aboutsummaryrefslogtreecommitdiffstats
path: root/main/sipp/APKBUILD
blob: ca9f2fb2c4118722c0eacdbc25a9e9b1c934622e (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
31
32
33
34
35
36
37
38
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Contributor: Robert Boisvert <rdboisvert@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=sipp
pkgver=3.5.2
pkgrel=0
pkgdesc="A test tool / traffic generator for the SIP protocol"
url="https://github.com/SIPp/sipp"
arch="all"
license="GPL-2.0-or-later"
depends=""
depends_dev=""
makedepends="linux-headers autoconf automake openssl-dev libpcap-dev ncurses-dev lksctp-tools-dev"
install=""
subpackages=""
source="https://github.com/SIPp/sipp/releases/download/v$pkgver/sipp-$pkgver.tar.gz
	"

builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	CFLAGS="$CFLAGS -D_GNU_SOURCE" \
	./configure --prefix=/usr \
		--with-openssl \
		--with-pcap \
		--with-sctp
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	mkdir -p "$pkgdir"/usr/share/"$pkgname"
	install -m444 -D pcap/* "$pkgdir"/usr/share/"$pkgname"/
}

sha512sums="8285d29afa4c9d6a2396e2352d1442e64c649fcd9cc524e221e22246da49c21cab73128ca6b806aa76bd78598f8f5cbc4a23ee58c5d7ab09035655306adfa725  sipp-3.5.2.tar.gz"