[d40e1a4] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY rpcbind-download-http "&sourceforge-repo;/rpcbind/rpcbind-&rpcbind-version;.tar.bz2">
|
---|
| 8 | <!ENTITY rpcbind-download-ftp " ">
|
---|
[9fe905c] | 9 | <!ENTITY rpcbind-md5sum "c8875246b2688a1adfbd6ad43480278d">
|
---|
| 10 | <!ENTITY rpcbind-size "120 KB">
|
---|
| 11 | <!ENTITY rpcbind-buildsize "2 MB">
|
---|
[d40e1a4] | 12 | <!ENTITY rpcbind-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="rpcbind" xreflabel="rpcbind-&rpcbind-version;">
|
---|
| 16 | <?dbhtml filename="rpcbind.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>rpcbind-&rpcbind-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="rpcbind">
|
---|
| 26 | <primary sortas="a-rpcbind">rpcbind</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to rpcbind</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>rpcbind</application> program is a replacement for
|
---|
| 33 | <application>portmap</application>. It is required for import or export
|
---|
| 34 | of Network File System (NFS) shared directories. </para>
|
---|
| 35 |
|
---|
[568427f] | 36 | &lfs7a_checked;
|
---|
[d40e1a4] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&rpcbind-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&rpcbind-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &rpcbind-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &rpcbind-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &rpcbind-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &rpcbind-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
[a4b8fa34] | 60 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 61 | <itemizedlist spacing="compact">
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Required patch:
|
---|
| 65 | <ulink url="&patch-root;/rpcbind-&rpcbind-version;-tirpc_fix-1.patch"/>
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
[d40e1a4] | 70 | <bridgehead renderas="sect3">rpcbind Dependencies</bridgehead>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 73 | <para role="required">
|
---|
| 74 | <xref linkend="libtirpc"/>
|
---|
| 75 | </para>
|
---|
| 76 |
|
---|
| 77 | <para condition="html" role="usernotes">User Notes:
|
---|
| 78 | <ulink url="&blfs-wiki;/rpcbind"/></para>
|
---|
| 79 |
|
---|
| 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2 role="installation">
|
---|
| 83 | <title>Installation of rpcbind</title>
|
---|
| 84 |
|
---|
[7b478500] | 85 | <para revision="systemd">
|
---|
| 86 | There should be a dedicated user and group to take control
|
---|
| 87 | of the <command>rpcbind</command> daemon after it is started.
|
---|
| 88 | Issue the following commands as the
|
---|
| 89 | <systemitem class="username">root</systemitem> user:
|
---|
| 90 | </para>
|
---|
| 91 |
|
---|
| 92 | <screen role="root" revision="systemd"><userinput>groupadd -g 28 rpc &&
|
---|
| 93 | useradd -c "RPC Bind Daemon Owner" -d /dev/null -g rpc \
|
---|
| 94 | -s /bin/false -u 28 rpc</userinput></screen>
|
---|
| 95 |
|
---|
[e0ac6b0] | 96 | <!-- Packages should adapt to standards, not the other way around -->
|
---|
[ed6a289c] | 97 | <para>In order to get <application>rpcbind</application> to work
|
---|
[79d191ee] | 98 | properly, first fix the package to use correct service name:</para>
|
---|
[ed6a289c] | 99 |
|
---|
[9fe905c] | 100 | <screen><userinput>sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c &&</userinput></screen>
|
---|
[ed6a289c] | 101 |
|
---|
[d40e1a4] | 102 | <para>Install <application>rpcbind</application> by running the following
|
---|
| 103 | commands:</para>
|
---|
| 104 |
|
---|
[3c7bd00] | 105 | <screen revision="sysv"><userinput>patch -Np1 -i ../rpcbind-&rpcbind-version;-tirpc_fix-1.patch &&
|
---|
[a4b8fa34] | 106 |
|
---|
| 107 | ./configure --prefix=/usr \
|
---|
[522641a] | 108 | --bindir=/sbin \
|
---|
| 109 | --with-rpcuser=root \
|
---|
| 110 | --without-systemdsystemunitdir &&
|
---|
[d40e1a4] | 111 | make</userinput></screen>
|
---|
| 112 |
|
---|
[3c7bd00] | 113 | <screen revision="systemd"><userinput>patch -Np1 -i ../rpcbind-&rpcbind-version;-tirpc_fix-1.patch &&
|
---|
| 114 |
|
---|
[7b478500] | 115 | ./configure --prefix=/usr \
|
---|
| 116 | --bindir=/sbin \
|
---|
| 117 | --with-rpcuser=rpc &&
|
---|
[3c7bd00] | 118 | make</userinput></screen>
|
---|
| 119 |
|
---|
[d40e1a4] | 120 | <para>This package does not come with a test suite.</para>
|
---|
| 121 |
|
---|
| 122 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 123 |
|
---|
| 124 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 125 |
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
[67f5f160] | 128 | <sect2 role="commands">
|
---|
| 129 | <title>Command Explanations</title>
|
---|
| 130 |
|
---|
[7b478500] | 131 | <para revision="sysv"><command>--with-rpcuser=root</command>: This works
|
---|
| 132 | around an error in the configure script.</para>
|
---|
[67f5f160] | 133 |
|
---|
[3c7bd00] | 134 | <para revision="sysv"><command>--without-systemdsystemunitdir</command>:
|
---|
| 135 | BLFS does not support systemd.</para>
|
---|
[522641a] | 136 |
|
---|
[7b478500] | 137 | <para revision="systemd"><parameter>--with-rpcuser=rpc</parameter>:
|
---|
| 138 | This switch is used so the <command>rpcbind</command> daemon will
|
---|
| 139 | run as an unprivileged user instead of the
|
---|
| 140 | <systemitem class="username">root</systemitem> user.</para>
|
---|
| 141 |
|
---|
[67f5f160] | 142 | </sect2>
|
---|
| 143 |
|
---|
[d40e1a4] | 144 | <sect2 role="configuration">
|
---|
| 145 | <title>Configuring rpcbind</title>
|
---|
| 146 |
|
---|
| 147 | <sect3 id="rpcbind-init">
|
---|
[7b478500] | 148 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 149 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
| 150 |
|
---|
| 151 | <para>Install the
|
---|
| 152 | <phrase revision="sysv"><filename>/etc/rc.d/init.d/rpcbind</filename>
|
---|
| 153 | init script</phrase>
|
---|
| 154 | <phrase revision="systemd"><filename>rpcbind.service</filename>
|
---|
| 155 | unit</phrase> included in the
|
---|
| 156 | <xref linkend="bootscripts" revision="sysv"/>
|
---|
[3c7bd00] | 157 | <xref linkend="systemd-units" revision="systemd"/> package.</para>
|
---|
[d40e1a4] | 158 |
|
---|
[7b478500] | 159 | <indexterm zone="rpcbind rpcbind-init" revision="sysv">
|
---|
[79d191ee] | 160 | <primary sortas="f-rpcbind">rpcbind</primary>
|
---|
[d40e1a4] | 161 | </indexterm>
|
---|
| 162 |
|
---|
[7b478500] | 163 | <indexterm zone="rpcbind rpcbind-init" revision="systemd">
|
---|
| 164 | <primary sortas="f-rpcbind">rpcbind.service</primary>
|
---|
| 165 | </indexterm>
|
---|
| 166 |
|
---|
[d40e1a4] | 167 | <screen role="root"><userinput>make install-rpcbind</userinput></screen>
|
---|
| 168 |
|
---|
| 169 | </sect3>
|
---|
| 170 |
|
---|
| 171 | </sect2>
|
---|
| 172 |
|
---|
| 173 | <sect2 role="content">
|
---|
| 174 | <title>Contents</title>
|
---|
| 175 |
|
---|
| 176 | <segmentedlist>
|
---|
| 177 | <segtitle>Installed Program</segtitle>
|
---|
| 178 | <segtitle>Installed Libraries</segtitle>
|
---|
| 179 | <segtitle>Installed Directories</segtitle>
|
---|
| 180 |
|
---|
| 181 | <seglistitem>
|
---|
| 182 | <seg>rpcbind and rpcinfo</seg>
|
---|
| 183 | <seg>None</seg>
|
---|
| 184 | <seg>None</seg>
|
---|
| 185 | </seglistitem>
|
---|
| 186 | </segmentedlist>
|
---|
| 187 |
|
---|
| 188 | <variablelist>
|
---|
| 189 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 190 | <?dbfo list-presentation="list"?>
|
---|
| 191 | <?dbhtml list-presentation="table"?>
|
---|
| 192 |
|
---|
| 193 | <varlistentry id="rpcbind-prog">
|
---|
| 194 | <term><command>rpcbind</command></term>
|
---|
| 195 | <listitem>
|
---|
| 196 | <para>is a server that converts RPC program numbers into universal
|
---|
| 197 | addresses. It must be running on the host to be able to make RPC
|
---|
| 198 | calls on a server on that machine. </para>
|
---|
| 199 | <indexterm zone="rpcbind rpcbind-prog">
|
---|
| 200 | <primary sortas="b-rpcbind">rpcbind</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
| 205 | <varlistentry id="rpcinfo">
|
---|
| 206 | <term><command>rpcinfo</command></term>
|
---|
| 207 | <listitem>
|
---|
| 208 | <para>makes an RPC call to an RPC server and reports data according
|
---|
| 209 | to the requested options. </para>
|
---|
| 210 | <indexterm zone="rpcbind rpcinfo">
|
---|
| 211 | <primary sortas="b-rpcinfo">rpcinfo</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
| 215 |
|
---|
| 216 | </variablelist>
|
---|
| 217 |
|
---|
| 218 | </sect2>
|
---|
| 219 |
|
---|
| 220 | </sect1>
|
---|