Skip to contentSkip to conversation

wireshark: new package

PATCH New Baruch Siach 2 participants 3 messages Jan 30, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wireshark: new package

This is only the bare minimum needed to build the textual tshark utility. Support for more options, including the wireshark GUI, can be added later.

Cc Stefan Fr?berg <[email protected]>

---
The "big" wireshark build of Stefan Fr?berg isn't here yet, so please consider applying this minimal wireshark as a starting point.

tshark still contains build directories in its RPATH, but as Thomas has indicated (http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/52377),
this should not be a show-stopper.

Changes v3 -> v4:
* Update to version 1.8.4

Changes v2 -> v3:
* Use an upstreamable patch as suggested by Thomas Petazzoni
* Add license info

Changes v1 -> v2:
* Patch configure.in and enable autoreconf, instead of overriding $prefix
* Remove --with-sysroot as suggested by Arnout Vandecappelle

 package/Config.in                                  |    1 +
 package/wireshark/Config.in                        |   14 +++++++
 .../wireshark/wireshark-dont-include-prefix.patch  |   41 ++++++++++++++++++++
 package/wireshark/wireshark.mk                     |   18 +++++++++
 4 files changed, 74 insertions(+)
 create mode 100644 package/wireshark/Config.in
 create mode 100644 package/wireshark/wireshark-dont-include-prefix.patch
 create mode 100644 package/wireshark/wireshark.mk
package/Config.in +1 -0
index ebd9817..63ab1f3 100644
@@ -727,6 +727,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/wget/Config.in"
 endif
 source "package/wireless_tools/Config.in"
+source "package/wireshark/Config.in"
 source "package/wpa_supplicant/Config.in"
 source "package/xinetd/Config.in"
 source "package/xl2tp/Config.in"
package/wireshark/Config.in new file +14 -0
new file mode 100644
index 0000000..e6d4e72
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_WIRESHARK
+	bool "wireshark"
+	select BR2_PACKAGE_LIBPCAP
+	select BR2_PACKAGE_LIBGCRYPT
+	select BR2_PACKAGE_LIBGLIB2
+	depends on BR2_USE_WCHAR # glib2
+	help
+	  Network traffic sniffer and protocol decoder. Currently only tshark,
+	  the console interface, is enabled.
+
+	  http://www.wireshark.org
+
+comment "wireshark requires a toolchain with WCHAR support"
+	depends on !BR2_USE_WCHAR
package/wireshark/wireshark-dont-include-prefix.patch new file +41 -0

41 lines not on this page · raw message

package/wireshark/wireshark.mk new file +18 -0
new file mode 100644
index 0000000..c2efc2c
@@ -0,0 +1,18 @@
+#############################################################
+#
+# wireshark
+#
+#############################################################
+
+WIRESHARK_VERSION = 1.8.4
+WIRESHARK_SOURCE = wireshark-$(WIRESHARK_VERSION).tar.bz2
+WIRESHARK_SITE = http://www.wireshark.org/download/src/all-versions
+WIRESHARK_LICENSE = wireshark license
+WIRESHARK_LICENSE_FILES = COPYING
+WIRESHARK_DEPENDENCIES = libpcap libgcrypt libglib2
+WIRESHARK_AUTORECONF = YES
+WIRESHARK_CONF_ENV = LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
+WIRESHARK_CONF_OPT = --disable-wireshark --without-krb5 --disable-usr-local \
+		     --enable-static=no
+
+$(eval $(call autotools-package))
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 wireshark: new package

Quoted 1 line · Baruch Siach

+WIRESHARK_CONF_ENV = LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config

I need ac_cv_path_PCAP_CONFIG=$(STAGING_DIR)/usr/bin/pcap-config in CONF_ENV also. That's because configure is finding /usr/bin/pcap-config from my distribution before the staging one.
And also the exec_prefix/prefix fixups in $(STAGING_DIR)/usr/bin/pcap-config since they point to /usr (the usual way in libpcap or Stefan's patch for the nice fixup).
With these tweaks it builds nicely.
Also might be worth to bump (again!) to 1.8.5 a security release. Regards.

#2 lore raw

PATCH 1/1 wireshark: new package

Hi Gustavo,

Quoted 11 lines · Gustavo Zacarias
Quoted 1 line · Baruch Siach

+WIRESHARK_CONF_ENV = LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config

I need ac_cv_path_PCAP_CONFIG=$(STAGING_DIR)/usr/bin/pcap-config in CONF_ENV also. That's because configure is finding /usr/bin/pcap-config from my distribution before the staging one.
And also the exec_prefix/prefix fixups in $(STAGING_DIR)/usr/bin/pcap-config since they point to /usr (the usual way in libpcap or Stefan's patch for the nice fixup).
With these tweaks it builds nicely.
Also might be worth to bump (again!) to 1.8.5 a security release.

Thanks for testing. I'll updated the patch an resend.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -