From 7160a58345ec65c1d84f37e77a4fe503d1bb0aa0 Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Mon, 1 Feb 2016 04:12:08 -0500 Subject: [PATCH] New package: ndpi-1.6 --- common/shlibs | 1 + srcpkgs/ndpi-devel | 1 + srcpkgs/ndpi/patches/types.patch | 11 +++++++++++ srcpkgs/ndpi/template | 34 ++++++++++++++++++++++++++++++++ 4 files changed, 47 insertions(+) create mode 120000 srcpkgs/ndpi-devel create mode 100644 srcpkgs/ndpi/patches/types.patch create mode 100644 srcpkgs/ndpi/template diff --git a/common/shlibs b/common/shlibs index 75cbf11f053..4c582eefaae 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2334,3 +2334,4 @@ libopenshot-audio.so.3 libopenshot-audio-0.0.6_1 libopenshot.so.6 libopenshot-0.0.9_1 libavresample.so.2 libavresample-2.8.5_3 libpqxx-4.0.so libpqxx-4.0.1_1 +libndpi.so.1 ndpi-1.6_1 diff --git a/srcpkgs/ndpi-devel b/srcpkgs/ndpi-devel new file mode 120000 index 00000000000..a5ae7da6a6a --- /dev/null +++ b/srcpkgs/ndpi-devel @@ -0,0 +1 @@ +ndpi \ No newline at end of file diff --git a/srcpkgs/ndpi/patches/types.patch b/srcpkgs/ndpi/patches/types.patch new file mode 100644 index 00000000000..3794e17b682 --- /dev/null +++ b/srcpkgs/ndpi/patches/types.patch @@ -0,0 +1,11 @@ +--- src/include/linux_compat.h.bck 2016-02-01 04:20:53.130125595 -0500 ++++ src/include/linux_compat.h 2016-02-01 04:21:07.555942679 -0500 +@@ -28,6 +28,8 @@ + + #include "ndpi_define.h" + ++#include ++ + #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) + #include + diff --git a/srcpkgs/ndpi/template b/srcpkgs/ndpi/template new file mode 100644 index 00000000000..a9657a75961 --- /dev/null +++ b/srcpkgs/ndpi/template @@ -0,0 +1,34 @@ +# Template file for 'ndpi' +pkgname=ndpi +version=1.6 +revision=1 +wrksrc=nDPI-${version} +build_style=gnu-configure +hostmakedepends="libtool automake pkg-config" +makedepends="libpcap-devel json-c-devel" +short_desc="Open Source Deep Packet Inspection Software Toolkit" +maintainer="Toyam Cox " +license="GPL-3" +homepage="http://www.ntop.org/products/ndpi/" +distfiles="https://github.com/ntop/nDPI/archive/${version}.tar.gz" +checksum=0863c7096f70c785e1b27a34f7b40939ac1a0e3a734ea3dcaa5cf161360a2561 +nocross=yes + +pre_configure() { + ./autogen.sh +} + +post_install() { + vdoc doc/nDPI_QuickStartGuide.pdf +} + +ndpi-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/*.a + vmove usr/lib/*.so + vmove usr/lib/pkgconfig + } +}