Ticket #55: portmap.patch

File portmap.patch, 7.0 KB (added by billy@…, 22 years ago)

adds portmap section to basicnet/netprogs

  • basicnet.ent

    diff --exclude=CVS -Naur ./basicnet.ent /home/billy/NEWBLFS/BOOK/basicnet/basicnet.ent
    old new  
    2323<!ENTITY % telnet SYSTEM "netprogs/telnet/telnet.ent">
    2424<!ENTITY % cvs SYSTEM "netprogs/cvs/cvs.ent">
    2525<!ENTITY % wget SYSTEM "netprogs/wget/wget.ent">
     26<!ENTITY % portmap SYSTEM "netprogs/portmap/portmap.ent">
    2627%ncftp;
    2728%telnet;
    2829%cvs;
    2930%wget;
     31%portmap;
    3032
    3133<!-- Basic Networking Utilities -->
    3234<!ENTITY basicnet-netutils SYSTEM "netutils/netutils.xml">
  • netprogs/netprogs.xml

    diff --exclude=CVS -Naur ./netprogs/netprogs.xml /home/billy/NEWBLFS/BOOK/basicnet/netprogs/netprogs.xml
    old new  
    77&telnet;
    88&cvs;
    99&wget;
     10&portmap;
    1011
    1112</chapter>
  • netprogs/portmap/portmap-config.xml

    diff --exclude=CVS -Naur ./netprogs/portmap/portmap-config.xml /home/billy/NEWBLFS/BOOK/basicnet/netprogs/portmap/portmap-config.xml
    old new  
     1<sect2>
     2<title>Configuring portmap</title>
     3
     4<sect3><title>Config files</title>
     5<para><userinput>/etc/rc.d/init.d/portmap</userinput></para>
     6</sect3>
     7
     8<sect3><title>Create the portmap boot script</title>
     9
     10<para><screen><userinput>
     11cat > /etc/rc.d/init.d/portmap << "EOF"
     12#!/bin/sh
     13# Begin /etc/rc.d/init.d/portmap
     14
     15source /etc/rc.d/init.d/functions
     16
     17case "$1" in
     18        start)
     19                echo "Starting RPC Portmap"
     20                loadproc /sbin/portmap
     21                ;;
     22
     23        stop)
     24                echo "Stopping Portmap"
     25                killproc /sbin/portmap
     26                ;;
     27
     28        restart)
     29                $0 stop
     30                /usr/bin/sleep 1
     31                $0 start
     32                ;;
     33
     34        *)
     35                echo "Usage: $0 {start|stop|restart}"
     36                exit 1
     37        ;;
     38
     39esac
     40
     41# End /etc/rc.d/init.d/portmap
     42EOF
     43chmod 754 /etc/rc.d/init.d/portmap &amp;&amp;
     44cd /etc/rc.d/init.d &amp;&amp;
     45ln -sf ../init.d/portmap ../rc0.d/K79portmap &amp;&amp;
     46ln -sf ../init.d/portmap ../rc1.d/K79portmap &amp;&amp;
     47ln -sf ../init.d/portmap ../rc2.d/K79portmap &amp;&amp;
     48ln -sf ../init.d/portmap ../rc3.d/S21portmap &amp;&amp;
     49ln -sf ../init.d/portmap ../rc4.d/S21portmap &amp;&amp;
     50ln -sf ../init.d/portmap ../rc5.d/S21portmap &amp;&amp;
     51ln -sf ../init.d/portmap ../rc6.d/K79portmap
     52</userinput></screen></para>
     53</sect3>
     54
     55</sect2>
     56
  • netprogs/portmap/portmap-desc.xml

    diff --exclude=CVS -Naur ./netprogs/portmap/portmap-desc.xml /home/billy/NEWBLFS/BOOK/basicnet/netprogs/portmap/portmap-desc.xml
    old new  
     1<sect2>
     2<title>Contents</title>
     3
     4<para>The portmap package contains
     5<userinput>portmap</userinput>,
     6<userinput>pmap_dump</userinput> and
     7<userinput>pmap_set</userinput>.</para>
     8</sect2>
     9
     10<sect2><title>Description</title>
     11
     12<sect3><title>portmap</title>
     13<para>portmap is the rpc port mapper.</para></sect3>
     14
     15<sect3><title>pmap_dump</title>
     16<para>pmap_dump saves the port mapping table to an ascii file.</para></sect3>
     17
     18<sect3><title>pmap_set</title>
     19<para>pmap_set restores the port mapping table from an ascii file.</para></sect3>
     20</sect2>
     21
  • netprogs/portmap/portmap-exp.xml

    diff --exclude=CVS -Naur ./netprogs/portmap/portmap-exp.xml /home/billy/NEWBLFS/BOOK/basicnet/netprogs/portmap/portmap-exp.xml
    old new  
     1<sect2>
     2<title>Command explanations</title>
     3
     4<para><userinput>
     5patch -Np1 -i ../portmap_5-1.diff :
     6</userinput>
     7This patch provides added security for the portmap package,
     8including only allowing portmap table changes from the local
     9host.</para>
     10
     11</sect2>
     12
  • netprogs/portmap/portmap-inst.xml

    diff --exclude=CVS -Naur ./netprogs/portmap/portmap-inst.xml /home/billy/NEWBLFS/BOOK/basicnet/netprogs/portmap/portmap-inst.xml
    old new  
     1<sect2>
     2<title>Installation of portmap</title>
     3
     4<para>.</para>
     5
     6<para>Install portmap with the following commands:</para>
     7
     8<para><screen><userinput>
     9patch -Np1 -i ../portmap_5-1.diff &amp;&amp;
     10make &amp;&amp;
     11make install
     12</userinput></screen></para>
     13
     14</sect2>
     15
  • netprogs/portmap/portmap-intro.xml

    diff --exclude=CVS -Naur ./netprogs/portmap/portmap-intro.xml /home/billy/NEWBLFS/BOOK/basicnet/netprogs/portmap/portmap-intro.xml
    old new  
     1<sect2>
     2<title>Introduction to portmap</title>
     3
     4<screen>
     5Download location (HTTP):        <ulink url="&portmap-download-http;"/>
     6Version used:                   &portmap-version;
     7Package size:                   &portmap-size;
     8Estimated Disk space required:  &portmap-buildsize;</screen>
     9
     10<para>Required patch</para>
     11
     12<screen>
     13Download location (HTTP):        <ulink url="&portmap-patch-http;"/>
     14</screen>
     15
     16<para>The portmap package is a more secure replacement for the
     17original SUN portmap package.  Portmap is used to forward rpc
     18requests to rpc daemons such as NFS and NIS.</para>
     19
     20</sect2>
  • netprogs/portmap/portmap.ent

    diff --exclude=CVS -Naur ./netprogs/portmap/portmap.ent /home/billy/NEWBLFS/BOOK/basicnet/netprogs/portmap/portmap.ent
    old new  
     1<!ENTITY portmap SYSTEM "../portmap.xml">
     2<!ENTITY portmap-intro SYSTEM "portmap-intro.xml">
     3<!ENTITY portmap-inst SYSTEM "portmap-inst.xml">
     4<!ENTITY portmap-exp SYSTEM "portmap-exp.xml">
     5<!ENTITY portmap-desc SYSTEM "portmap-desc.xml">
     6<!ENTITY portmap-config SYSTEM "portmap-config.xml">
     7<!ENTITY portmap-buildsize "250 KB">
     8<!ENTITY portmap-version "5">
     9
     10<!ENTITY portmap-download-http
     11"http://files.ichilton.co.uk/nfs/portmap_5.orig.tar.gz">
     12<!ENTITY portmap-patch-http "http://files.ichilton.co.uk/nfs/portmap_5-1.diff.gz">
     13<!ENTITY portmap-size "20 KB">
  • netprogs/portmap.xml

    diff --exclude=CVS -Naur ./netprogs/portmap.xml /home/billy/NEWBLFS/BOOK/basicnet/netprogs/portmap.xml
    old new  
     1<sect1 id="portmap" xreflabel="portmap-&portmap-version;">
     2<?dbhtml filename="portmap.html" dir="basicnet"?>
     3<title>portmap-&portmap-version;</title>
     4
     5&portmap-intro;
     6&portmap-inst;
     7&portmap-exp;
     8&portmap-config;
     9&portmap-desc;
     10
     11</sect1>
     12