!80 [sync] PR-77: 修改安装过程中告警(warning: group wireshark does not exist - using root)的问题

From: @openeuler-sync-bot 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2022-03-10 03:40:39 +00:00 committed by Gitee
commit 82bfa8eb30
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -5,7 +5,7 @@
Summary: Network traffic analyzer Summary: Network traffic analyzer
Name: wireshark Name: wireshark
Version: 3.6.0 Version: 3.6.0
Release: 2 Release: 3
Epoch: 1 Epoch: 1
License: GPL+ License: GPL+
Url: http://www.wireshark.org/ Url: http://www.wireshark.org/
@ -145,6 +145,9 @@ install -Dpm 644 %{SOURCE3} %{buildroot}%{_sysusersdir}/%{name}.conf
touch %{buildroot}%{_bindir}/%{name} touch %{buildroot}%{_bindir}/%{name}
find %{buildroot} -type f -name "*.la" -delete find %{buildroot} -type f -name "*.la" -delete
%pre
getent group wireshark >/dev/null || groupadd -r wireshark
exit 0
#%post #%post
#%{?ldconfig} #%{?ldconfig}
#if [ -S /run/udev/control ]; then #if [ -S /run/udev/control ]; then
@ -192,6 +195,9 @@ find %{buildroot} -type f -name "*.la" -delete
%{_mandir}/man?/* %{_mandir}/man?/*
%changelog %changelog
* Tue Feb 15 2022 xu_ping <xuping33n@huawei.com> - 3.6.0-3
- fix install warning group wireshark does not exist -using root
* Wed Jan 19 2022 Chen Chen <chen_aka_jan@163.com> - 3.6.0-2 * Wed Jan 19 2022 Chen Chen <chen_aka_jan@163.com> - 3.6.0-2
- fix update error for add wireshark-cli Provides&Obsoletes - fix update error for add wireshark-cli Provides&Obsoletes