source: networking/netprogs/rpcbind.xml@ ab4fdfc

12.1 ken/TL2024 lazarus plabs/newcss rahul/power-profiles-daemon trunk xry111/llvm18
Last change on this file since ab4fdfc was ab4fdfc, checked in by Pierre Labastie <pierre.labastie@…>, 5 months ago

Change all xml decl to encoding=utf-8

  • Property mode set to 100644
File size: 7.6 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[d40e1a4]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
[8dfc5c3]7 <!ENTITY rpcbind-download-http "&sourceforge-dl;/rpcbind/rpcbind-&rpcbind-version;.tar.bz2">
[d40e1a4]8 <!ENTITY rpcbind-download-ftp " ">
[d0987c01]9 <!ENTITY rpcbind-md5sum "2d84ebbb7d6fb1fc3566d2d4b37f214b">
[9c7bc2a]10 <!ENTITY rpcbind-size "124 KB">
[d0987c01]11 <!ENTITY rpcbind-buildsize "1.6 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
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
[b51fe6e]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>
[d40e1a4]33
[ddf1885b]34 &lfs120_checked;
[d40e1a4]35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
[b51fe6e]39 <para>
40 Download (HTTP): <ulink url="&rpcbind-download-http;"/>
41 </para>
[d40e1a4]42 </listitem>
43 <listitem>
[b51fe6e]44 <para>
45 Download (FTP): <ulink url="&rpcbind-download-ftp;"/>
46 </para>
[d40e1a4]47 </listitem>
48 <listitem>
[b51fe6e]49 <para>
50 Download MD5 sum: &rpcbind-md5sum;
51 </para>
[d40e1a4]52 </listitem>
53 <listitem>
[b51fe6e]54 <para>
55 Download size: &rpcbind-size;
56 </para>
[d40e1a4]57 </listitem>
58 <listitem>
[b51fe6e]59 <para>
60 Estimated disk space required: &rpcbind-buildsize;
61 </para>
[d40e1a4]62 </listitem>
63 <listitem>
[b51fe6e]64 <para>
65 Estimated build time: &rpcbind-time;
66 </para>
[d40e1a4]67 </listitem>
68 </itemizedlist>
[4df25bd0]69
[a4b8fa34]70 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
71 <itemizedlist spacing="compact">
72 <listitem>
73 <para>
74 Required patch:
[4df25bd0]75 <ulink url="&patch-root;/rpcbind-&rpcbind-version;-vulnerability_fixes-1.patch"/>
[a4b8fa34]76 </para>
77 </listitem>
78 </itemizedlist>
[4df25bd0]79
[d40e1a4]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
[7b478500]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
[e0ac6b0]104 <!-- Packages should adapt to standards, not the other way around -->
[b51fe6e]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>
[ed6a289c]109
[e6b0c4d]110<screen><userinput>sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c</userinput></screen>
[ed6a289c]111
[b51fe6e]112 <para>
113 Install <application>rpcbind</application> by running the following
114 commands:
115 </para>
[d40e1a4]116
[d6c4d88]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
[4df25bd0]122<screen revision="sysv"><userinput>patch -Np1 -i ../rpcbind-&rpcbind-version;-vulnerability_fixes-1.patch &amp;&amp;
[4bf60a36]123
[4df25bd0]124./configure --prefix=/usr \
[d6c4d88]125 --bindir=/usr/sbin \
[4df25bd0]126 --with-rpcuser=root \
127 --enable-warmstarts \
128 --without-systemdsystemunitdir &amp;&amp;
[d40e1a4]129make</userinput></screen>
130
[74c70faa]131<screen revision="systemd"><userinput>patch -Np1 -i ../rpcbind-&rpcbind-version;-vulnerability_fixes-1.patch &amp;&amp;
132
133./configure --prefix=/usr \
[d6c4d88]134 --bindir=/usr/sbin \
[74c70faa]135 --enable-warmstarts \
136 --with-rpcuser=rpc &amp;&amp;
[3c7bd00]137make</userinput></screen>
138
[b51fe6e]139 <para>
140 This package does not come with a test suite.
141 </para>
[d40e1a4]142
[b51fe6e]143 <para>
144 Now, as the <systemitem class="username">root</systemitem> user:
145 </para>
[d40e1a4]146
147<screen role="root"><userinput>make install</userinput></screen>
148
149 </sect2>
150
[67f5f160]151 <sect2 role="commands">
152 <title>Command Explanations</title>
153
[b51fe6e]154 <para revision="sysv">
155 <command>--with-rpcuser=root</command>: This works
156 around an error in the configure script.
157 </para>
[67f5f160]158
[b51fe6e]159 <para revision="sysv">
160 <command>--without-systemdsystemunitdir</command>:
161 This version of BLFS does not support systemd.
162 </para>
[522641a]163
[b51fe6e]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>
[7b478500]170
[67f5f160]171 </sect2>
172
[d40e1a4]173 <sect2 role="configuration">
174 <title>Configuring rpcbind</title>
175
176 <sect3 id="rpcbind-init">
[7b478500]177 <title><phrase revision="sysv">Boot Script</phrase>
178 <phrase revision="systemd">Systemd Unit</phrase></title>
179
[ff72c51d]180 <para revision="sysv">
[b51fe6e]181 Install the
182 <phrase revision="sysv"><filename>/etc/rc.d/init.d/rpcbind</filename>
[ff72c51d]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:
[b51fe6e]189 </para>
[d40e1a4]190
[7b478500]191 <indexterm zone="rpcbind rpcbind-init" revision="sysv">
[b51fe6e]192 <primary sortas="f-rpcbind">rpcbind</primary>
[d40e1a4]193 </indexterm>
194
[ff72c51d]195<screen role="root" revision="sysv"><userinput>make install-rpcbind</userinput></screen>
[7b478500]196
[ff72c51d]197<screen role="root" revision="systemd"><userinput>systemctl enable rpcbind</userinput></screen>
[d40e1a4]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>
[b51fe6e]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
[4c24eb0a]229 calls on a server on that machine
[b51fe6e]230 </para>
[d40e1a4]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>
[b51fe6e]240 <para>
241 makes an RPC call to an RPC server and reports data according
[4c24eb0a]242 to the requested options
[b51fe6e]243 </para>
[d40e1a4]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.