diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-12-05 09:58:34 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-12-05 10:07:30 +0000 |
commit | 8bb17a605e4cdd00920c2f984862cc09e38368fa (patch) | |
tree | c3bc78abbf8e423c2b14843278c4348fde8f4c00 /testing/ndpi | |
parent | ba329a51363410583c1cf6e6cba7e4688c97e9b5 (diff) | |
download | aports-8bb17a605e4cdd00920c2f984862cc09e38368fa.tar.bz2 aports-8bb17a605e4cdd00920c2f984862cc09e38368fa.tar.xz |
testing/ndpi: new aport
Library for deep-packet inspection
Diffstat (limited to 'testing/ndpi')
-rw-r--r-- | testing/ndpi/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/ndpi/APKBUILD b/testing/ndpi/APKBUILD new file mode 100644 index 0000000000..6240fca941 --- /dev/null +++ b/testing/ndpi/APKBUILD @@ -0,0 +1,43 @@ +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> +pkgname=ndpi +_pkgreal=nDPI +pkgver=2.2 +pkgrel=0 +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 + +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" |