Pavol Rusnak 2010-12-17 16:39:23 +00:00 committed by Git OBS Bridge
parent f0cd326c5e
commit 5f43462a4e

View File

@ -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