1 Summary: Universal addresses to RPC program number mapper
2 Summary(pl.UTF-8): Demon odwzorowujący adresy uniwersalne na numery programów RPC
8 Source0: http://dl.sourceforge.net/rpcbind/%{name}-%{version}.tar.bz2
9 # Source0-md5: 1a77ddb1aaea8099ab19c351eeb26316
11 Source2: %{name}.sysconfig
12 Source3: %{name}.service
13 Source4: %{name}.socket
14 Patch0: %{name}-libwrap.patch
15 Patch1: %{name}-syslog.patch
16 Patch2: %{name}-sunrpc.patch
17 Patch3: %{name}-usage.patch
18 Patch4: %{name}-SO_REUSEADDR.patch
19 Patch5: %{name}-nofork.patch
20 Patch6: %{name}-tcp-addrs.patch
21 # http://nfsv4.bullopensource.org/doc/tirpc_rpcbind.php
22 URL: http://sourceforge.net/projects/rpcbind/
23 BuildRequires: autoconf
24 BuildRequires: automake
25 BuildRequires: libtirpc-devel >= 1:0.1.10
26 BuildRequires: libtool
27 BuildRequires: libwrap-devel
28 BuildRequires: rpmbuild(macros) >= 1.623
29 Requires(post,preun): /sbin/chkconfig
30 Requires: /sbin/chkconfig
31 Requires: rc-scripts >= 0.4.1.6
32 Provides: portmap = 8.0
35 Conflicts: clusternfs < 3.0-0.rc2.3
36 Conflicts: flixengine < 8.0.8.2-1
37 Conflicts: nfs-utils < 1.1.0-0.rc2.1
38 Conflicts: quota-rquotad < 1:3.14-4
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 The rpcbind utility is a server that converts RPC program numbers into
43 universal addresses. It must be running on the host to be able to make
44 RPC calls on a server on that machine.
46 %description -l pl.UTF-8
47 Narzędzie rpcbind to serwer konwertujący numery programów RPC na
48 adresy uniwersalne. Musi działać na maszynie, aby można było wykonywać
49 wywołania RPC na serwerze na tej maszynie.
52 Summary: systemd units for rpcbind
53 Summary(pl.UTF-8): Jednostki systemd dla demona rpcbind
55 Requires: %{name} = %{version}-%{release}
57 Requires: systemd-units
60 systemd units for rpcbind.
62 %description systemd -l pl.UTF-8
63 Jednostki systemd dla demona rpcbind.
84 --with-statedir=/var/lib/rpcbind \
89 rm -rf $RPM_BUILD_ROOT
90 install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},/etc/{sysconfig,rc.d/init.d}} \
91 $RPM_BUILD_ROOT{%{_mandir}/man8,%{_var}/lib/%{name},%{systemdunitdir}}
93 install src/rpcbind $RPM_BUILD_ROOT/sbin
94 install src/rpcinfo $RPM_BUILD_ROOT%{_sbindir}
96 install man/{rpcbind,rpcinfo}.8 $RPM_BUILD_ROOT%{_mandir}/man8
98 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/rpcbind
99 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rpcbind
101 install %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/rpcbind.service
102 install %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/rpcbind.socket
105 rm -rf $RPM_BUILD_ROOT
108 %useradd -u 22 -d /usr/share/empty -s /bin/false -c "Portmapper RPC User" -g nobody rpc
111 /sbin/chkconfig --add rpcbind
112 %service rpcbind restart
115 if [ "$1" = "0" ]; then
120 if [ "$1" = "0" ]; then
121 %service -q rpcbind stop
122 /sbin/chkconfig --del rpcbind
126 %systemd_post rpcbind.service
129 %systemd_preun rpcbind.service
134 %triggerpostun -- %{name} < 0.2.0-4
135 if [ -f /etc/sysconfig/rpcbind ]; then
136 . /etc/sysconfig/rpcbind
137 [ "$RPCBIND_VERBOSE" == "no" ] || RPCBIND_OPTIONS="-l"
138 [ "$RPCBIND_INSECURE" == "yes" ] && RPCBIND_OPTIONS="$RPCBIND_OPTIONS -i"
139 for a in $RPCBIND_ADDRESSES ; do
140 RPCBIND_OPTIONS="$RPCBIND_OPTIONS -h $a"
142 [ -z "$RPCBIND_OPTIONS" ] && exit 0
143 cp -f /etc/sysconfig/rpcbind /etc/sysconfig/rpcbind.rpmsave
144 echo "RPCBIND_OPTIONS=\"$RPCBIND_OPTIONS\"" >> /etc/sysconfig/rpcbind
148 %defattr(644,root,root,755)
149 %doc AUTHORS ChangeLog NEWS README
150 %attr(754,root,root) /etc/rc.d/init.d/rpcbind
151 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpcbind
152 %attr(755,root,root) /sbin/*
153 %attr(755,root,root) %{_sbindir}/*
155 %dir %attr(700,rpc,root) %{_var}/lib/%{name}
158 %defattr(644,root,root,755)
159 %{systemdunitdir}/rpcbind.service
160 %{systemdunitdir}/rpcbind.socket