Skip to contentSkip to conversation

wireshark: Break dumpcap into its own package

PATCH New Alex Kiernan 1 participant 1 message Oct 14

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wireshark: Break dumpcap into its own package

dumpcap is a lightweight capture tool which carries no dependencies on wireshark. Break it into its own package, with an RDEPENDS back to wireshark.

---
 .../recipes-support/wireshark/wireshark_4.6.9.bb          | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
meta-networking/recipes-support/wireshark/wireshark_4.6.9.bb +5 -3
index 1a10eb08e850..fec2345b0638 100644
@@ -106,12 +106,14 @@ do_install:append:class-target() {
     rm -fr ${D}${usrlib}/${BPN}/cmake
 }
 
-PACKAGE_BEFORE_PN += "tshark"
+PACKAGE_BEFORE_PN += "dumpcap tshark"
+
+FILES:dumpcap = "${bindir}/dumpcap ${mandir}/man1/dumpcap.*"
 
 FILES:tshark = "${bindir}/tshark ${mandir}/man1/tshark.*"
+RDEPENDS:tshark = "wireshark"
 
 FILES:${PN} += "${datadir}*"
-
-RDEPENDS:tshark = "wireshark"
+RDEPENDS:${PN} += "dumpcap"
 
 BBCLASSEXTEND = "native"