aboutsummaryrefslogtreecommitdiffstats
path: root/community/sngrep/APKBUILD
blob: ba1ae008f472dbcf882b9345b27b87571d4dae99 (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
39
40
41
42
43
44
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=sngrep
pkgver=1.3.0
pkgrel=0
pkgdesc="A tool for displaying SIP call message flows from a terminal"
url="https://github.com/irontec/sngrep"
arch="all"
license="GPL"
depends="sed"
depends_dev=""
makedepends="$depends_dev autoconf automake ncurses-dev libpcap-dev pcre-dev openssl-dev"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.zip::https://github.com/irontec/$pkgname/archive/v$pkgver.zip"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./bootstrap.sh
	./configure --prefix=/usr \
		--with-openssl \
		--with-pcre \
		--enable-ipv6
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir/" install
}

md5sums="14850bb004f286ea4689c8ec854c02ef  sngrep-1.3.0.zip"
sha256sums="3aa27767982030a3cb59e559e5857562691bc146de7ff22d505bcf379c6e19fa  sngrep-1.3.0.zip"
sha512sums="7dd1da219385ad74f8f223ee29ac315dd0f6d13e94b7b5c59d1afb6f1a6779b89ab8b4d6fb5aca9f565962514875bdae106f8e5e11bf883574dd8f185af6b8ac  sngrep-1.3.0.zip"