Dominique Leuenberger 2017-05-10 18:32:26 +00:00 committed by Git OBS Bridge
commit 547d7fad3b
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 2 13:58:57 CEST 2017 - kukuk@suse.de
- Adjust for new system user/group RPMs
-------------------------------------------------------------------
Tue Nov 22 08:27:10 CET 2016 - kukuk@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package rpcbind
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -36,6 +36,9 @@ BuildRequires: tcpd-devel
BuildRequires: pkgconfig(libsystemd)
PreReq: %fillup_prereq
Requires(pre): /usr/sbin/useradd
%if 0%{?suse_version} >= 1330
Requires(pre): group(nobody)
%endif
Patch1: 0001-systemd-unit-files.patch
Patch2: 0002-handle_reply-Don-t-use-the-xp_auth-pointer-directly.patch
Patch3: 0003-Delete-the-unix-socket-only-if-we-have-created-it.patch
@ -115,7 +118,7 @@ rm -rf $RPM_BUILD_ROOT
%service_add_pre %{name}.service %{name}.socket
# Add "rpc" user
getent passwd rpc >/dev/null || /usr/sbin/useradd -r -g nogroup -d /var/lib/empty -s /sbin/nologin -c "user for rpcbind" rpc
getent passwd rpc >/dev/null || /usr/sbin/useradd -r -g nobody -d /var/lib/empty -s /sbin/nologin -c "user for rpcbind" rpc
exit 0
%preun