aboutsummaryrefslogtreecommitdiffstats
path: root/community/sngrep/APKBUILD
blob: 68bf82e0149943e0d08113d4c061d9df482c4ab9 (plain) (blame)
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.2.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="ba3e92bad3f0b51ecb2388e1de71df9b  sngrep-1.2.0.zip"
sha256sums="efb5f79f9403a09a32c3161d91a04753874a3c01d299877e45260534746d4ce1  sngrep-1.2.0.zip"
sha512sums="802b6540ce51ab11226d486a7986dbfb6519fe4d75131be60fb1273fd68a89737fc457b690aa39b23c800de8beb55e9cdc046d97816c63c92119e02dbf55a841  sngrep-1.2.0.zip"