Changeset a3b94fc for networking


Ignore:
Timestamp:
08/10/2021 07:33:55 PM (3 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
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
Children:
baeafab
Parents:
bddd4e5
Message:

Update to net-tools-2.10.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • networking/netprogs/net-tools.xml

    rbddd4e5 ra3b94fc  
    55  %general-entities;
    66
    7   <!ENTITY net-tools-download-http "&sources-anduin-http;/net-tools/net-tools-&net-tools-version;.tar.gz">
    8   <!ENTITY net-tools-download-ftp  "&sources-anduin-ftp;/net-tools/net-tools-&net-tools-version;.tar.gz">
    9   <!ENTITY net-tools-md5sum        "6be14ed473cacdd68edeaa9605adc469">
    10   <!ENTITY net-tools-size          "288 KB">
    11   <!ENTITY net-tools-buildsize     "7.0 MB">
     7  <!ENTITY net-tools-download-http "https://downloads.sourceforge.net/project/net-tools//net-tools-&net-tools-version;.tar.xz">
     8  <!ENTITY net-tools-download-ftp  " ">
     9  <!ENTITY net-tools-md5sum        "78aae762c95e2d731faf88d482e4cde5">
     10  <!ENTITY net-tools-size          "228 KB">
     11  <!ENTITY net-tools-buildsize     "7.5 MB">
    1212  <!ENTITY net-tools-time          "less than 0.1 SBU">
    1313]>
     
    6969      </listitem>
    7070    </itemizedlist>
    71 
     71<!--
    7272    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    7373    <itemizedlist spacing="compact">
     
    7979      </listitem>
    8080    </itemizedlist>
    81 
     81-->
    8282
    8383    <para condition="html" role="usernotes">User Notes:
     
    9191    <para id="net-tools-automate-example" xreflabel="Net-tools">
    9292      The instructions below automate the configuration process by piping
    93       <command>yes</command> to the <command>make config</command> command.
     93      <command>yes</command> to the <command>make</command> command.
    9494      If you wish to run the interactive configuration process (by changing
    95       the instruction to just <command>make config</command>), but you are
     95      the instruction to just <command>make</command>), but you are
    9696      not sure how to answer all the questions, then just accept the defaults.
    9797      This will be just fine in the majority of cases. What you're asked here
     
    116116
    117117    <para>
    118       The patch below cleans up the installation so that it does not
    119       overwrite the <application>ifconfig</application> and
    120       <application>hostname</application> programs that were installed in LFS.
     118      For this package, we use the DESTDIR method of installation in order
     119      to easily remove files from the build that overwrite those that we want
     120      to keep or are not appropriate for our system.
    121121    </para>
    122122
     
    126126    </para>
    127127
    128 <screen><userinput>patch -Np1 -i ../net-tools-&net-tools-version;-remove_dups-1.patch &amp;&amp;
    129 sed -e "s;/\(s\|\)bin;/usr&amp;;g" -i Makefile &amp;&amp;
    130 sed -i '/#include &lt;netinet\/ip.h&gt;/d'  iptunnel.c &amp;&amp;
    131 
    132 yes "" | make config &amp;&amp;
    133 make</userinput></screen>
     128<screen><userinput>export BINDIR='/usr/bin' SBINDIR='/usr/bin' &amp;&amp;
     129yes "" | make                               &amp;&amp;
     130make DESTDIR=$PWD/install install           &amp;&amp;
     131rm    install/usr/bin/{nis,yp}domainname    &amp;&amp;
     132rm    install/usr/bin/{hostname,dnsdomainname,domainname} &amp;&amp;
     133rm -r install/usr/share/man/man1            &amp;&amp;
     134unset BINDIR SBINDIR</userinput></screen>
    134135
    135136    <para>
     
    141142    </para>
    142143
    143 <screen role='root'><userinput>make update</userinput></screen>
     144<screen role='root'><userinput>chown -R root:root install &amp;&amp;
     145cp -a install/* /</userinput></screen>
    144146
    145147  </sect2>
     
    149151
    150152    <para>
    151       <command>sed -i "s;/\(s\|\)bin;/usr&amp;;g" -i Makefile</command>:
    152       Modifies the <filename>Makefile</filename> to get the binaries
    153       installed in the <filename class="directory">/usr</filename> hierarchy.
    154     </para>
    155 
    156     <para>
    157       <command>sed -i '/#include &lt;netinet\/ip.h&gt;/d' iptunnel.c</command>:
    158       This fixes build breakage with linux-4.8 headers.
    159     </para>
    160 <!--
    161     <para>
    162       <command>sed -i -e '/Token/s/y$/n/' config.in</command>: Change the
    163       default for building obsolete token ring support to no.  This is a
    164       simpler change than changing the location for the token ring headers.
    165     </para>
    166 
    167     <para>
    168       <command>sed -i -e '/HAVE_HWSTRIP/s/y$/n/' config.in</command>:
    169       Removes obsolete Metricom radio support that requires a header no longer
    170       included in the kernel.
    171     </para>
    172 -->
    173     <para>
    174       <command>yes "" | make config</command>: Piping <command>yes</command>
     153      <command>export BINDIR='/usr/bin' SBINDIR='/usr/bin'</command>:
     154      Ensure the executables are installed in the correct location.
     155    </para>
     156
     157    <para>
     158      <command>yes "" | make </command>: Piping <command>yes</command>
    175159      to <command>make config</command> skips the interactive configuration and
    176160      accepts the defaults.
     161    </para>
     162
     163    <para>
     164      <command>rm ...</command>: Remove unneeded programs and man pages.
    177165    </para>
    178166
     
    188176
    189177      <seglistitem>
    190         <seg>arp,
    191         ipmaddr, iptunnel, mii-tool, nameif, netstat,
    192         plipconfig, rarp, route, and slattach
     178        <seg>arp,
     179        ipconfig
     180        ipmaddr,
     181        iptunnel,
     182        mii-tool,
     183        nameif,
     184        netstat,
     185        plipconfig,
     186        rarp,
     187        route, and
     188        slattach
    193189        </seg>
    194190        <seg>None</seg>
     
    214210        </listitem>
    215211      </varlistentry>
    216 <!--
    217       <varlistentry id="dnsdomainname">
    218         <term><command>dnsdomainname</command></term>
    219         <listitem>
    220           <para>
    221             reports the system's DNS domain name.
    222           </para>
    223           <indexterm zone="net-tools dnsdomainname">
    224             <primary sortas="b-dnsdomainname">dnsdomainname</primary>
    225           </indexterm>
    226         </listitem>
    227       </varlistentry>
    228 
    229       <varlistentry id="domainname">
    230         <term><command>domainname</command></term>
    231         <listitem>
    232           <para>
    233             reports or sets the system's NIS/YP domain name.
    234           </para>
    235           <indexterm zone="net-tools domainname">
    236             <primary sortas="b-domainname">domainname</primary>
    237           </indexterm>
    238         </listitem>
    239       </varlistentry>
    240 
    241       <varlistentry id="hostname">
    242         <term><command>hostname</command></term>
    243         <listitem>
    244           <para>
    245             reports or sets the name of the current host system.
    246           </para>
    247           <indexterm zone="net-tools hostname">
    248             <primary sortas="b-hostname">hostname</primary>
    249           </indexterm>
    250         </listitem>
    251       </varlistentry>
    252212
    253213      <varlistentry id="ifconfig">
     
    255215        <listitem>
    256216          <para>
    257             is the main utility for configuring network interfaces.
     217            is a tool for configuring network interfaces.
    258218          </para>
    259219          <indexterm zone="net-tools ifconfig">
     
    262222        </listitem>
    263223      </varlistentry>
    264 -->
     224
    265225      <varlistentry id="ipmaddr">
    266226        <term><command>ipmaddr</command></term>
     
    324284        </listitem>
    325285      </varlistentry>
    326 <!--
    327       <varlistentry id="nisdomainname">
    328         <term><command>nisdomainname</command></term>
    329         <listitem>
    330           <para>
    331             does the same as <command>domainname</command>.
    332           </para>
    333           <indexterm zone="net-tools nisdomainname">
    334             <primary sortas="b-nisdomainname">nisdomainname</primary>
    335           </indexterm>
    336         </listitem>
    337       </varlistentry>
    338 -->
     286
    339287      <varlistentry id="plipconfig">
    340288        <term><command>plipconfig</command></term>
     
    387335        </listitem>
    388336      </varlistentry>
    389 <!--
    390       <varlistentry id="ypdomainname">
    391         <term><command>ypdomainname</command></term>
    392         <listitem>
    393           <para>
    394             does the same as <command>domainname</command>.
    395           </para>
    396           <indexterm zone="net-tools ypdomainname">
    397             <primary sortas="b-ypdomainname">ypdomainname</primary>
    398           </indexterm>
    399         </listitem>
    400       </varlistentry>
    401 -->
    402337    </variablelist>
    403338
Note: See TracChangeset for help on using the changeset viewer.