disable caps for now
OBS-URL: https://build.opensuse.org/package/show/network:utilities/wireshark?expand=0&rev=30
This commit is contained in:
parent
f0cd326c5e
commit
5f43462a4e
@ -2,6 +2,9 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# disable caps for now
|
||||||
|
%define use_caps 0
|
||||||
|
|
||||||
Name: wireshark
|
Name: wireshark
|
||||||
Version: 1.4.2
|
Version: 1.4.2
|
||||||
Release: 1
|
Release: 1
|
||||||
@ -83,7 +86,7 @@ view the reconstructed stream of a TCP session.
|
|||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
sed -i 's/^Icon=wireshark.png$/Icon=wireshark/' wireshark.desktop
|
sed -i 's/^Icon=wireshark.png$/Icon=wireshark/' wireshark.desktop
|
||||||
# run as root on 11.3 and older - bnc#349782
|
# run as root on 11.3 and older - bnc#349782
|
||||||
%if 0%{?suse_version} <= 1130
|
%if ! %{use_caps}
|
||||||
%patch1
|
%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
|
%endif
|
||||||
@ -113,7 +116,7 @@ install -D -m 0644 wireshark.desktop %{buildroot}%{_datadir}/applications/wiresh
|
|||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1130
|
%if %{use_caps}
|
||||||
%pre
|
%pre
|
||||||
getent group wireshark >/dev/null || groupadd wireshark
|
getent group wireshark >/dev/null || groupadd wireshark
|
||||||
%endif
|
%endif
|
||||||
@ -139,7 +142,7 @@ getent group wireshark >/dev/null || groupadd wireshark
|
|||||||
%{_bindir}/dftest
|
%{_bindir}/dftest
|
||||||
%{_bindir}/capinfos
|
%{_bindir}/capinfos
|
||||||
%{_bindir}/randpkt
|
%{_bindir}/randpkt
|
||||||
%if 0%{?suse_version} > 1130
|
%if %{use_caps}
|
||||||
%attr(0750,root,wireshark) %caps(cap_net_raw,cap_net_admin=eip) %{_bindir}/dumpcap
|
%attr(0750,root,wireshark) %caps(cap_net_raw,cap_net_admin=eip) %{_bindir}/dumpcap
|
||||||
%else
|
%else
|
||||||
%{_bindir}/dumpcap
|
%{_bindir}/dumpcap
|
||||||
|
Loading…
Reference in New Issue
Block a user