summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Péron <peron.clem@gmail.com>2022-02-17 14:16:15 +0100
committerKhem Raj <raj.khem@gmail.com>2022-02-17 14:54:56 -0800
commitf3474b141d57e22c90436974630fc5610d05dd45 (patch)
tree9ea05c5b96afdf3fbd09004f7cfca75bbddba8ee
parent99e2f59d7cfe460d8593bc1b00b2f68ab6c22126 (diff)
downloadmeta-openembedded-f3474b141d57e22c90436974630fc5610d05dd45.tar.gz
networking: add new netsniff-ng recipe version 0.6.8
Netsniff-ng is a fast zero-copy analyzer, pcap capturing and replaying tool. Actually the Makefile doesn't create the folder when installing tools, let's add a patch to fix this. Signed-off-by: Clément Péron <peron.clem@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-networking/recipes-core/packagegroups/packagegroup-meta-networking.bb1
-rw-r--r--meta-networking/recipes-support/netsniff-ng/files/0001-Cmds-automatically-create-folder.patch26
-rw-r--r--meta-networking/recipes-support/netsniff-ng/netsniff-ng_0.6.8.bb36
3 files changed, 63 insertions, 0 deletions
diff --git a/meta-networking/recipes-core/packagegroups/packagegroup-meta-networking.bb b/meta-networking/recipes-core/packagegroups/packagegroup-meta-networking.bb
index a539dfeb6c..19ab1fa1a7 100644
--- a/meta-networking/recipes-core/packagegroups/packagegroup-meta-networking.bb
+++ b/meta-networking/recipes-core/packagegroups/packagegroup-meta-networking.bb
@@ -216,6 +216,7 @@ RDEPENDS:packagegroup-meta-networking-support = "\
216 ypbind-mt \ 216 ypbind-mt \
217 yp-tools \ 217 yp-tools \
218 mtr \ 218 mtr \
219 netsniff-ng \
219 ntp ntpdate sntp ntpdc ntpq ntp-tickadj ntp-utils \ 220 ntp ntpdate sntp ntpdc ntpq ntp-tickadj ntp-utils \
220 ${@bb.utils.contains("DISTRO_FEATURES", "x11", "ntpsec", "", d)} \ 221 ${@bb.utils.contains("DISTRO_FEATURES", "x11", "ntpsec", "", d)} \
221 nbd-client \ 222 nbd-client \
diff --git a/meta-networking/recipes-support/netsniff-ng/files/0001-Cmds-automatically-create-folder.patch b/meta-networking/recipes-support/netsniff-ng/files/0001-Cmds-automatically-create-folder.patch
new file mode 100644
index 0000000000..e535aedf51
--- /dev/null
+++ b/meta-networking/recipes-support/netsniff-ng/files/0001-Cmds-automatically-create-folder.patch
@@ -0,0 +1,26 @@
1From 7c00d75d16da18a9998fc4cca28d3c953dd54ceb Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= <peron.clem@gmail.com>
3Date: Mon, 14 Feb 2022 18:37:22 +0100
4Subject: [PATCH] Cmds: automatically create folder
5
6---
7 Cmds | 3 ++-
8 1 file changed, 2 insertions(+), 1 deletion(-)
9
10diff --git a/Cmds b/Cmds
11index e590b38..3df23b8 100644
12--- a/Cmds
13+++ b/Cmds
14@@ -44,7 +44,8 @@ ifeq ("$(origin PREFIX)", "$(filter $(origin PREFIX), file command line)")
15 INSTX = echo -e " INST\t$(1)" && install -d $(2) && \
16 install -C $(1) $(2)/$(shell basename $(1))
17 else
18- INSTX = echo -e " INST\t$(1)" && install -C $(1) $(2)/$(shell basename $(1))
19+ INSTX = echo -e " INST\t$(1)" && install -d $(2) && \
20+ install -C $(1) $(2)/$(shell basename $(1))
21 endif
22
23 MKDIR = echo -e " MKDIR\t$(1)" && mkdir -p $(1)
24--
252.32.0
26
diff --git a/meta-networking/recipes-support/netsniff-ng/netsniff-ng_0.6.8.bb b/meta-networking/recipes-support/netsniff-ng/netsniff-ng_0.6.8.bb
new file mode 100644
index 0000000000..10e30044e8
--- /dev/null
+++ b/meta-networking/recipes-support/netsniff-ng/netsniff-ng_0.6.8.bb
@@ -0,0 +1,36 @@
1DESCRIPTION = "Netsniff-ng is a fast zero-copy analyzer, pcap capturing and replaying tool"
2HOMEPAGE = "http://netsniff-ng.org"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=9dd40dfb621eed702c0775577fbb7011"
5DEPENDS = "libpcap"
6
7SRCREV = "be3e706f00295024ebc199e70177343fdaebbc9e"
8SRC_URI = " \
9 git://github.com/netsniff-ng/netsniff-ng.git;protocol=https;branch=master \
10 file://0001-Cmds-automatically-create-folder.patch \
11 "
12
13S = "${WORKDIR}/git"
14
15inherit pkgconfig
16
17EXTRA_OEMAKE += " TERM='' "
18
19PACKAGECONFIG ??= ""
20PACKAGECONFIG[zlib] = ",--disable-zlib,zlib,"
21PACKAGECONFIG[libnl] = ",--disable-libnl,libnl,"
22PACKAGECONFIG[geoip] = ",--disable-geoip,geoip,"
23
24do_configure() {
25 ./configure --prefix=${prefix}
26}
27
28do_compile() {
29 oe_runmake
30}
31
32do_install() {
33 oe_runmake DESTDIR=${D} netsniff-ng_install
34}
35
36BBCLASSEXTEND = "native nativesdk"