summaryrefslogtreecommitdiff
path: root/testing/ndpi/APKBUILD
blob: f6cd542836774b877b1906950a4cef49e0e7f08d (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
45
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=ndpi
_pkgreal=nDPI
pkgver=2.2
pkgrel=1
pkgdesc="Open Source Deep Packet Inspection Software Toolkit"
url="https://github.com/ntop/nDPI"
arch="all"
license="GPL3"
makedepends="autoconf automake libpcap-dev libtool"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/ntop/nDPI/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgreal-$pkgver
# armhf test fail without apparent cause
if [ "$CARCH" = "armhf" ]; then options="!check"; fi

prepare() {
	cd "$builddir"
	default_prepare
	./autogen.sh
}

build() {
	cd "$builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

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

check() {
	cd "$builddir"
	# fails on those two
	rm tests/pcap/nintendo.pcap
	rm tests/pcap/skype-conference-call.pcap
	make check
}

sha512sums="ee1e0a1cc87a3971408877bd5d3154f6bd5d4ddcd2437c8e03e5d8a5093da2b1cbfefad1e28e77145af4286eecbd341ef90f94aa5c7f36a98e3625e9948e96d6  ndpi-2.2.tar.gz"