diff options
Diffstat (limited to 'packaging/rpm')
-rw-r--r-- | packaging/rpm/SPECS/wireshark.spec.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packaging/rpm/SPECS/wireshark.spec.in b/packaging/rpm/SPECS/wireshark.spec.in index ad180e290f..d9cba1e5f2 100644 --- a/packaging/rpm/SPECS/wireshark.spec.in +++ b/packaging/rpm/SPECS/wireshark.spec.in @@ -246,10 +246,16 @@ desktop-file-validate %{buildroot}/usr/share/applications/wireshark.desktop %clean rm -rf $RPM_BUILD_ROOT -%if %{use_wireshark_group} %pre +%if %{use_wireshark_group} getent group wireshark >/dev/null || groupadd -r wireshark %endif +# If we have a pre-alternatives wireshark binary out there, get rid of it. +# (With 'alternatives' %{_bindir}/wireshark should be a symlink.) +if [ -f %{_bindir}/wireshark ] +then + rm -f %{_bindir}/wireshark +fi %post -p /sbin/ldconfig |