source: networking/netprogs/rpcbind.xml@ 45c3b20

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 xry111/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since 45c3b20 was ff72c51d, checked in by Douglas R. Reno <renodr@…>, 2 years ago

rpcbind: Use the upstream provided systemd unit rather than our own.

  • Property mode set to 100644
File size: 7.8 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 &lfs111_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 revision="sysv">
186 Install the
187 <phrase revision="sysv"><filename>/etc/rc.d/init.d/rpcbind</filename>
188 init script</phrase> included in the
189 <xref linkend="bootscripts"/> package.
190 </para>
191
192 <para revision="systemd">
193 Enable the systemd unit installed with the package:
194 </para>
195
196 <indexterm zone="rpcbind rpcbind-init" revision="sysv">
197 <primary sortas="f-rpcbind">rpcbind</primary>
198 </indexterm>
199
200<screen role="root" revision="sysv"><userinput>make install-rpcbind</userinput></screen>
201
202<screen role="root" revision="systemd"><userinput>systemctl enable rpcbind</userinput></screen>
203
204 </sect3>
205
206 </sect2>
207
208 <sect2 role="content">
209 <title>Contents</title>
210
211 <segmentedlist>
212 <segtitle>Installed Program</segtitle>
213 <segtitle>Installed Libraries</segtitle>
214 <segtitle>Installed Directories</segtitle>
215
216 <seglistitem>
217 <seg>rpcbind and rpcinfo</seg>
218 <seg>None</seg>
219 <seg>None</seg>
220 </seglistitem>
221 </segmentedlist>
222
223 <variablelist>
224 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
225 <?dbfo list-presentation="list"?>
226 <?dbhtml list-presentation="table"?>
227
228 <varlistentry id="rpcbind-prog">
229 <term><command>rpcbind</command></term>
230 <listitem>
231 <para>
232 is a server that converts RPC program numbers into universal
233 addresses. It must be running on the host to be able to make RPC
234 calls on a server on that machine
235 </para>
236 <indexterm zone="rpcbind rpcbind-prog">
237 <primary sortas="b-rpcbind">rpcbind</primary>
238 </indexterm>
239 </listitem>
240 </varlistentry>
241
242 <varlistentry id="rpcinfo">
243 <term><command>rpcinfo</command></term>
244 <listitem>
245 <para>
246 makes an RPC call to an RPC server and reports data according
247 to the requested options
248 </para>
249 <indexterm zone="rpcbind rpcinfo">
250 <primary sortas="b-rpcinfo">rpcinfo</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254
255 </variablelist>
256
257 </sect2>
258
259</sect1>
Note: See TracBrowser for help on using the repository browser.