1 Summary: Universal addresses to RPC program number mapper
7 Source0: http://nfsv4.bullopensource.org/tarballs/rpcbind/%{name}-%{version}.tar.bz2
8 # Source0-md5: 280539aa1f8975b1318690cd903f858a
10 Source2: %{name}.sysconfig
11 Patch0: %{name}-format.patch
12 Patch1: %{name}-make-man.patch
13 Patch2: %{name}-debug.patch
14 Patch3: %{name}-warmstart.patch
15 Patch4: %{name}-rpcuser.patch
16 Patch5: %{name}-libwrap.patch
17 Patch6: %{name}-syslog.patch
18 URL: http://nfsv4.bullopensource.org/doc/tirpc_rpcbind.php
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: libtirpc-devel
22 BuildRequires: libwrap-devel
23 BuildRequires: rpmbuild(macros) >= 1.228
24 Requires(post,preun): /sbin/chkconfig
25 Requires: /sbin/chkconfig
26 Requires: rc-scripts >= 0.4.1.6
29 Conflicts: nfs-utils < 1.1.0-0.rc2.1
30 Conflicts: quota-rquotad < 1:3.14-4
31 Conflicts: flixengine < 8.0.8.2-1
32 Conflicts: clusternfs < 3.0-0.rc2.3
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 The rpcbind utility is a server that converts RPC program numbers into
38 universal addresses. It must be running on the host to be able to make
39 RPC calls on a server on that machine.
56 cp -f /usr/share/automake/config.sub .
60 --with-statedir=/var/lib/rpcbind \
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},/etc/{sysconfig,rc.d/init.d}} \
67 $RPM_BUILD_ROOT{%{_mandir}/man8,%{_var}/lib/%{name}}
69 install src/rpcbind $RPM_BUILD_ROOT/sbin
70 install src/rpcinfo $RPM_BUILD_ROOT%{_sbindir}
72 install man/{rpcbind,rpcinfo}.8 $RPM_BUILD_ROOT%{_mandir}/man8
74 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/rpcbind
75 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rpcbind
78 rm -rf $RPM_BUILD_ROOT
81 %useradd -u 22 -d /usr/share/empty -s /bin/false -c "Portmapper RPC User" -g nobody rpc
84 /sbin/chkconfig --add rpcbind
85 %service rpcbind restart
88 if [ "$1" = "0" ]; then
93 if [ "$1" = "0" ]; then
94 %service -q rpcbind stop
95 /sbin/chkconfig --del rpcbind
99 %defattr(644,root,root,755)
100 %doc AUTHORS ChangeLog NEWS README
101 %attr(754,root,root) /etc/rc.d/init.d/rpcbind
102 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpcbind
103 %attr(755,root,root) /sbin/*
104 %attr(755,root,root) %{_sbindir}/*
106 %dir %attr(700,rpc,root) %{_var}/lib/%{name}