aboutsummaryrefslogblamecommitdiffstats
path: root/community/sngrep/APKBUILD
blob: 36c597eace673d93792066b2a82332ce93251f01 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                           
            
        





                                                                      
                                                                                          

                          
                                                                                       

























                                                                        


                                                                                                                                                               
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=sngrep
pkgver=1.4.2
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="b15ddc7504579286e78fce75ce5f5e70  sngrep-1.4.2.zip"
sha256sums="af49cf42dbc77c8f90999bf2cfd97e7aad0b48a99b7d18b9c73a6fafed6c4a7a  sngrep-1.4.2.zip"
sha512sums="9d488de676b1590d22254daba18b27df4dda928b593996eebf38d8466bfd4d04732f4251b520993a47221f56887bfe71431369e211a04df8f193147eaa4685a2  sngrep-1.4.2.zip"