1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = System/Daemons
11 url = http://nfsv4.bullopensource.org
13 summary = Universal Addresses to RPC Program Number Mapper
16 The rpcbind utility is a server that converts RPC program numbers into
17 universal addresses. It must be running on the host to be able to make
18 RPC calls on a server on that machine.
21 source_dl = http://downloads.sourceforge.net/rpcbind/
22 sources = %{thisapp}.tar.bz2
40 configure_options += \
42 --with-statedir=/var/lib/rpcbind \
47 mkdir -pv %{BUILDROOT}%{sbindir}
49 mv -v %{BUILDROOT}{%{bindir},%{sbindir}}/rpcbind
50 mv -v %{BUILDROOT}{%{bindir},%{sbindir}}/rpcinfo
52 mkdir -pv -m 700 %{BUILDROOT}/var/lib/rpcbind
53 chown rpc:rpc %{BUILDROOT}/var/lib/rpcbind
58 getent group rpc >/dev/null || groupadd -r -g 32 rpc
59 getent passwd rpc >/dev/null || useradd -r -g 32 \
60 -c "Rpcbind Daemon" -d /var/lib/rpcbind -s /sbin/nologin rpc
78 systemctl daemon-reload >/dev/null 2>&1 || :
79 systemctl --no-reload enable rpcbind.service >/dev/null 2>&1 || :
83 systemctl daemon-reload >/dev/null 2>&1 || :
84 systemctl try-restart rpcbind.service >/dev/null 2>&1 || :
88 systemctl --no-reload disable rpcbind.service >/dev/null 2>&1 || :
89 systemctl stop rpcbind.service >/dev/null 2>&1 || :
93 systemctl daemon-reload >/dev/null 2>&1 || :
97 package %{name}-debuginfo