diff options
| author | Mingli Yu <mingli.yu@windriver.com> | 2020-11-05 17:30:13 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-11-09 20:49:52 -0800 |
| commit | 1b37387c39d161145b36af4ee9f9194f64b93341 (patch) | |
| tree | 6953bb08c71bb32cadcd0f23b504a473c1ec22ed | |
| parent | b7274c62b3f27179702b00f26c2fb93c2f7c3eb6 (diff) | |
| download | meta-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.patch | 33 | ||||
| -rw-r--r-- | meta-networking/recipes-support/ntopng/ndpi_3.4.bb | 26 |
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 @@ | |||
| 1 | From d482bcc8fca90afc95ac3cbe848a3c9d7ad81ddc Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Mingli Yu <mingli.yu@windriver.com> | ||
| 3 | Date: Wed, 4 Nov 2020 23:37:44 -0800 | ||
| 4 | Subject: [PATCH] autogen.sh: not generate configure | ||
| 5 | |||
| 6 | Only use autogen.sh to generate configure.ac. | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [embedded specific] | ||
| 9 | |||
| 10 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
| 11 | --- | ||
| 12 | autogen.sh | 8 -------- | ||
| 13 | 1 file changed, 8 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/autogen.sh b/autogen.sh | ||
| 16 | index 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 | -- | ||
| 32 | 2.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 @@ | |||
| 1 | SUMMARY = "A library for deep-packet inspection." | ||
| 2 | DESCRIPTION = "nDPI is an open source LGPLv3 library for deep-packet \ | ||
| 3 | inspection. Based on OpenDPI it includes ntop extensions" | ||
| 4 | |||
| 5 | SECTION = "libdevel" | ||
| 6 | DEPENDS = "libpcap" | ||
| 7 | RDEPENDS_${PN} += " libpcap" | ||
| 8 | LICENSE = "GPLv3" | ||
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=b52f2d57d10c4f7ee67a7eb9615d5d24" | ||
| 10 | |||
| 11 | SRCREV = "64929a75e0a7a60d864bd25a9fd97fdf9ac892a2" | ||
| 12 | SRC_URI = "git://github.com/ntop/nDPI.git;branch=3.4-stable \ | ||
| 13 | file://0001-autogen.sh-not-generate-configure.patch \ | ||
| 14 | " | ||
| 15 | |||
| 16 | S = "${WORKDIR}/git" | ||
| 17 | |||
| 18 | inherit autotools-brokensep pkgconfig | ||
| 19 | |||
| 20 | do_configure_prepend() { | ||
| 21 | ${S}/autogen.sh | ||
| 22 | } | ||
| 23 | |||
| 24 | EXTRA_OEMAKE = " \ | ||
| 25 | libdir=${libdir} \ | ||
| 26 | " | ||
