[d47e7ea9] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[d47e7ea9] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[0aeb696] | 7 | <!-- Inserted as a reminder to do this. The mention of a test suite
|
---|
| 8 | is usually right before the root user installation commands. Please
|
---|
| 9 | delete these 12 (including one blank) lines after you are done.-->
|
---|
| 10 |
|
---|
| 11 | <!-- Use one of the two mentions below about a test suite,
|
---|
| 12 | delete the line that is not applicable. Of course, if the
|
---|
| 13 | test suite uses syntax other than "make check", revise the
|
---|
| 14 | line to reflect the actual syntax to run the test suite -->
|
---|
| 15 |
|
---|
| 16 | <!-- <para>This package does not come with a test suite.</para> -->
|
---|
| 17 | <!-- <para>To test the results, issue: <command>make check</command>.</para> -->
|
---|
| 18 |
|
---|
[e7138cbb] | 19 | <!ENTITY portmap-download-http "http://neil.brown.name/portmap/portmap-&portmap-version;.tgz">
|
---|
| 20 | <!ENTITY portmap-download-ftp " ">
|
---|
| 21 | <!ENTITY portmap-md5sum "ac108ab68bf0f34477f8317791aaf1ff">
|
---|
| 22 | <!ENTITY portmap-size "21 KB">
|
---|
[0697dc1] | 23 | <!ENTITY portmap-buildsize "268 KB">
|
---|
| 24 | <!ENTITY portmap-time "0.01 SBU">
|
---|
[d47e7ea9] | 25 | ]>
|
---|
| 26 |
|
---|
[fd680fb] | 27 | <sect1 id="portmap" xreflabel="portmap-&portmap-version;">
|
---|
[e48ac714] | 28 | <?dbhtml filename="portmap.html"?>
|
---|
[bab92281] | 29 |
|
---|
| 30 |
|
---|
[e48ac714] | 31 | <title>Portmap-&portmap-version;</title>
|
---|
[bab92281] | 32 |
|
---|
[e48ac714] | 33 | <indexterm zone="portmap">
|
---|
| 34 | <primary sortas="a-Portmap">Portmap</primary>
|
---|
| 35 | </indexterm>
|
---|
| 36 |
|
---|
| 37 | <sect2 role="package">
|
---|
| 38 | <title>Introduction to Portmap</title>
|
---|
| 39 |
|
---|
[17e6d48] | 40 | <para>The <application>portmap</application> package is a more secure
|
---|
[bbdb0ff4] | 41 | replacement for the original SUN <application>portmap</application> package.
|
---|
[17e6d48] | 42 | <application>Portmap</application> is used to forward RPC requests to RPC
|
---|
[e48ac714] | 43 | daemons such as NFS and NIS.</para>
|
---|
[bab92281] | 44 |
|
---|
[e867a12] | 45 | &lfs70_checked;
|
---|
| 46 |
|
---|
[e48ac714] | 47 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 48 | <itemizedlist spacing="compact">
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download (HTTP): <ulink url="&portmap-download-http;"/></para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Download (FTP): <ulink url="&portmap-download-ftp;"/></para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Download MD5 sum: &portmap-md5sum;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Download size: &portmap-size;</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>Estimated disk space required: &portmap-buildsize;</para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[2174baa] | 65 | <para>Estimated build time: &portmap-time;</para>
|
---|
| 66 | </listitem>
|
---|
[e48ac714] | 67 | </itemizedlist>
|
---|
[bab92281] | 68 |
|
---|
[db0eb6a] | 69 | <bridgehead renderas="sect3">Portmap Dependencies</bridgehead>
|
---|
[bab92281] | 70 |
|
---|
[e48ac714] | 71 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[e867a12] | 72 | <para role="required">
|
---|
| 73 | <xref linkend="libtirpc"/>
|
---|
| 74 | </para>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 77 | <para role="optional">
|
---|
[0d7900a] | 78 | <xref linkend="tcpwrappers"/>
|
---|
[e867a12] | 79 | </para>
|
---|
[bab92281] | 80 |
|
---|
[061ec9d] | 81 | <para condition="html" role="usernotes">User Notes:
|
---|
| 82 | <ulink url="&blfs-wiki;/portmap"/></para>
|
---|
| 83 |
|
---|
[e48ac714] | 84 | </sect2>
|
---|
[bab92281] | 85 |
|
---|
[e48ac714] | 86 | <sect2 role="installation">
|
---|
| 87 | <title>Installation of Portmap</title>
|
---|
| 88 |
|
---|
[e7138cbb] | 89 | <para>Portmap runs as a daemon with a uid of 1. This uid is only
|
---|
| 90 | configurable at compile time and is used as default. To set up a
|
---|
| 91 | user to match this uid, as the <systemitem class="username">root</systemitem>
|
---|
| 92 | user, issue:</para>
|
---|
[864b24de] | 93 |
|
---|
[ec54b623] | 94 | <screen><userinput>useradd -u 1 -g 1 -d /dev/null -s /bin/false bin</userinput></screen>
|
---|
| 95 |
|
---|
[17e6d48] | 96 | <para>Install <application>portmap</application> with the following
|
---|
[e48ac714] | 97 | commands:</para>
|
---|
| 98 |
|
---|
[e867a12] | 99 | <screen><userinput>LDLIBS=-ltirpc make</userinput></screen>
|
---|
| 100 |
|
---|
| 101 | <para>Note that the LDLIBS environment variable must be before the
|
---|
| 102 | <command>make</command> command.</para>
|
---|
[e7138cbb] | 103 |
|
---|
| 104 | <para>If you want the portmap daemon to use a uid/gid other than the
|
---|
| 105 | defaults, pass DAEMON_UID=x and DAEMON_GID=y as shown below:</para>
|
---|
[e867a12] | 106 |
|
---|
| 107 | <para><command>LDLIBS=-ltirpc make DAEMON_UID=x DAEMON_GID=y</command></para>
|
---|
| 108 |
|
---|
| 109 | <para>If you want to build the portmap daemon without
|
---|
| 110 | <application>tcpwrappers</application>, add
|
---|
| 111 | <userinput>NO_TCP_WRAPPER=true</userinput> to the make line as shown below:</para>
|
---|
| 112 |
|
---|
| 113 | <para><command>LDLIBS=-ltirpc make NO_TCP_WRAPPER=true</command></para>
|
---|
[bab92281] | 114 |
|
---|
[e48ac714] | 115 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 116 |
|
---|
| 117 | <screen role='root'><userinput>make install</userinput></screen>
|
---|
| 118 |
|
---|
| 119 | <note>
|
---|
| 120 | <para>The above installation places executable <command>portmap</command>
|
---|
[17e6d48] | 121 | in <filename class="directory">/sbin</filename>. You may choose to move the
|
---|
[864b24de] | 122 | file to <filename class="directory">/usr/sbin</filename>. If you do,
|
---|
[ec54b623] | 123 | remember to modify the bootscript also.</para>
|
---|
[e48ac714] | 124 | </note>
|
---|
[bab92281] | 125 |
|
---|
[e48ac714] | 126 | </sect2>
|
---|
[bab92281] | 127 |
|
---|
[e48ac714] | 128 | <sect2 role="configuration">
|
---|
| 129 | <title>Configuring Portmap</title>
|
---|
[bab92281] | 130 |
|
---|
[e48ac714] | 131 | <sect3 id="portmap-init">
|
---|
| 132 | <title>Boot Script</title>
|
---|
| 133 |
|
---|
[17e6d48] | 134 | <para>Install the <filename>/etc/rc.d/init.d/portmap</filename> init script
|
---|
[5254d12] | 135 | included in the <xref linkend="bootscripts"/> package.</para>
|
---|
[bab92281] | 136 |
|
---|
[e48ac714] | 137 | <indexterm zone="portmap portmap-init">
|
---|
| 138 | <primary sortas="f-portmap">portmap</primary>
|
---|
| 139 | </indexterm>
|
---|
| 140 |
|
---|
| 141 | <screen role="root"><userinput>make install-portmap</userinput></screen>
|
---|
[bab92281] | 142 |
|
---|
[e48ac714] | 143 | </sect3>
|
---|
[bab92281] | 144 |
|
---|
[e48ac714] | 145 | </sect2>
|
---|
[bab92281] | 146 |
|
---|
[e48ac714] | 147 | <sect2 role="content">
|
---|
| 148 | <title>Contents</title>
|
---|
| 149 |
|
---|
| 150 | <segmentedlist>
|
---|
| 151 | <segtitle>Installed Programs</segtitle>
|
---|
| 152 | <segtitle>Installed Libraries</segtitle>
|
---|
| 153 | <segtitle>Installed Directories</segtitle>
|
---|
[bab92281] | 154 |
|
---|
[e48ac714] | 155 | <seglistitem>
|
---|
| 156 | <seg>pmap_dump, pmap_set, and portmap</seg>
|
---|
| 157 | <seg>None</seg>
|
---|
| 158 | <seg>None</seg>
|
---|
| 159 | </seglistitem>
|
---|
| 160 | </segmentedlist>
|
---|
[bab92281] | 161 |
|
---|
[e48ac714] | 162 | <variablelist>
|
---|
| 163 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 164 | <?dbfo list-presentation="list"?>
|
---|
| 165 | <?dbhtml list-presentation="table"?>
|
---|
[bab92281] | 166 |
|
---|
[e48ac714] | 167 | <varlistentry id="pmap_dump">
|
---|
[9a003fe1] | 168 | <!-- Don't remove the extra space, it prevent a FOP warning. -->
|
---|
| 169 | <term><command>pmap_dump</command> </term>
|
---|
[e48ac714] | 170 | <listitem>
|
---|
| 171 | <para>saves the port mapping table to an ASCII file.</para>
|
---|
| 172 | <indexterm zone="portmap pmap_dump">
|
---|
| 173 | <primary sortas="b-pmap_dump">pmap_dump</primary>
|
---|
| 174 | </indexterm>
|
---|
| 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
[bab92281] | 177 |
|
---|
[e48ac714] | 178 | <varlistentry id="pmap_set">
|
---|
| 179 | <term><command>pmap_set</command></term>
|
---|
| 180 | <listitem>
|
---|
| 181 | <para>restores the port mapping table from an ASCII file.</para>
|
---|
| 182 | <indexterm zone="portmap pmap_set">
|
---|
| 183 | <primary sortas="b-pmap_set">pmap_set</primary>
|
---|
| 184 | </indexterm>
|
---|
| 185 | </listitem>
|
---|
| 186 | </varlistentry>
|
---|
[bab92281] | 187 |
|
---|
[e48ac714] | 188 | <varlistentry id="portmap-prog">
|
---|
| 189 | <term><command>portmap</command></term>
|
---|
| 190 | <listitem>
|
---|
| 191 | <para>is an RPC port mapper.</para>
|
---|
| 192 | <indexterm zone="portmap portmap-prog">
|
---|
| 193 | <primary sortas="b-portmap">portmap</primary>
|
---|
| 194 | </indexterm>
|
---|
| 195 | </listitem>
|
---|
| 196 | </varlistentry>
|
---|
[bab92281] | 197 |
|
---|
[e48ac714] | 198 | </variablelist>
|
---|
[bab92281] | 199 |
|
---|
[e48ac714] | 200 | </sect2>
|
---|
[9c6580c] | 201 |
|
---|
| 202 | </sect1>
|
---|
| 203 |
|
---|