summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2020-11-05 17:30:13 +0800
committerKhem Raj <raj.khem@gmail.com>2020-11-09 20:49:52 -0800
commit1b37387c39d161145b36af4ee9f9194f64b93341 (patch)
tree6953bb08c71bb32cadcd0f23b504a473c1ec22ed
parentb7274c62b3f27179702b00f26c2fb93c2f7c3eb6 (diff)
downloadmeta-openembedded-1b37387c39d161145b36af4ee9f9194f64b93341.tar.gz
ndpi: add new recipe
nDPI is an open source LGPLv3 library for deep-packet inspection. Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-networking/recipes-support/ntopng/files/0001-autogen.sh-not-generate-configure.patch33
-rw-r--r--meta-networking/recipes-support/ntopng/ndpi_3.4.bb26
2 files changed, 59 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/ntopng/files/0001-autogen.sh-not-generate-configure.patch b/meta-networking/recipes-support/ntopng/files/0001-autogen.sh-not-generate-configure.patch
new file mode 100644
index 0000000000..ffc6ec1efc
--- /dev/null
+++ b/meta-networking/recipes-support/ntopng/files/0001-autogen.sh-not-generate-configure.patch
@@ -0,0 +1,33 @@
1From d482bcc8fca90afc95ac3cbe848a3c9d7ad81ddc Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Wed, 4 Nov 2020 23:37:44 -0800
4Subject: [PATCH] autogen.sh: not generate configure
5
6Only use autogen.sh to generate configure.ac.
7
8Upstream-Status: Inappropriate [embedded specific]
9
10Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
11---
12 autogen.sh | 8 --------
13 1 file changed, 8 deletions(-)
14
15diff --git a/autogen.sh b/autogen.sh
16index df734ce9..d7bbf8cb 100755
17--- a/autogen.sh
18+++ b/autogen.sh
19@@ -52,11 +52,3 @@ cat configure.seed | sed \
20 -e "s/@NDPI_VERSION_SHORT@/$NDPI_VERSION_SHORT/g" \
21 -e "s/@FUZZY@/$FUZZY/g" \
22 > configure.ac
23-
24-autoreconf -ivf
25-cat configure | sed "s/#define PACKAGE/#define NDPI_PACKAGE/g" | sed "s/#define VERSION/#define NDPI_VERSION/g" > configure.tmp
26-cat configure.tmp > configure
27-
28-chmod +x configure
29-./configure $@
30-
31--
322.17.1
33
diff --git a/meta-networking/recipes-support/ntopng/ndpi_3.4.bb b/meta-networking/recipes-support/ntopng/ndpi_3.4.bb
new file mode 100644
index 0000000000..1e41537799
--- /dev/null
+++ b/meta-networking/recipes-support/ntopng/ndpi_3.4.bb
@@ -0,0 +1,26 @@
1SUMMARY = "A library for deep-packet inspection."
2DESCRIPTION = "nDPI is an open source LGPLv3 library for deep-packet \
3inspection. Based on OpenDPI it includes ntop extensions"
4
5SECTION = "libdevel"
6DEPENDS = "libpcap"
7RDEPENDS_${PN} += " libpcap"
8LICENSE = "GPLv3"
9LIC_FILES_CHKSUM = "file://COPYING;md5=b52f2d57d10c4f7ee67a7eb9615d5d24"
10
11SRCREV = "64929a75e0a7a60d864bd25a9fd97fdf9ac892a2"
12SRC_URI = "git://github.com/ntop/nDPI.git;branch=3.4-stable \
13 file://0001-autogen.sh-not-generate-configure.patch \
14"
15
16S = "${WORKDIR}/git"
17
18inherit autotools-brokensep pkgconfig
19
20do_configure_prepend() {
21 ${S}/autogen.sh
22}
23
24EXTRA_OEMAKE = " \
25 libdir=${libdir} \
26"