Accepting request 516895 from home:eeich:branches:network:cluster

- Fix build.

OBS-URL: https://build.opensuse.org/request/show/516895
OBS-URL: https://build.opensuse.org/package/show/network:cluster/conman?expand=0&rev=10
This commit is contained in:
Egbert Eich 2017-08-14 15:51:06 +00:00 committed by Git OBS Bridge
parent f1669729f3
commit 11b0448988

View File

@ -54,6 +54,7 @@ Source1: %{name}.service
BuildRequires: systemd
BuildRequires: systemd-rpm-macros
%{?systemd_requires}
Requires(pre): shadow
%endif
Patch1: conman-suse-fix-expect-scripts.patch
@ -136,12 +137,12 @@ fi
%if 0%{?have_systemd}
%pre
%service_add_pre conman.service
%endif
%define conman_home "%_localstatedir%_rundir/conman"
%define conman_descr "Connection Manager service"
getent group %conman_g >/dev/null || groupadd -r %conman_g
getent passwd %conman_u >/dev/null || useradd -r -g %conman_g -d %conman_home -s /bin/false -c %conman_descr %conman_u
exit 0
%endif
%preun
%if 0%{?have_systemd}