From c34e23efa11b16f688a47b630c2f50189a72cef5288457839b6a7f37a06bb911 Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Sat, 20 Nov 2010 11:27:31 +0000 Subject: [PATCH 1/6] Updating link to change in openSUSE:Factory/wireshark revision 36.0 OBS-URL: https://build.opensuse.org/package/show/network:utilities/wireshark?expand=0&rev=fc0574314f327728db40755e0897042d --- wireshark.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wireshark.spec b/wireshark.spec index 492aa4b..8bc6ec7 100644 --- a/wireshark.spec +++ b/wireshark.spec @@ -1,5 +1,5 @@ # -# spec file for package wireshark (Version 1.4.0) +# spec file for package wireshark (Version 1.4.1) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # From a66708668b300d8770a10e513667553e7d0bac343de1010c132cd1e8197c111c Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 8 Dec 2010 17:31:25 +0000 Subject: [PATCH 2/6] - updated to 1.4.2 OBS-URL: https://build.opensuse.org/package/show/network:utilities/wireshark?expand=0&rev=26 --- wireshark-1.0.8-desktop.patch | 7 +- wireshark-1.2.0-disable-warning-dialog.patch | 4 +- wireshark-1.2.4-enable_lua.patch | 13 ++++ wireshark-1.4.1.tar.bz2 | 3 - wireshark-1.4.2.tar.bz2 | 3 + wireshark-corosync-packet-dissector.patch | 24 +++--- wireshark-nfsv4-opts.patch | 65 ++++++++++++++++ wireshark.changes | 40 ++++++++++ wireshark.spec | 78 ++++++++++---------- 9 files changed, 177 insertions(+), 60 deletions(-) create mode 100644 wireshark-1.2.4-enable_lua.patch delete mode 100644 wireshark-1.4.1.tar.bz2 create mode 100644 wireshark-1.4.2.tar.bz2 create mode 100644 wireshark-nfsv4-opts.patch diff --git a/wireshark-1.0.8-desktop.patch b/wireshark-1.0.8-desktop.patch index 22744b5..9d1cfc7 100644 --- a/wireshark-1.0.8-desktop.patch +++ b/wireshark-1.0.8-desktop.patch @@ -2,15 +2,12 @@ Index: wireshark.desktop =================================================================== --- wireshark.desktop.orig +++ wireshark.desktop -@@ -68,9 +68,9 @@ Comment=Network traffic analyzer +@@ -68,7 +68,7 @@ Comment=Network traffic analyzer Comment[fi]=Verkkoliikenne analysaattori Comment[fr]=Analyseur de trafic réseau Comment[sv]=Nätverkstrafikanalysator -Icon=wireshark.png +Icon=wireshark TryExec=wireshark --Exec=wireshark -+Exec=/usr/bin/xdg-su -c /usr/bin/wireshark + Exec=wireshark Terminal=false - # Categorie entry according to version 1.0 of - # http://www.freedesktop.org/wiki/Specifications/menu-spec diff --git a/wireshark-1.2.0-disable-warning-dialog.patch b/wireshark-1.2.0-disable-warning-dialog.patch index ebd52e7..ef10eea 100644 --- a/wireshark-1.2.0-disable-warning-dialog.patch +++ b/wireshark-1.2.0-disable-warning-dialog.patch @@ -18,7 +18,7 @@ Index: gtk/main.c #ifdef _WIN32 static void npf_warning_dialog_cb(gpointer dialog, gint btn _U_, gpointer data _U_) -@@ -1979,9 +1979,10 @@ check_and_warn_user_startup(gchar *cf_na +@@ -1993,9 +1993,10 @@ check_and_warn_user_startup(gchar *cf_na #endif { gchar *cur_user, *cur_group; @@ -30,7 +30,7 @@ Index: gtk/main.c if (running_with_special_privs() && recent.privs_warn_if_elevated) { cur_user = get_cur_username(); cur_group = get_cur_groupname(); -@@ -1993,7 +1994,7 @@ check_and_warn_user_startup(gchar *cf_na +@@ -2007,7 +2008,7 @@ check_and_warn_user_startup(gchar *cf_na simple_dialog_check_set(priv_warning_dialog, "Don't show this message again."); simple_dialog_set_cb(priv_warning_dialog, priv_warning_dialog_cb, NULL); } diff --git a/wireshark-1.2.4-enable_lua.patch b/wireshark-1.2.4-enable_lua.patch new file mode 100644 index 0000000..041ac3c --- /dev/null +++ b/wireshark-1.2.4-enable_lua.patch @@ -0,0 +1,13 @@ +Index: wireshark-1.4.2/epan/wslua/template-init.lua +=================================================================== +--- wireshark-1.4.2.orig/epan/wslua/template-init.lua ++++ wireshark-1.4.2/epan/wslua/template-init.lua +@@ -42,7 +42,7 @@ if running_superuser then + local disabled_lib = {} + setmetatable(disabled_lib,{ __index = function() error("this package has been disabled") end } ); + +- dofile = function() error("dofile has been disabled") end ++-- dofile = function() error("dofile has been disabled") end + loadfile = function() error("loadfile has been disabled") end + loadlib = function() error("loadlib has been disabled") end + require = function() error("require has been disabled") end diff --git a/wireshark-1.4.1.tar.bz2 b/wireshark-1.4.1.tar.bz2 deleted file mode 100644 index 40aca01..0000000 --- a/wireshark-1.4.1.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8bd1e7e0f6408afb48e5e1e3ded651e0dee41a77a65868b72e26f36f3aff0983 -size 20208926 diff --git a/wireshark-1.4.2.tar.bz2 b/wireshark-1.4.2.tar.bz2 new file mode 100644 index 0000000..af6b8ef --- /dev/null +++ b/wireshark-1.4.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44c6e1ec328fa8e1e7b3838b2f25d51c36b38c562fc0d097ba464205fdb049b2 +size 20208792 diff --git a/wireshark-corosync-packet-dissector.patch b/wireshark-corosync-packet-dissector.patch index f260ecb..aa0ff18 100644 --- a/wireshark-corosync-packet-dissector.patch +++ b/wireshark-corosync-packet-dissector.patch @@ -1,7 +1,7 @@ -Index: wireshark-1.4.1/epan/dissectors/Makefile.common +Index: wireshark-1.4.2/epan/dissectors/Makefile.common =================================================================== ---- wireshark-1.4.1.orig/epan/dissectors/Makefile.common -+++ wireshark-1.4.1/epan/dissectors/Makefile.common +--- wireshark-1.4.2.orig/epan/dissectors/Makefile.common ++++ wireshark-1.4.2/epan/dissectors/Makefile.common @@ -307,6 +307,8 @@ DISSECTOR_SRC = \ packet-collectd.c \ packet-componentstatus.c \ @@ -11,10 +11,10 @@ Index: wireshark-1.4.1/epan/dissectors/Makefile.common packet-cosine.c \ packet-cpfi.c \ packet-cpha.c \ -Index: wireshark-1.4.1/epan/dissectors/packet-corosync-totemnet.c +Index: wireshark-1.4.2/epan/dissectors/packet-corosync-totemnet.c =================================================================== --- /dev/null -+++ wireshark-1.4.1/epan/dissectors/packet-corosync-totemnet.c ++++ wireshark-1.4.2/epan/dissectors/packet-corosync-totemnet.c @@ -0,0 +1,1274 @@ +/* packet-corosync-totemnet.c + * Routines for the lowest level(encryption/decryption) protocol used in Corosync cluster engine @@ -1290,10 +1290,10 @@ Index: wireshark-1.4.1/epan/dissectors/packet-corosync-totemnet.c +} + +/* packet-corosync-totemnet.c ends here */ -Index: wireshark-1.4.1/epan/dissectors/packet-corosync-totemsrp.c +Index: wireshark-1.4.2/epan/dissectors/packet-corosync-totemsrp.c =================================================================== --- /dev/null -+++ wireshark-1.4.1/epan/dissectors/packet-corosync-totemsrp.c ++++ wireshark-1.4.2/epan/dissectors/packet-corosync-totemsrp.c @@ -0,0 +1,1379 @@ +/* packet-corosync-totemsrp.c + * Dissectors for totem single ring protocol implementated in corosync cluster engine @@ -2674,10 +2674,10 @@ Index: wireshark-1.4.1/epan/dissectors/packet-corosync-totemsrp.c + corosync_totemsrp_is_little_endian(pinfo)); +} + -Index: wireshark-1.4.1/epan/dissectors/packet-corosync-totemsrp.h +Index: wireshark-1.4.2/epan/dissectors/packet-corosync-totemsrp.h =================================================================== --- /dev/null -+++ wireshark-1.4.1/epan/dissectors/packet-corosync-totemsrp.h ++++ wireshark-1.4.2/epan/dissectors/packet-corosync-totemsrp.h @@ -0,0 +1,53 @@ +/* packet-corosync-totemsrp.h + * Dissectors for totem single ring protocol implemented in corosync cluster engine @@ -2732,10 +2732,10 @@ Index: wireshark-1.4.1/epan/dissectors/packet-corosync-totemsrp.h + + +#endif /* packet-totemsrp.h */ -Index: wireshark-1.4.1/epan/dissectors/Makefile.in +Index: wireshark-1.4.2/epan/dissectors/Makefile.in =================================================================== ---- wireshark-1.4.1.orig/epan/dissectors/Makefile.in -+++ wireshark-1.4.1/epan/dissectors/Makefile.in +--- wireshark-1.4.2.orig/epan/dissectors/Makefile.in ++++ wireshark-1.4.2/epan/dissectors/Makefile.in @@ -224,6 +224,8 @@ am__objects_3 = libdissectors_la-packet- libdissectors_la-packet-collectd.lo \ libdissectors_la-packet-componentstatus.lo \ diff --git a/wireshark-nfsv4-opts.patch b/wireshark-nfsv4-opts.patch new file mode 100644 index 0000000..91b97cb --- /dev/null +++ b/wireshark-nfsv4-opts.patch @@ -0,0 +1,65 @@ +Index: wireshark-1.4.2/epan/dissectors/packet-nfs.c +=================================================================== +--- wireshark-1.4.2.orig/epan/dissectors/packet-nfs.c ++++ wireshark-1.4.2/epan/dissectors/packet-nfs.c +@@ -8795,6 +8795,8 @@ dissect_nfs_argop4(tvbuff_t *tvb, int of + ftree = proto_item_add_subtree(fitem, ett_nfs_argop4); + } + ++ proto_item_append_text(tree, ", Ops(%d):", ops); ++ + for (ops_counter=0; ops_countercinfo, COL_INFO)) { ++ col_append_fstr(pinfo->cinfo, COL_INFO, " %s", ++ names_nfsv4_operation[opcode - 3].strptr); ++ } ++ } ++ proto_item_append_text(tree, " %s", ++ names_nfsv4_operation[opcode - 3].strptr); ++ + switch(opcode) + { + case NFS4_OP_ACCESS: +@@ -9290,6 +9301,8 @@ dissect_nfs_resop4(tvbuff_t *tvb, int of + ftree = proto_item_add_subtree(fitem, ett_nfs_resop4); + } + ++ proto_item_append_text(tree, ", Ops(%d):", ops); ++ + for (ops_counter = 0; ops_counter < ops; ops_counter++) + { + opcode = tvb_get_ntohl(tvb, offset); +@@ -9321,6 +9334,17 @@ dissect_nfs_resop4(tvbuff_t *tvb, int of + + offset = dissect_nfs_nfsstat4(tvb, offset, newftree, &status); + ++ if (check_col(pinfo->cinfo, COL_INFO)) { ++ if (status != NFS4_OK) { ++ col_append_fstr(pinfo->cinfo, COL_INFO, " %s(%d)", ++ names_nfsv4_operation[opcode - 3].strptr, status); ++ } else if (opcode != NFS4_OP_PUTFH) { ++ col_append_fstr(pinfo->cinfo, COL_INFO, " %s", ++ names_nfsv4_operation[opcode - 3].strptr); ++ } ++ } ++ proto_item_append_text(tree, " %s(%d)", ++ names_nfsv4_operation[opcode - 3].strptr, status); + /* + * With the exception of NFS4_OP_LOCK, NFS4_OP_LOCKT, and + * NFS4_OP_SETATTR, all other ops do *not* return data with the +@@ -9665,7 +9689,7 @@ static const value_string nfsv3_proc_val + static const vsff nfs4_proc[] = { + { 0, "NULL", + dissect_nfs3_null_call, dissect_nfs3_null_reply }, +- { 1, "COMPOUND", ++ { 1, "COMP", + dissect_nfs4_compound_call, dissect_nfs4_compound_reply }, + { 0, NULL, NULL, NULL } + }; diff --git a/wireshark.changes b/wireshark.changes index 223437a..1cf81ad 100644 --- a/wireshark.changes +++ b/wireshark.changes @@ -1,3 +1,43 @@ +------------------------------------------------------------------- +Wed Dec 8 16:15:13 UTC 2010 - prusnak@opensuse.org + +- updated to 1.4.2 + - security fixes: + * Nephi Johnson of BreakingPoint discovered that the LDSS + dissector could overflow a buffer. (Bug 5318) + * The ZigBee ZCL dissector could go into an infinite loop. (Bug 5303) + - bug fixes: + * File-Open Display Filter is overwritten by Save-As Filename. (Bug 3894) + * Wireshark crashes with "Gtk-ERROR **: Byte index 6 is off + the end of the line" if click on last PDU. (Bug 5285) + * GTK-ERROR can occur in packets when there are multiple + Netbios/SMB headers in a single frame. (Bug 5289) + * "Tshark -G values" crashes on Windows. (Bug 5296) + * PROFINET I&M0FilterData packet not fully decoded. (Bug 5299) + * PROFINET MRP linkup/linkdown decoding incorrect. (Bug 5300) + * [lua] Dumper:close() will cause a segfault due later GC of + the Dumper. (Bug 5320) + * Network Instruments' trace files sometimes cannot be read with + an error message of "Observer: bad record: Invalid magic number". (Bug 5330) + * IO Graph Time of Day times incorrect for filtered data. (Bug 5340) + * Wireshark tools do not detect and read some ERF files correctly. (Bug 5344) + * "editcap -h" sends some lines to stderr and others to stdout. (Bug 5353) + * IP Timestamp Option: "flag=3" variant (prespecified) not displayed + correctly. (Bug 5357) + * AgentX PDU Header 'hex field highlighting' incorrectly spans + extra bytes. (Bug 5364) + * AgentX dissector cannot handle null OID in Open-PDU. (Bug 5368) + * Crash with "Gtk-ERROR **: Byte index 6 is off the end of the line". (Bug 5374) + * ANCP Portmanagment TLV wrong decoded. (Bug 5388) + * Crash during startup because of Python SyntaxError in wspy_libws.py. (Bug 5389) + - Updated Protocol Support + * AgentX, ANCP, DIAMETER, HTTP, IP, LDSS, MIME, NBNS, PROFINET, + SIP, TCP, Telnet, ZigBee + - New and Updated Capture File Support + * Endace ERF, Network Instruments Observer +- fix lua error at startup (enable_lua.patch) [bnc#650434] +- apply nfsv4 patch from Fedora (nfsv4-opts.patch) + ------------------------------------------------------------------- Wed Nov 10 15:36:51 UTC 2010 - prusnak@opensuse.org diff --git a/wireshark.spec b/wireshark.spec index 8bc6ec7..757e826 100644 --- a/wireshark.spec +++ b/wireshark.spec @@ -1,30 +1,14 @@ # -# spec file for package wireshark (Version 1.4.1) -# -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - - Name: wireshark -License: GPLv2+ -Group: Productivity/Networking/Diagnostic -Summary: A Network Traffic Analyser -Version: 1.4.1 +Version: 1.4.2 Release: 1 +License: GPLv2+ +Summary: A Network Traffic Analyser Url: http://www.wireshark.org/ +Group: Productivity/Networking/Diagnostic Source: http://www.wireshark.org/download/src/%{name}-%{version}.tar.bz2 Source1: include.filelist # PATCH-FIX-OPENSUSE wireshark-1.0.8-desktop.patch bnc#349782 prusnak@suse.cz -- fix icon and run as root @@ -35,10 +19,8 @@ Patch1: %{name}-1.2.0-disable-warning-dialog.patch Patch2: %{name}-1.2.0-geoip.patch # PATCH-FEATURE-UPSTREAM wireshark-corosync-packet-dissector.patch tserong@novell.com -- add corosync packet dissector Patch3: %{name}-corosync-packet-dissector.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build -Requires: xdg-utils -Provides: ethereal = %{version} -Obsoletes: ethereal < %{version} +Patch4: %{name}-1.2.4-enable_lua.patch +Patch5: %{name}-nfsv4-opts.patch BuildRequires: bison BuildRequires: cairo-devel BuildRequires: flex @@ -59,9 +41,13 @@ BuildRequires: python BuildRequires: tcpd-devel BuildRequires: xdg-utils BuildRequires: zlib-devel +Requires: xdg-utils +Provides: ethereal = %{version} +Obsoletes: ethereal < %{version} +BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} -BuildRequires: update-desktop-files BuildRequires: libGeoIP-devel +BuildRequires: update-desktop-files Recommends: GeoIP %endif @@ -97,31 +83,36 @@ view the reconstructed stream of a TCP session. %patch1 %patch2 %patch3 -p1 +%patch4 -p1 +%patch5 -p1 %build %configure make %{?_smp_mflags} %install -make DESTDIR=$RPM_BUILD_ROOT install -find $RPM_BUILD_ROOT -name "*.la" -delete -print -ln -fs wireshark $RPM_BUILD_ROOT%{_bindir}/ethereal -ln -fs tshark $RPM_BUILD_ROOT%{_bindir}/tethereal -install -d -m 0755 $RPM_BUILD_ROOT%{_sysconfdir} -install -d -m 0755 $RPM_BUILD_ROOT%{_mandir}/man1/ -#install -m 0644 *.1 $RPM_BUILD_ROOT%{_mandir}/man1/ -install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/wireshark +%make_install +find %{buildroot} -name "*.la" -delete -print +ln -fs wireshark %{buildroot}%{_bindir}/ethereal +ln -fs tshark %{buildroot}%{_bindir}/tethereal +install -d -m 0755 %{buildroot}%{_sysconfdir} +install -d -m 0755 %{buildroot}%{_mandir}/man1/ +# install -m 0644 *.1 %{buildroot}%{_mandir}/man1/ +install -d -m 0755 %{buildroot}%{_includedir}/wireshark for i in `cat %{SOURCE1}`; do - install -m 644 $i $RPM_BUILD_ROOT%{_includedir}/wireshark + install -m 644 $i %{buildroot}%{_includedir}/wireshark done -install -D -m 0644 image/wsicon48.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/wireshark.png -install -D -m 0644 wireshark.desktop $RPM_BUILD_ROOT%{_datadir}/applications/wireshark.desktop +install -D -m 0644 image/wsicon48.png %{buildroot}%{_datadir}/pixmaps/wireshark.png +install -D -m 0644 wireshark.desktop %{buildroot}%{_datadir}/applications/wireshark.desktop %if 0%{?suse_version} %suse_update_desktop_file %{name} %endif %clean -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} + +%pre +getent group wireshark >/dev/null || groupadd wireshark %post -p /sbin/ldconfig @@ -134,7 +125,18 @@ rm -rf $RPM_BUILD_ROOT %doc %{_mandir}/man4/* %{_datadir}/applications/wireshark.desktop %{_datadir}/pixmaps/wireshark.png -%{_bindir}/[^i]* +%{_bindir}/ethereal +%{_bindir}/tethereal +%{_bindir}/wireshark +%{_bindir}/editcap +%{_bindir}/tshark +%{_bindir}/mergecap +%{_bindir}/text2pcap +%{_bindir}/dftest +%{_bindir}/capinfos +%{_bindir}/randpkt +%attr(0750,root,wireshark) %caps(cap_net_raw,cap_net_admin=eip) %{_bindir}/dumpcap +%{_bindir}/rawshark %{_libdir}/lib*.so.* %{_libdir}/wireshark %{_datadir}/wireshark From 27362d09a6fe34377e03fa42b882ef8eb4440c92fd8d7ccf638b782ea1ab04e4 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 8 Dec 2010 17:32:43 +0000 Subject: [PATCH 3/6] use caps only for 11.4+ OBS-URL: https://build.opensuse.org/package/show/network:utilities/wireshark?expand=0&rev=27 --- wireshark.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wireshark.spec b/wireshark.spec index 757e826..9dc9876 100644 --- a/wireshark.spec +++ b/wireshark.spec @@ -111,8 +111,10 @@ install -D -m 0644 wireshark.desktop %{buildroot}%{_datadir}/applications/wiresh %clean rm -rf %{buildroot} +%if 0%{?suse_version} > 1130 %pre getent group wireshark >/dev/null || groupadd wireshark +%endif %post -p /sbin/ldconfig @@ -135,7 +137,11 @@ getent group wireshark >/dev/null || groupadd wireshark %{_bindir}/dftest %{_bindir}/capinfos %{_bindir}/randpkt +%if 0%{?suse_version} > 1130 %attr(0750,root,wireshark) %caps(cap_net_raw,cap_net_admin=eip) %{_bindir}/dumpcap +%else +%{_bindir}/dumpcap +%endif %{_bindir}/rawshark %{_libdir}/lib*.so.* %{_libdir}/wireshark From 0ebb6dd6bbbed2db851462bce3dc919a6528e982d5cfb1237ed2922cef06f8d6 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 8 Dec 2010 17:47:38 +0000 Subject: [PATCH 4/6] run as root on 11.3 and older, use caps on 11.4+ OBS-URL: https://build.opensuse.org/package/show/network:utilities/wireshark?expand=0&rev=28 --- wireshark-1.0.8-desktop.patch | 13 ------------- wireshark.spec | 16 +++++++++------- 2 files changed, 9 insertions(+), 20 deletions(-) delete mode 100644 wireshark-1.0.8-desktop.patch diff --git a/wireshark-1.0.8-desktop.patch b/wireshark-1.0.8-desktop.patch deleted file mode 100644 index 9d1cfc7..0000000 --- a/wireshark-1.0.8-desktop.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: wireshark.desktop -=================================================================== ---- wireshark.desktop.orig -+++ wireshark.desktop -@@ -68,7 +68,7 @@ Comment=Network traffic analyzer - Comment[fi]=Verkkoliikenne analysaattori - Comment[fr]=Analyseur de trafic réseau - Comment[sv]=Nätverkstrafikanalysator --Icon=wireshark.png -+Icon=wireshark - TryExec=wireshark - Exec=wireshark - Terminal=false diff --git a/wireshark.spec b/wireshark.spec index 9dc9876..103412c 100644 --- a/wireshark.spec +++ b/wireshark.spec @@ -11,8 +11,6 @@ Url: http://www.wireshark.org/ Group: Productivity/Networking/Diagnostic Source: http://www.wireshark.org/download/src/%{name}-%{version}.tar.bz2 Source1: include.filelist -# PATCH-FIX-OPENSUSE wireshark-1.0.8-desktop.patch bnc#349782 prusnak@suse.cz -- fix icon and run as root -Patch0: %{name}-1.0.8-desktop.patch # PATCH-FIX-OPENSUSE wireshark-1.2.0-disable-warning-dialog.patch bnc#349782 prusnak@suse.cz -- don't show warning when running as root Patch1: %{name}-1.2.0-disable-warning-dialog.patch # PATCH-FEATURE-OPENSUSE wireshark-1.2.0-geoip.patch prusnak@suse.cz -- search in /var/lib/GeoIP if user hasn't set any GeoIP folders @@ -79,12 +77,16 @@ view the reconstructed stream of a TCP session. %prep %setup -q -%patch0 -%patch1 %patch2 %patch3 -p1 %patch4 -p1 %patch5 -p1 +sed -i 's/^Icon=wireshark.png$/Icon=wireshark/' wireshark.desktop +# run as root on 11.3 and older - bnc#349782 +%if 0%{?suse_version} <= 1130 +%patch1 +sed -i 's!^Exec=wireshark!Exec=/usr/bin/xdg-su -c /usr/bin/wireshark' wireshark.desktop +%endif %build %configure @@ -144,13 +146,13 @@ getent group wireshark >/dev/null || groupadd wireshark %endif %{_bindir}/rawshark %{_libdir}/lib*.so.* -%{_libdir}/wireshark -%{_datadir}/wireshark +%{_libdir}/wireshark/ +%{_datadir}/wireshark/ %files devel %defattr(-,root,root) %doc doc/README.* -%{_includedir}/wireshark +%{_includedir}/wireshark/ %{_libdir}/*.so %{_bindir}/idl2wrs %{_mandir}/man1/idl2wrs* From f0cd326c5e30ab76eb5a5103e1f025143151f6259e223eb4373636a57340497b Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Fri, 10 Dec 2010 11:01:50 +0000 Subject: [PATCH 5/6] OBS-URL: https://build.opensuse.org/package/show/network:utilities/wireshark?expand=0&rev=29 --- wireshark.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wireshark.spec b/wireshark.spec index 103412c..3760ad9 100644 --- a/wireshark.spec +++ b/wireshark.spec @@ -85,7 +85,7 @@ sed -i 's/^Icon=wireshark.png$/Icon=wireshark/' wireshark.desktop # run as root on 11.3 and older - bnc#349782 %if 0%{?suse_version} <= 1130 %patch1 -sed -i 's!^Exec=wireshark!Exec=/usr/bin/xdg-su -c /usr/bin/wireshark' wireshark.desktop +sed -i 's!^Exec=wireshark!Exec=/usr/bin/xdg-su -c /usr/bin/wireshark!' wireshark.desktop %endif %build From 5f43462a4e18cbd86ad6799b39e52857febf28125fcd7b3c2b54285a3319e658 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Fri, 17 Dec 2010 16:39:23 +0000 Subject: [PATCH 6/6] disable caps for now OBS-URL: https://build.opensuse.org/package/show/network:utilities/wireshark?expand=0&rev=30 --- wireshark.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wireshark.spec b/wireshark.spec index 3760ad9..ec46b9d 100644 --- a/wireshark.spec +++ b/wireshark.spec @@ -2,6 +2,9 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +# disable caps for now +%define use_caps 0 + Name: wireshark Version: 1.4.2 Release: 1 @@ -83,7 +86,7 @@ view the reconstructed stream of a TCP session. %patch5 -p1 sed -i 's/^Icon=wireshark.png$/Icon=wireshark/' wireshark.desktop # run as root on 11.3 and older - bnc#349782 -%if 0%{?suse_version} <= 1130 +%if ! %{use_caps} %patch1 sed -i 's!^Exec=wireshark!Exec=/usr/bin/xdg-su -c /usr/bin/wireshark!' wireshark.desktop %endif @@ -113,7 +116,7 @@ install -D -m 0644 wireshark.desktop %{buildroot}%{_datadir}/applications/wiresh %clean rm -rf %{buildroot} -%if 0%{?suse_version} > 1130 +%if %{use_caps} %pre getent group wireshark >/dev/null || groupadd wireshark %endif @@ -139,7 +142,7 @@ getent group wireshark >/dev/null || groupadd wireshark %{_bindir}/dftest %{_bindir}/capinfos %{_bindir}/randpkt -%if 0%{?suse_version} > 1130 +%if %{use_caps} %attr(0750,root,wireshark) %caps(cap_net_raw,cap_net_admin=eip) %{_bindir}/dumpcap %else %{_bindir}/dumpcap