diff --git a/rpcbind.changes b/rpcbind.changes index 67b077e..a46a881 100644 --- a/rpcbind.changes +++ b/rpcbind.changes @@ -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 diff --git a/rpcbind.spec b/rpcbind.spec index 48cc08b..cfc118c 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -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 - Vincent ROQUETA - %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