Accepting request 224566 from home:coolo:branches:openSUSE:Factory

- prereq useradd - called from %pre

OBS-URL: https://build.opensuse.org/request/show/224566
OBS-URL: https://build.opensuse.org/package/show/network/rpcbind?expand=0&rev=37
This commit is contained in:
Marcus Meissner 2014-03-04 08:34:23 +00:00 committed by Git OBS Bridge
parent 13c4303162
commit 46e2c9290d
2 changed files with 7 additions and 8 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 4 06:39:39 UTC 2014 - coolo@suse.com
- prereq useradd - called from %pre
-------------------------------------------------------------------
Wed Feb 26 16:10:49 CET 2014 - kukuk@suse.de

View File

@ -33,6 +33,7 @@ BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: tcpd-devel
PreReq: %fillup_prereq
Requires(pre): /usr/sbin/useradd
# The next three are from upstream, applied directly on top of rc4.
Patch0: 0001-Fix-building-one-systems-w-out-nss.h.patch
@ -73,13 +74,6 @@ on various transports supported by the TI-RPC. This includes TCP and
UDP over IPv6. Moreover, rpcbind provides additional functions in
regards to portmap.
Authors:
--------
Gilles Quillard <gilles.quillard@bull.net>
Vincent ROQUETA <vincent.roqueta@ext.bull.net>
%prep
%setup -q
cp %{SOURCE4} .
@ -145,7 +139,7 @@ rm -rf $RPM_BUILD_ROOT
%service_add_pre %{name}.service %{name}.socket
# Add "rpc" user
getent passwd rpc >/dev/null || useradd -r -g nogroup -d /var/lib/emptry -s /sbin/nologin -c "user for rpcbind" rpc
getent passwd rpc >/dev/null || /usr/sbin/useradd -r -g nogroup -d /var/lib/emptry -s /sbin/nologin -c "user for rpcbind" rpc
exit 0
%preun