source: networking/netprogs/rpcbind.xml@ 8a00ffb8

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 8a00ffb8 was 8a00ffb8, checked in by Thomas Trepl (Moody) <thomas@…>, 3 years ago

Tags

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