From 5f43462a4e18cbd86ad6799b39e52857febf28125fcd7b3c2b54285a3319e658 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Fri, 17 Dec 2010 16:39:23 +0000 Subject: [PATCH] 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