aboutsummaryrefslogtreecommitdiffstats
path: root/community/sngrep/APKBUILD
blob: 3b60e9f2b863e555fa2e23c14cb664608ce62deb (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.1
pkgrel=1
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 libressl-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="b15d793387111d539660dfd34f79d17c  sngrep-1.3.1.zip"
sha256sums="d59e3b93446c68c106c7e48aaa31ac5d3bde54ad9b37f369a85ba2307464541a  sngrep-1.3.1.zip"
sha512sums="9388767826e748d57c6ff1ed0f87ab1fea2e7b02d8706932a3c81842d32bdfae31004fac208d9fa8176869cec935c001c91b4c2bbfcea9f2bad5e1cab185b25b  sngrep-1.3.1.zip"