source: networking/netprogs/rpcbind.xml

trunk
Last change on this file was 133eab2, checked in by Bruce Dubbs <bdubbs@…>, 2 months ago

Initial LFS 12.1 tags

  • Property mode set to 100644
File size: 7.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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-dl;/rpcbind/rpcbind-&rpcbind-version;.tar.bz2">
8 <!ENTITY rpcbind-download-ftp " ">
9 <!ENTITY rpcbind-md5sum "2d84ebbb7d6fb1fc3566d2d4b37f214b">
10 <!ENTITY rpcbind-size "124 KB">
11 <!ENTITY rpcbind-buildsize "1.6 MB">
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
19 <title>rpcbind-&rpcbind-version;</title>
20
21 <indexterm zone="rpcbind">
22 <primary sortas="a-rpcbind">rpcbind</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to rpcbind</title>
27
28 <para>
29 The <application>rpcbind</application> program is a replacement for
30 <application>portmap</application>. It is required for import or export
31 of Network File System (NFS) shared directories.
32 </para>
33
34 &lfs121_checked;
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&rpcbind-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&rpcbind-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &rpcbind-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &rpcbind-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &rpcbind-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &rpcbind-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
71 <itemizedlist spacing="compact">
72 <listitem>
73 <para>
74 Required patch:
75 <ulink url="&patch-root;/rpcbind-&rpcbind-version;-vulnerability_fixes-1.patch"/>
76 </para>
77 </listitem>
78 </itemizedlist>
79
80 <bridgehead renderas="sect3">rpcbind Dependencies</bridgehead>
81
82 <bridgehead renderas="sect4">Required</bridgehead>
83 <para role="required">
84 <xref linkend="libtirpc"/>
85 </para>
86
87
88 </sect2>
89
90 <sect2 role="installation">
91 <title>Installation of rpcbind</title>
92
93 <para revision="systemd">
94 There should be a dedicated user and group to take control
95 of the <command>rpcbind</command> daemon after it is started.
96 Issue the following commands as the
97 <systemitem class="username">root</systemitem> user:
98 </para>
99
100<screen role="root" revision="systemd"><userinput>groupadd -g 28 rpc &amp;&amp;
101useradd -c "RPC Bind Daemon Owner" -d /dev/null -g rpc \
102 -s /bin/false -u 28 rpc</userinput></screen>
103
104 <!-- Packages should adapt to standards, not the other way around -->
105 <para>
106 In order to get <application>rpcbind</application> to work
107 properly, first fix the package to use correct service name:
108 </para>
109
110<screen><userinput>sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c</userinput></screen>
111
112 <para>
113 Install <application>rpcbind</application> by running the following
114 commands:
115 </para>
116
117<!-- Previously, there were switches for bindir= and sbindir= pointing to /sbin
118 However, with a DESTDIR= install after merged-/usr changes, I think we can
119 just run bindir=/usr/sbin to get rpcinfo in /usr/sbin, and leave sbindir=
120 alone. -renodr -->
121
122<screen revision="sysv"><userinput>patch -Np1 -i ../rpcbind-&rpcbind-version;-vulnerability_fixes-1.patch &amp;&amp;
123
124./configure --prefix=/usr \
125 --bindir=/usr/sbin \
126 --with-rpcuser=root \
127 --enable-warmstarts \
128 --without-systemdsystemunitdir &amp;&amp;
129make</userinput></screen>
130
131<screen revision="systemd"><userinput>patch -Np1 -i ../rpcbind-&rpcbind-version;-vulnerability_fixes-1.patch &amp;&amp;
132
133./configure --prefix=/usr \
134 --bindir=/usr/sbin \
135 --enable-warmstarts \
136 --with-rpcuser=rpc &amp;&amp;
137make</userinput></screen>
138
139 <para>
140 This package does not come with a test suite.
141 </para>
142
143 <para>
144 Now, as the <systemitem class="username">root</systemitem> user:
145 </para>
146
147<screen role="root"><userinput>make install</userinput></screen>
148
149 </sect2>
150
151 <sect2 role="commands">
152 <title>Command Explanations</title>
153
154 <para revision="sysv">
155 <command>--with-rpcuser=root</command>: This works
156 around an error in the configure script.
157 </para>
158
159 <para revision="sysv">
160 <command>--without-systemdsystemunitdir</command>:
161 This version of BLFS does not support systemd.
162 </para>
163
164 <para revision="systemd">
165 <parameter>--with-rpcuser=rpc</parameter>:
166 This switch is used so the <command>rpcbind</command> daemon will
167 run as an unprivileged user instead of the
168 <systemitem class="username">root</systemitem> user.
169 </para>
170
171 </sect2>
172
173 <sect2 role="configuration">
174 <title>Configuring rpcbind</title>
175
176 <sect3 id="rpcbind-init">
177 <title><phrase revision="sysv">Boot Script</phrase>
178 <phrase revision="systemd">Systemd Unit</phrase></title>
179
180 <para revision="sysv">
181 Install the
182 <phrase revision="sysv"><filename>/etc/rc.d/init.d/rpcbind</filename>
183 init script</phrase> included in the
184 <xref linkend="bootscripts"/> package.
185 </para>
186
187 <para revision="systemd">
188 Enable the systemd unit installed with the package:
189 </para>
190
191 <indexterm zone="rpcbind rpcbind-init" revision="sysv">
192 <primary sortas="f-rpcbind">rpcbind</primary>
193 </indexterm>
194
195<screen role="root" revision="sysv"><userinput>make install-rpcbind</userinput></screen>
196
197<screen role="root" revision="systemd"><userinput>systemctl enable rpcbind</userinput></screen>
198
199 </sect3>
200
201 </sect2>
202
203 <sect2 role="content">
204 <title>Contents</title>
205
206 <segmentedlist>
207 <segtitle>Installed Program</segtitle>
208 <segtitle>Installed Libraries</segtitle>
209 <segtitle>Installed Directories</segtitle>
210
211 <seglistitem>
212 <seg>rpcbind and rpcinfo</seg>
213 <seg>None</seg>
214 <seg>None</seg>
215 </seglistitem>
216 </segmentedlist>
217
218 <variablelist>
219 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
220 <?dbfo list-presentation="list"?>
221 <?dbhtml list-presentation="table"?>
222
223 <varlistentry id="rpcbind-prog">
224 <term><command>rpcbind</command></term>
225 <listitem>
226 <para>
227 is a server that converts RPC program numbers into universal
228 addresses. It must be running on the host to be able to make RPC
229 calls on a server on that machine
230 </para>
231 <indexterm zone="rpcbind rpcbind-prog">
232 <primary sortas="b-rpcbind">rpcbind</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 <varlistentry id="rpcinfo">
238 <term><command>rpcinfo</command></term>
239 <listitem>
240 <para>
241 makes an RPC call to an RPC server and reports data according
242 to the requested options
243 </para>
244 <indexterm zone="rpcbind rpcinfo">
245 <primary sortas="b-rpcinfo">rpcinfo</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 </variablelist>
251
252 </sect2>
253
254</sect1>
Note: See TracBrowser for help on using the repository browser.