Summary: Universal addresses to RPC program number mapper Summary(pl.UTF-8): Demon odwzorowujący adresy uniwersalne na numery programów RPC Name: rpcbind Version: 0.2.0 Release: 6 License: GPL Group: Daemons Source0: http://dl.sourceforge.net/rpcbind/%{name}-%{version}.tar.bz2 # Source0-md5: 1a77ddb1aaea8099ab19c351eeb26316 Source1: %{name}.init Source2: %{name}.sysconfig Source3: %{name}.service Source4: %{name}.socket Patch0: %{name}-libwrap.patch Patch1: %{name}-syslog.patch Patch2: %{name}-sunrpc.patch Patch3: %{name}-usage.patch Patch4: %{name}-SO_REUSEADDR.patch Patch5: %{name}-nofork.patch Patch6: %{name}-tcp-addrs.patch # http://nfsv4.bullopensource.org/doc/tirpc_rpcbind.php URL: http://sourceforge.net/projects/rpcbind/ BuildRequires: autoconf BuildRequires: automake BuildRequires: libtirpc-devel >= 1:0.1.10 BuildRequires: libtool BuildRequires: libwrap-devel BuildRequires: rpmbuild(macros) >= 1.623 Requires(post,preun): /sbin/chkconfig Requires: /sbin/chkconfig Requires: rc-scripts >= 0.4.1.6 Requires: systemd-units >= 0.38 Provides: portmap = 8.0 Provides: user(rpc) Obsoletes: portmap Obsoletes: rpcbind-systemd Conflicts: clusternfs < 3.0-0.rc2.3 Conflicts: flixengine < 8.0.8.2-1 Conflicts: nfs-utils < 1.1.0-0.rc2.1 Conflicts: quota-rquotad < 1:3.14-4 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The rpcbind utility is a server that converts RPC program numbers into universal addresses. It must be running on the host to be able to make RPC calls on a server on that machine. %description -l pl.UTF-8 Narzędzie rpcbind to serwer konwertujący numery programów RPC na adresy uniwersalne. Musi działać na maszynie, aby można było wykonywać wywołania RPC na serwerze na tej maszynie. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %build %{__libtoolize} %{__aclocal} %{__autoheader} %{__autoconf} %{__automake} %configure \ --enable-libwrap \ --enable-warmstarts \ --with-statedir=/var/lib/rpcbind \ --with-rpcuser=rpc %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},/etc/{sysconfig,rc.d/init.d}} \ $RPM_BUILD_ROOT{%{_mandir}/man8,%{_var}/lib/%{name},%{systemdunitdir}} install src/rpcbind $RPM_BUILD_ROOT/sbin install src/rpcinfo $RPM_BUILD_ROOT%{_sbindir} install man/{rpcbind,rpcinfo}.8 $RPM_BUILD_ROOT%{_mandir}/man8 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/rpcbind install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rpcbind install %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/rpcbind.service install %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/rpcbind.socket %clean rm -rf $RPM_BUILD_ROOT %pre %useradd -u 22 -d /usr/share/empty -s /bin/false -c "Portmapper RPC User" -g nobody rpc %post /sbin/chkconfig --add rpcbind %service rpcbind restart %systemd_post rpcbind.service %postun if [ "$1" = "0" ]; then %userremove rpc fi %systemd_reload %preun if [ "$1" = "0" ]; then %service -q rpcbind stop /sbin/chkconfig --del rpcbind fi %systemd_preun rpcbind.service %triggerpostun -- %{name} < 0.2.0-5 if [ -f /etc/sysconfig/rpcbind ]; then . /etc/sysconfig/rpcbind [ "$RPCBIND_VERBOSE" == "no" ] || RPCBIND_OPTIONS="-l" [ "$RPCBIND_INSECURE" == "yes" ] && RPCBIND_OPTIONS="$RPCBIND_OPTIONS -i" for a in $RPCBIND_ADDRESSES ; do RPCBIND_OPTIONS="$RPCBIND_OPTIONS -h $a" done [ -z "$RPCBIND_OPTIONS" ] && exit 0 cp -f /etc/sysconfig/rpcbind /etc/sysconfig/rpcbind.rpmsave echo >>/etc/sysconfig/rpcbind echo "# Added by rpm trigger" >>/etc/sysconfig/rpcbind echo "RPCBIND_OPTIONS=\"$RPCBIND_OPTIONS\"" >> /etc/sysconfig/rpcbind fi %systemd_trigger rpcbind.service %files %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS README %attr(754,root,root) /etc/rc.d/init.d/rpcbind %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpcbind %attr(755,root,root) /sbin/* %attr(755,root,root) %{_sbindir}/* %{_mandir}/man8/*.8* %dir %attr(700,rpc,root) %{_var}/lib/%{name} %{systemdunitdir}/rpcbind.service %{systemdunitdir}/rpcbind.socket