use caps only for 11.4+
OBS-URL: https://build.opensuse.org/package/show/network:utilities/wireshark?expand=0&rev=27
This commit is contained in:
parent
a66708668b
commit
27362d09a6
@ -111,8 +111,10 @@ install -D -m 0644 wireshark.desktop %{buildroot}%{_datadir}/applications/wiresh
|
|||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1130
|
||||||
%pre
|
%pre
|
||||||
getent group wireshark >/dev/null || groupadd wireshark
|
getent group wireshark >/dev/null || groupadd wireshark
|
||||||
|
%endif
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -135,7 +137,11 @@ getent group wireshark >/dev/null || groupadd wireshark
|
|||||||
%{_bindir}/dftest
|
%{_bindir}/dftest
|
||||||
%{_bindir}/capinfos
|
%{_bindir}/capinfos
|
||||||
%{_bindir}/randpkt
|
%{_bindir}/randpkt
|
||||||
|
%if 0%{?suse_version} > 1130
|
||||||
%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
|
||||||
|
%{_bindir}/dumpcap
|
||||||
|
%endif
|
||||||
%{_bindir}/rawshark
|
%{_bindir}/rawshark
|
||||||
%{_libdir}/lib*.so.*
|
%{_libdir}/lib*.so.*
|
||||||
%{_libdir}/wireshark
|
%{_libdir}/wireshark
|
||||||
|
Loading…
x
Reference in New Issue
Block a user